
:root {
  --bg-dark: #0c0f0a;
  --oak-green: #2f5d3a;
  --oak-light: #e7efe9;
  --accent: #8fc29b;
  --text-main: #ffffff;
  --text-muted: #b8c2bb;
}
:root {
  /* Core Brand Palette */
  --brand-deep: #3A0063;    /* Royal Plum (Authority/Heritage) */
  --brand-saffron: #FFD000; /* Primary Action (Clarity/Urgency) */
  --brand-oak: #AD7340;     /* Natural Wood Tone (Reliability) */
  --brand-alert: #FF4D29;   /* High-Contrast Warning/Sales Trigger */
  --brand-bright: #FFFFFF;  /* Pure Canvas */

  /* Plum Tints & Shades */
  --plum-900: #210038;
  --plum-700: #3A0063; /* Base */
  --plum-500: #5E2587;
  --plum-100: #F5F0FA;

  /* Saffron Tints & Shades */
  --saffron-900: #CCA600;
  --saffron-500: #FFD000; /* Base */
  --saffron-100: #FFF9E0;

  /* Oak Tints & Shades */
  --oak-800: #7A512D;
  --oak-500: #AD7340; /* Base */
  --oak-100: #F7F1EB;

  /* Alert Tints & Shades */
  --alert-700: #CC3D20;
  --alert-500: #FF4D29; /* Base */
  --alert-100: #FFEBE8;

  /* UI Neutral Grays (Essential for Balance) */
  --neutral-900: #1A1A1A;
  --neutral-400: #A3A3A3;
  --neutral-100: #F4F4F4;

  /* Text & Content Roles */
  --text-main: #1A1A1B;     /* Off-black for better readability than pure black */
  --text-muted: #575757;    /* For secondary info/subtitles */
  --text-on-dark: #FFFFFF;  /* For use on Purple or Oak backgrounds */
  --text-accent: #3A0063;   /* Using the Purple for emphasized text */

  /* UI Functional Roles */
  --bg-main: var(--brand-bright);
  --bg-offset: #F9F7F2;      /* A slight "parchment" off-white for sections */
  --border-subtle: rgba(58, 0, 99, 0.1); /* Transparent purple border */
  
  /* Shadow Systems (Architectural Depth) */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(58, 0, 99, 0.12); /* Purple-tinted shadow */
}

.fence-services {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--plum-100);
}


.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 50px;
  color: var(--brand-saffron);
  text-align: center; /* Title aligned left */
}

.section-header p {
  color: var(--plum-500);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 15px;
}

/* Card Grid Layout */
.card-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

/* Individual Card Styling */
.service-card {
  background: var(--oak-100);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 300px; /* Minimum width before it wraps */
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}


.service-card:hover {
  transform: translateY(-5px);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--plum-500);
}

.card-content p {
  color: var(--plum-500);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Button Styling */
.btn-learn {
  display: inline-block;
  background-color: var(--btn-bg);
  color: var(--primary-blue);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background 0.3s ease;
  width: fit-content;
  margin: 0 auto;
}

.btn-learn:hover {
  background-color: #cbd5e1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .card-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .service-card {
    width: 100%;
    max-width: 400px;
  }
}