/* ============================================
   Schlickmann Construction — Home page layout
   Replicates the live WP site (Stoneham MA) section-by-section.
   Loads after main.css + schlickmann.css.
   ============================================ */

/* ── Shared section helpers ──────────────────── */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 3px solid var(--color-secondary);
}
.section-label--white  { color: rgba(255, 255, 255, 0.85); border-left-color: rgba(255, 255, 255, 0.7); }
.section-label--accent { color: var(--color-secondary); border-left-color: var(--color-secondary); }

.section-h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--color-primary);
}
.section-h2 span { display: block; }
.section-h2--white { color: #fff; }
.section-h2 .text-accent,
.text-accent { color: var(--color-secondary); display: block; }

.section-header { text-align: center; max-width: 780px; margin: 0 auto 50px; padding: 0 16px; }
.section-header--left { text-align: left; max-width: none; padding: 0; }
.section-subtitle { font-size: 1rem; color: var(--color-text-muted); line-height: 1.65; margin: 0 auto; max-width: 620px; }

/* ── Pill-style buttons (WP exact: 15px 30px, radius 40px, Roboto 16px weight 500, black text on steel-blue) ─ */
.btn-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 30px;                    /* WP exact */
    border-radius: 40px;                   /* WP exact */
    font-family: 'Roboto', sans-serif;
    font-size: 16px;                       /* WP exact */
    font-weight: 500;                      /* WP exact */
    line-height: 1;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-pill svg { stroke-width: 2.5; }
.btn-pill--dark   { background: #6D8BB2;   color: #000000;        border-color: #6D8BB2; }
.btn-pill--dark:hover { background: #5a7898; border-color: #5a7898; transform: translateY(-1px); }
.btn-pill--light  { background: transparent;  color: #000000;     border-color: #6D8BB2; }
.btn-pill--light:hover { background: rgba(109,139,178,0.08); transform: translateY(-1px); }
.btn-pill--accent { background: #6D8BB2; color: #000000; border-color: #6D8BB2; }
.btn-pill--accent:hover { background: #5a7898; transform: translateY(-1px); }
.btn-pill.btn-lg  { padding: 18px 36px; font-size: 17px; }

/* ============================================
   1) HERO
   ============================================ */
.hero.hero--image {
    position: relative;
    min-height: 720px;
    height: calc(90vh - var(--header-height));
    max-height: 900px;
    overflow: hidden;
    margin: var(--header-height) 16px 0;   /* push below fixed header */
    border-radius: 0 0 36px 36px;
    padding-top: 0 !important;
    background: var(--color-primary) !important;
    display: flex;
    align-items: stretch;
}
.hero.hero--image::before { display: none !important; }
.hero-bg-picture { position: absolute; inset: 0; z-index: 0; }
.hero-bg-picture img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.hero-bg-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 36, 59, 0.0) 0%, rgba(18, 36, 59, 0.05) 30%, rgba(18, 36, 59, 0.55) 100%); pointer-events: none; }

.hero-container {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    width: 100%; padding: 60px 50px 50px;
    color: #fff;
    text-align: left;
}
.hero-content { max-width: 760px; text-align: left; }
.hero h1 {
    font-family: var(--font-heading);
    font-size: 68px;        /* WP exact */
    font-weight: 400;       /* WP exact */
    line-height: 76px;      /* WP exact (1.12) */
    letter-spacing: -1px;   /* WP exact */
    margin: 0 0 24px;
    color: #FFFFFF;         /* first 2 lines white */
    text-align: left;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero h1 .hero-line--accent { color: #728CAC !important; }   /* last 2 lines steel-blue */

.hero-subtitle {
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 18px !important;     /* WP exact */
    font-weight: 400;
    line-height: 1.5;
    color: #F9F9FB;
}
.hero h1 .hero-line { display: block; }
.hero h1 .hero-line--accent { color: var(--color-primary-light); }
.hero-subtitle { font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, 0.92); max-width: 560px; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }

.hero-cta-row {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-top: auto;
    align-self: flex-end;
    padding-top: 32px;
}

@media (max-width: 768px) {
    .hero.hero--image { min-height: 620px; height: auto; margin: 0 8px; border-radius: 0 0 24px 24px; }
    .hero-container { padding: 90px 18px 28px; }
    .hero-cta-row { align-self: stretch; flex-direction: column; }
    .hero-cta-row .btn-pill { justify-content: center; }
}

/* ============================================
   2) STATS COUNTERS
   ============================================ */
.stats-section { padding: 70px 0 60px; background: #fff; }
.stats-grid { display: flex; align-items: stretch; justify-content: space-between; gap: 30px; }
.stat-item { flex: 1; text-align: center; }
.stat-divider { width: 1px; background: #E1E5EB; align-self: stretch; }
.stat-value { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1; color: var(--color-secondary); display: inline-flex; align-items: baseline; }
.stat-suffix { color: var(--color-secondary); }
.stat-label { font-size: 0.95rem; color: var(--color-text-muted); margin-top: 12px; }

@media (max-width: 768px) {
    .stats-grid { flex-direction: column; gap: 24px; }
    .stat-divider { width: 80%; height: 1px; align-self: center; }
}

/* ============================================
   3) WHY CHOOSE US — bento gallery
   ============================================ */
.why-section { padding: 80px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }

.why-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    grid-template-rows: 220px 220px;
    gap: 12px;
    aspect-ratio: 1.05 / 1;
}
.bento-cell { overflow: hidden; border-radius: 14px; }
.bento-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.bento-cell:hover img { transform: scale(1.04); }
.bento-cell--1 { grid-column: 1; grid-row: 1; }
.bento-cell--2 { grid-column: 2; grid-row: 1; }
.bento-cell--3 { grid-column: 3; grid-row: 1 / span 2; }
.bento-cell--4 { grid-column: 1 / span 2; grid-row: 2; }
.bento-cell--5 { display: none; }

.why-content .lead {
    font-size: 1.05rem; color: var(--color-text); margin: 8px 0 16px; line-height: 1.65;
}
.why-content p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: 14px; }

.why-checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.why-checklist li {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0;
    color: var(--color-text);
    font-size: 1rem;
}
.why-checklist li svg { color: var(--color-secondary); flex-shrink: 0; }

@media (max-width: 992px) {
    .why-grid { grid-template-columns: 1fr; gap: 50px; }
    .why-bento { aspect-ratio: 1.4 / 1; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 600px) {
    .why-bento { grid-template-rows: 180px 180px; }
}

/* ============================================
   4) RECENT TRANSFORMATIONS — horizontal carousel
   ============================================ */
.transformations-section { padding: 80px 0 100px; background: #F9F9FB; }
.transformations-section .section-header { margin-bottom: 40px; }
.transformations-carousel { padding: 0 30px; }
.transformations-track {
    display: flex; gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 16px;
}
.transformations-track::-webkit-scrollbar { display: none; }
.transformation-card {
    flex: 0 0 calc(25% - 9px);
    min-width: 280px;
    aspect-ratio: 387 / 516;
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
    scroll-snap-align: start;
    background: #ddd;
}
.transformation-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.transformation-card:hover img { transform: scale(1.04); }

.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: #C8CDD4; border: none; cursor: pointer; padding: 0; transition: all 0.2s ease; }
.carousel-dot.active { background: var(--color-primary); width: 24px; border-radius: 4px; }

@media (max-width: 768px) {
    .transformation-card { flex: 0 0 calc(75% - 9px); }
}

/* ============================================
   5) MEET THE LEADER
   ============================================ */
.leader-section { padding: 100px 0 80px; background: #fff; }
.leader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.leader-content p { color: var(--color-text-muted); line-height: 1.75; margin-bottom: 14px; font-size: 1rem; }
.leader-quote {
    margin: 24px 0 0;
    padding: 20px 0 0 22px;
    border-left: 3px solid var(--color-secondary);
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
}

.leader-portrait {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(135deg, #F9F9FB, #E1E5EB);
}
.leader-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.leader-card {
    position: absolute; right: 18px; bottom: 18px;
    background: var(--color-primary); color: #fff;
    padding: 14px 20px; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(18, 36, 59, 0.2);
}
.leader-card-role { display: block; font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.5px; }
.leader-card-name { display: block; font-size: 1.05rem; font-weight: 700; margin-top: 2px; }

@media (max-width: 992px) {
    .leader-grid { grid-template-columns: 1fr; gap: 40px; }
    .leader-portrait { max-width: 480px; margin: 0 auto; }
}

/* ============================================
   6) "SCHLICKMANN" watermark transition
   ============================================ */
.watermark-section {
    background: var(--color-primary);
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.watermark-text {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 18vw, 18rem);
    font-weight: 700;
    line-height: 0.85;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.02em;
    white-space: nowrap;
    user-select: none;
}

/* ============================================
   7) TESTIMONIALS — navy bg + reviews grid
   ============================================ */
.testimonials-section { padding: 80px 0 100px; background: var(--color-primary); color: #fff; position: relative; }
.testimonials-section::before {
    content: 'SCHLICKMANN';
    position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-heading); font-size: clamp(5rem, 16vw, 14rem); font-weight: 700;
    color: rgba(255, 255, 255, 0.03); white-space: nowrap; pointer-events: none; line-height: 1;
}
.testimonials-section .section-header { color: #fff; margin-bottom: 50px; }
.testimonials-section .section-h2 { color: #fff; }
.testimonials-section .section-subtitle { color: rgba(255, 255, 255, 0.78); margin-bottom: 30px; }

.reviews-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px; margin-top: 40px;
    position: relative; z-index: 1;
}
.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 26px;
    color: #fff;
}
.review-stars { color: var(--color-gold); font-size: 1.15rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { color: rgba(255, 255, 255, 0.88); font-size: 0.93rem; line-height: 1.65; margin-bottom: 18px; font-style: italic; }
.review-header { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-secondary); display: flex; align-items: center; justify-content: center; color: var(--color-primary); font-weight: 700; flex-shrink: 0; }
.review-meta { display: flex; flex-direction: column; }
.review-author { font-weight: 600; font-size: 0.9rem; color: #fff; }
.review-date { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

@media (max-width: 992px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============================================
   8) OUR PROCESS — split with vertical timeline
   ============================================ */
.process-section { padding: 100px 0; background: #fff; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.process-intro { padding-right: 30px; }
.process-subhead {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin: 14px 0 20px;
}
.process-intro p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: 28px; }

.process-timeline {
    list-style: none; margin: 0; padding: 0;
    position: relative;
}
.process-timeline::before {
    content: ''; position: absolute;
    left: -40px; top: 30px; bottom: 30px;
    width: 1px; background: var(--color-secondary);
}
.process-step { position: relative; padding-left: 0; margin-bottom: 50px; }
.process-step:last-child { margin-bottom: 0; }
.process-step-number {
    position: absolute; left: -68px; top: 0;
    width: 56px; height: 56px;
    border: 1.5px solid var(--color-secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    font-family: var(--font-heading); font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-secondary);
}
.process-step-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin: 0 0 12px; }
.process-step-desc  { font-size: 0.97rem; color: var(--color-text-muted); line-height: 1.65; margin: 0; }

@media (max-width: 992px) {
    .process-grid { grid-template-columns: 1fr; gap: 50px; }
    .process-intro { padding-right: 0; }
    .process-timeline { padding-left: 75px; }
    .process-timeline::before { left: 28px; }
    .process-step-number { left: -47px; }
}

/* ============================================
   9) SERVICES — steel-blue split
   ============================================ */
.services-section { padding: 0; background: var(--color-primary-light); }
.services-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    min-height: 640px;
}
.services-visual {
    position: relative; overflow: hidden;
    background: #2c3e54;
    min-height: 480px;
}
.services-visual img,
.services-visual video,
.services-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.services-content {
    background: var(--color-primary-light);
    padding: 80px 60px;
    color: #fff;
    display: flex; align-items: center;
}
.services-content-inner { max-width: 720px; margin: 0 auto; }
.services-content .section-h2 { color: #fff; text-align: center; margin-bottom: 12px; }
.services-subtitle { color: rgba(255, 255, 255, 0.85); text-align: center; margin: 0 auto 40px; }

.services-grid-2x2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.service-card-mini {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 28px 26px 32px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}
.service-card-mini:hover { background: rgba(255, 255, 255, 0.10); transform: translateY(-3px); }
.service-card-icon-square {
    width: 52px; height: 52px;
    background: #fff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary-light);
    margin-bottom: 18px;
}
.service-card-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.service-card-desc  { font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); margin: 0; }

@media (max-width: 992px) {
    .services-split { grid-template-columns: 1fr; }
    .services-visual { min-height: 320px; }
    .services-content { padding: 60px 24px; }
}
@media (max-width: 600px) { .services-grid-2x2 { grid-template-columns: 1fr; } }

/* ============================================
   10) LATEST NEWS
   ============================================ */
.news-section { padding: 100px 0; background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid #E7E7E7; border-radius: 12px; padding: 30px; transition: box-shadow 0.2s ease; }
.news-card:hover { box-shadow: 0 12px 30px rgba(18, 36, 59, 0.08); }
.news-card-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin: 0 0 14px; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--color-primary); }
.news-card-excerpt { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 18px; }
.news-card-meta { padding: 14px 0; border-top: 1px solid #E7E7E7; }
.news-card-link { color: var(--color-secondary); font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-decoration: none; }
.news-card-link:hover { color: var(--color-primary); }
.news-card-date { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid #E7E7E7; font-style: italic; }

@media (max-width: 992px) { .news-grid { grid-template-columns: 1fr; } }

/* ============================================
   11) PORTFOLIO GALLERY (navy bg)
   ============================================ */
.portfolio-section { padding: 100px 0; background: var(--color-primary); color: #fff; }
.portfolio-section .section-h2 { color: #fff; }
.portfolio-subtitle { color: rgba(255, 255, 255, 0.78); margin-bottom: 0; max-width: 480px; margin-left: auto; margin-right: auto; }
.section-header--portfolio { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; max-width: none; text-align: left; margin-bottom: 60px; }
.section-header--portfolio .section-h2 { text-align: left; margin: 0; }
.section-header--portfolio .portfolio-subtitle { text-align: left; margin: 0; max-width: none; }

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.4fr;
    grid-template-rows: 280px 240px 240px;
    gap: 14px;
}
.portfolio-cell { margin: 0; overflow: hidden; border-radius: 12px; }
.portfolio-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.portfolio-cell:hover img { transform: scale(1.04); }
.portfolio-cell--1 { grid-column: 1; grid-row: 1; }
.portfolio-cell--2 { grid-column: 2; grid-row: 1; }
.portfolio-cell--3 { grid-column: 3; grid-row: 1; }
.portfolio-cell--4 { grid-column: 1 / span 2; grid-row: 2; }
.portfolio-cell--5 { grid-column: 3; grid-row: 2; }
.portfolio-cell--6 { grid-column: 1; grid-row: 3; }
.portfolio-cell--7 { grid-column: 2 / span 2; grid-row: 3; }
.portfolio-cell--8 { display: none; }
.portfolio-cell--9 { display: none; }

@media (max-width: 992px) {
    .section-header--portfolio { grid-template-columns: 1fr; }
    .section-header--portfolio .section-h2,
    .section-header--portfolio .portfolio-subtitle { text-align: left; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
    .portfolio-cell--4, .portfolio-cell--7 { grid-column: span 2; }
}
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } .portfolio-cell { grid-column: 1 !important; } }

/* ============================================
   12) FAQ
   ============================================ */
.faq-section { padding: 100px 0; background: var(--color-bg-alt); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid #E7E7E7;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-question {
    width: 100%; padding: 22px 26px;
    background: transparent; border: 0;
    display: flex; align-items: center; justify-content: space-between;
    text-align: left;
    font-family: var(--font-primary); font-size: 1.05rem; font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: color 0.2s ease;
}
.faq-question span { flex: 1; padding-right: 14px; }
.faq-toggle { font-size: 1.4rem; color: var(--color-secondary); width: 24px; text-align: center; flex-shrink: 0; }
.faq-item.active .faq-question { color: var(--color-secondary); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 26px; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 600px; padding: 0 26px 24px; }
.faq-answer p { color: var(--color-text-muted); line-height: 1.7; margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================
   13) FILLING UP FAST — final CTA
   ============================================ */
.cta-final-section { padding: 110px 0 130px; background: linear-gradient(135deg, var(--color-primary) 0%, #1a2c4a 100%); color: #fff; text-align: center; }
.cta-final-content { max-width: 700px; margin: 0 auto; }
.cta-final-section .section-h2 { color: #fff; margin: 0 0 18px; }
.cta-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px;
    background: rgba(109, 139, 178, 0.15);
    border: 1px solid rgba(109, 139, 178, 0.4);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
    margin-bottom: 22px;
    text-transform: uppercase;
}
.cta-final-subtitle { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; line-height: 1.65; margin: 0 0 32px; }
.cta-trust-row { list-style: none; padding: 0; margin: 28px 0 0; display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.cta-trust-row li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.cta-trust-row li svg { color: var(--color-secondary); }

/* Hide HLD-era sections we replaced */
.intro-section,
.why-us-section,
.trust-bar,
.final-cta-section { display: none !important; }
