/* ==========================================================
   SERVICES.CSS — Services page specific styles
   ========================================================== */

/* ── SERVICES LIST ── */
.services-list { padding: 96px 64px; background: var(--off-white); }
.services-list .container {
    max-width:     var(--container-max);
    margin-inline: auto;
}

.service-block {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   80px;
    align-items:           center;
    padding:               80px 0;
    border-bottom:         0.5px solid rgba(201,169,110,0.18);
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child  { border-bottom: none; }
.service-block:nth-child(even) .service-block__media { order: 2; }
.service-block:nth-child(even) .service-block__text  { order: 1; }

.service-block__media { position: relative; }
.service-block__img {
    width:        100%;
    aspect-ratio: 4/3;
    object-fit:   cover;
    display:      block;
}
.service-block__img-placeholder {
    width:        100%;
    aspect-ratio: 4/3;
}
.service-block__img-placeholder.s1 { background: linear-gradient(145deg, #2d5c47 0%, #1b3a2d 100%); }
.service-block__img-placeholder.s2 { background: linear-gradient(145deg, #3d5c3a 0%, #1f3020 100%); }
.service-block__img-placeholder.s3 { background: linear-gradient(145deg, #4a4028 0%, #2a2015 100%); }

.service-block__num {
    position:    absolute;
    top:         -20px;
    left:        -20px;
    font-family: var(--font-heading);
    font-size:   100px;
    font-weight: 300;
    color:       rgba(201,169,110,0.08);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.service-block__text { display: flex; flex-direction: column; gap: 20px; }
.service-block__text h2 {
    font-family: var(--font-heading);
    font-size:   clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 300;
    color:       var(--ink);
    line-height: 1.1;
}
.service-block__text h2 em { font-style: italic; color: var(--emerald); }
.service-block__text p {
    font-size:   15px;
    font-weight: 300;
    color:       var(--stone);
    line-height: 1.9;
}
.service-block__divider { width: 40px; height: 0.5px; background: var(--gold); }

/* Sub-list of inclusions */
.service-includes {
    list-style: none;
    padding:    0;
    margin:     0;
    display:    flex;
    flex-direction: column;
    gap:        10px;
}
.service-includes li {
    display:     flex;
    align-items: center;
    gap:         12px;
    font-size:   14px;
    font-weight: 300;
    color:       var(--stone);
    margin:      0;
}
.service-includes li::before {
    content:     '';
    width:       6px;
    height:      6px;
    background:  var(--gold);
    transform:   rotate(45deg);
    flex-shrink: 0;
}

/* ── WHY CHOOSE TERRAVERDE CONSTRUCTION (compact) ── */
.why-compact { padding: 80px 64px; background: var(--parchment); }
.why-compact__inner {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   3px;
    max-width:             var(--container-max);
    margin-inline:         auto;
}
.why-compact__card {
    background:     #fff;
    padding:        36px 28px;
    border-bottom:  2px solid transparent;
    transition:     border-color 0.3s, transform 0.3s;
    text-align:     center;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            14px;
}
.why-compact__card:hover { border-color: var(--gold); transform: translateY(-4px); }
.why-compact__icon {
    width:       52px;
    height:      52px;
    border:      0.5px solid rgba(201,169,110,0.4);
    display:     flex;
    align-items: center;
    justify-content: center;
    transition:  background 0.3s, border-color 0.3s;
}
.why-compact__card:hover .why-compact__icon { background: var(--gold); border-color: var(--gold); }
.why-compact__card:hover .why-compact__icon svg { stroke: var(--ink) !important; }
.why-compact__title { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.why-compact__text  { font-size: 13px; font-weight: 300; color: var(--stone); line-height: 1.75; text-align: center; }

/* 4th service placeholder */
.service-block__img-placeholder.s4 { background: linear-gradient(145deg, #3a2820 0%, #1a1008 100%); }

/* ── NAICS SECTION ── */
.naics-section {
    background:  var(--forest);
    padding:     96px 64px;
    position:    relative;
    overflow:    hidden;
}
.naics-section::before {
    content:    '';
    position:   absolute;
    inset:      0;
    background: repeating-linear-gradient(
        88deg,
        transparent 0px, transparent 3px,
        rgba(201,169,110,0.025) 3px, rgba(201,169,110,0.025) 6px
    );
    pointer-events: none;
}
.naics-inner {
    max-width:             var(--container-max);
    margin-inline:         auto;
    display:               grid;
    grid-template-columns: 1fr 1.4fr;
    gap:                   80px;
    align-items:           center;
    position:              relative;
}
.naics-heading {
    font-family: var(--font-heading);
    font-size:   clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
    color:       #fff;
    line-height: 1.05;
    margin-top:  16px;
}
.naics-heading em { font-style: normal; font-weight: 300; color: var(--amber-pale); }
.naics-divider    { width: 44px; height: 0.5px; background: var(--gold); margin: 24px 0; }
.naics-sub {
    font-size:   15px;
    font-weight: 300;
    color:       rgba(255,255,255,0.5);
    line-height: 1.85;
    margin-bottom: 36px;
}
.naics-list {
    list-style: none;
    padding:    0;
    margin:     0;
    display:    flex;
    flex-direction: column;
    gap:        0;
}
.naics-item {
    display:         flex;
    align-items:     center;
    gap:             24px;
    padding:         22px 28px;
    border-bottom:   0.5px solid rgba(201,169,110,0.12);
    transition:      background 0.25s ease;
}
.naics-item:first-child { border-top: 0.5px solid rgba(201,169,110,0.12); }
.naics-item:hover { background: rgba(201,169,110,0.06); }
.naics-code {
    font-family:    var(--font-heading);
    font-size:      22px;
    font-weight:    300;
    color:          var(--gold);
    letter-spacing: 0.05em;
    min-width:      80px;
}
.naics-label {
    font-size:   14px;
    font-weight: 300;
    color:       rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
}

/* ── SERVICES CTA BAND ── */
.services-cta-band {
    padding:    96px 64px;
    background: var(--parchment);
}
.services-cta-inner {
    max-width:       var(--container-max);
    margin-inline:   auto;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             48px;
    flex-wrap:       wrap;
}
.services-cta-h2 {
    font-family:   var(--font-heading);
    font-size:     clamp(1.8rem, 3vw, 2.75rem);
    font-weight:   300;
    color:         var(--ink);
    line-height:   1.15;
    margin-top:    12px;
}
.services-cta-h2 em { font-style: normal; color: var(--forest-mid); }
.services-cta-btns  { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .services-list    { padding: 64px 28px; }
    .service-block    { grid-template-columns: 1fr; gap: 40px; }
    .service-block:nth-child(even) .service-block__media,
    .service-block:nth-child(even) .service-block__text { order: unset; }
    .naics-section    { padding: 64px 28px; }
    .naics-inner      { grid-template-columns: 1fr; gap: 52px; }
    .services-cta-band { padding: 64px 28px; }
    .services-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .naics-inner { gap: 36px; }
}
