/* ==========================================================================
   Landmark Development Construction — Responsive Rules
   Breakpoints, mobile-first overrides. Grouped by component.
   Add new page/component breakpoints below in the same pattern.
   ========================================================================== */

/* ---------- Header: small laptop — tighten spacing, nav stays visible ---------- */
@media (max-width: 1180px){
  .header-inner{ padding:0 28px; gap:24px; }
  .nav-group{ gap:24px; }
  .main-nav ul{ gap:28px; }
}

/* ---------- Header: tablet — compact nav, still on one line ---------- */
@media (max-width: 1020px){
  .header-inner{ padding:0 24px; gap:18px; }
  .main-nav a{ font-size:12px; letter-spacing:0.08em; }
  .main-nav ul{ gap:20px; }
  .header-actions{ gap:14px; }
  .btn-call{ padding:5px 16px 5px 5px; font-size:13px; height:42px; }
  .btn-call-icon{ width:32px; height:32px; }
  .search-panel{ padding:30px 24px 36px; }
}

/* ---------- Header: switch to the drawer menu ---------- */
@media (max-width: 920px){
  .header-inner{
    grid-template-columns:auto 1fr;
    height:76px;
    padding:0 24px;
  }
  .site-header.scrolled .header-inner{ height:68px; }
  .nav-group{ display:none; }
  .header-actions{ display:none; }
  .btn-call-mobile{ display:none; }
  .mobile-icons{ display:flex; }
  .search-toggle--mobile{ display:flex; }
  .nav-toggle{ display:flex; }
  .brand-logo{ height:42px; }
  .site-header.scrolled .brand-logo{ height:38px; }
  .search-panel{ padding:26px 20px 32px; }
  .search-form input{ font-size:16px; }
  .search-results{ max-height:none; }
}

/* ---------- Header: phone ---------- */
@media (max-width: 480px){
  .header-inner{ padding:0 18px; height:68px; }
  .site-header.scrolled .header-inner{ height:60px; }
  .brand-logo{ height:36px; }
  .nav-toggle{ width:40px; height:40px; }
  .btn-call-mobile{ width:38px; height:38px; }
  .search-toggle--mobile{ width:40px; height:40px; }
  .mobile-panel{ width:100%; padding:20px 24px 28px; }
  .mobile-panel nav a{ font-size:17px; padding:15px 2px; }
  .search-panel{ padding:22px 16px 28px; }
  .search-chips{ gap:8px; }
  .search-result-location{ display:none; }
}

/* ---------- Hero ---------- */
@media (max-width: 920px){
  .hero{ height:auto; min-height:100vh; padding:100px 0 40px; }
  .hero-search-wrap{ margin-top:24px; }
  .hero-badges{ margin-top:24px; padding-top:20px; }
}

@media (max-width: 620px){
  .hero-sub{ font-size:13.5px; }
}

@media (max-width: 480px){
  .hero{ padding:92px 0 32px; }
  .hero-heading{ margin-bottom:10px; }
  .hero-search-wrap{ margin-top:20px; }
  .hero-badges{ margin-top:20px; padding-top:16px; }
}

/* ---------- Hero Search Panel ----------
   Desktop: single horizontal bar (base styles in components.css).
   Tablet: fields wrap into their own row, reset + a full-width
   search button form the second row.
   Mobile: every filter and the button stack vertically.
   Left/right padding comes from the generic .container rule — the
   same element type as .hero-content and .hero-badges' inner
   container — so all three hero blocks stay aligned at every
   breakpoint instead of drifting apart. */
@media (max-width: 920px){
  /* Tablet/mobile filter card: titled panel with a 2-column grid.
     Row 1: Property Type + Location.  Row 2: Project Status + Reset. */
  .hero-search{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    align-items:stretch;
    padding:22px;
    border-radius:14px;
    border:1px solid var(--line);
    border-top:3px solid var(--gold);
    box-shadow:0 22px 44px rgba(20,26,82,0.18);
  }
  .hs-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    grid-column:1 / -1;
    margin-bottom:2px;
  }
  .hs-head-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
  .hs-head-reset{
    display:inline-flex;
    align-items:center;
    gap:7px;
    flex-shrink:0;
    padding:8px 12px;
    background:transparent;
    border:1px solid var(--line);
    border-radius:999px;
    color:rgba(110,106,99,0.7);
    font-family:var(--font-body);
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    cursor:pointer;
    transition:color .2s ease, border-color .2s ease, background-color .2s ease;
  }
  .hs-head-reset svg{ width:12px; height:12px; }
  .hs-head-reset.is-active{ color:var(--brick); border-color:rgba(227,30,36,0.35); }
  .hs-head-reset:hover{ color:var(--brick); border-color:var(--brick); }
  .hs-head-title{
    font-family:var(--font-body);
    font-size:16px;
    font-weight:700;
    color:var(--navy);
    letter-spacing:0.01em;
  }
  .hs-head-sub{
    font-family:var(--font-body);
    font-size:12.5px;
    color:var(--gray);
  }
  /* Let the three fields and the reset button be direct grid cells. */
  .hs-fields{ display:contents; }
  .hs-divider,
  .hs-divider--reset{ display:none; }
  .hs-field{
    min-width:0;
    background:#FFFFFF;
    border:1px solid var(--line);
    border-radius:10px;
    transition:border-color .2s ease, box-shadow .2s ease;
  }
  .hs-field.is-open{
    border-color:var(--brick);
    box-shadow:0 0 0 3px rgba(227,30,36,0.10);
  }
  .hs-field.has-selection{ border-color:rgba(227,30,36,0.35); }
  .hs-field-btn{
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:14px;
    border-radius:10px;
  }
  .hs-field-btn:hover,
  .hs-field.is-open .hs-field-btn{ background:var(--cream); }
  .hs-field-icon{ width:18px; height:18px; }
  .hs-field-icon svg{ width:16px; height:16px; }
  .hs-field-text{ width:auto; flex:1 1 auto; gap:4px; }
  .hs-field-label{ font-size:10.5px; letter-spacing:0.07em; }
  .hs-field-value{ font-size:15px; }
  .hs-chevron{
    position:static;
    margin:0 0 0 auto;
    width:11px;
    height:11px;
  }
  .hs-dropdown{ min-width:210px; }
  .hs-field[data-field="location"] .hs-dropdown{ left:auto; right:0; }
  .hs-reset{ display:none; }
  .hs-search{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    width:100%;
    min-height:58px;
    padding:0 16px;
    background:linear-gradient(135deg, #2F3AA8 0%, #283090 45%, #1B2270 100%);
    color:#FFFFFF;
    border:0;
    border-radius:12px;
    font-family:var(--font-body);
    font-size:14px;
    font-weight:600;
    letter-spacing:0.14em;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.18),
      0 10px 22px rgba(40,48,144,0.30);
    transition:transform .25s ease, box-shadow .25s ease;
  }
  /* Soft light sheen that sweeps across on hover / focus */
  .hs-search::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:-60%;
    width:45%;
    z-index:-1;
    background:linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.20) 50%, transparent 100%);
    transform:skewX(-18deg);
    transition:left .7s ease;
  }
  .hs-search svg{
    width:15px;
    height:15px;
    color:#FFFFFF;
    flex-shrink:0;
    transition:transform .25s ease;
  }
  .hs-search:hover,
  .hs-search:focus-visible{
    transform:translateY(-2px);
    filter:brightness(1.1);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.22),
      0 14px 28px rgba(40,48,144,0.38);
  }
  .hs-search:hover::before,
  .hs-search:focus-visible::before{ left:120%; }
  .hs-search:hover svg,
  .hs-search:focus-visible svg{ transform:scale(1.12); }
  .hs-search:active{ transform:translateY(0); box-shadow:inset 0 2px 6px rgba(0,0,0,0.3); }
}

@media (max-width: 480px){
  .hero-search{ padding:16px; gap:10px; }
  .hs-field-btn{ gap:8px; padding:12px 10px; }
  .hs-field-icon,
  .hs-field-icon svg{ width:15px; height:15px; }
  .hs-field-label{ font-size:9.5px; letter-spacing:0.04em; }
  .hs-field-value{ font-size:13.5px; }
  .hs-chevron{ width:9px; height:9px; }
  .hs-search{ font-size:12.5px; gap:8px; letter-spacing:0.1em; }
  .hs-head-reset{ padding:7px 10px; font-size:11.5px; }
}

@media (max-width: 380px){
  .hs-chevron{ display:none; }
  .hs-field-label{ white-space:nowrap; letter-spacing:0.02em; }
}

/* ---------- Hero Trust Badges ---------- */
@media (max-width: 920px){
  .tb-grid{
    grid-template-columns:repeat(2, 1fr);
    row-gap:28px;
  }
}

@media (max-width: 560px){
  .tb-grid{ grid-template-columns:1fr; }
  .tb-icon{ width:38px; height:38px; }
  .tb-icon svg{ width:16px; height:16px; }
}


/* ---------- Project Filter Bar ---------- */
@media (max-width: 768px){
  .pf-mobile-trigger{
    display:inline-flex;
    align-items:center;
    gap:10px;
    width:100%;
    justify-content:center;
    padding:14px 20px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#FFFFFF;
    box-shadow:0 8px 20px rgba(40,48,144,0.06);
    color:var(--navy);
    font-family:var(--font-body);
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    margin-bottom:20px;
  }
  .pf-mobile-trigger svg{ width:17px; height:17px; }

  .pf-panel{
    display:none;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1000;
    width:auto;
    max-width:none;
    margin-left:0;
    margin-right:0;
    max-height:82vh;
    overflow-y:auto;
    border-radius:20px 20px 0 0;
    box-shadow:0 -20px 50px rgba(40,48,144,0.28);
    padding:20px 20px calc(20px + env(safe-area-inset-bottom));
    margin-bottom:0;
    transform:translateY(100%);
    transition:transform .32s ease;
  }
  .pf-panel.is-mobile-open{
    display:flex;
    flex-direction:column;
    transform:translateY(0);
  }

  .pf-backdrop.is-visible{
    display:block;
    position:fixed;
    inset:0;
    z-index:999;
    background:rgba(20,26,82,0.5);
  }

  .pf-panel-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:16px;
    margin-bottom:16px;
    border-bottom:1px solid var(--line);
    font-family:var(--font-heading);
    font-size:17px;
    font-weight:600;
    color:var(--navy);
  }
  .pf-panel-close{
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border:none;
    background:var(--cream);
    border-radius:50%;
    color:var(--navy);
    cursor:pointer;
  }
  .pf-panel-close svg{ width:15px; height:15px; }

  .pf-groups{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .pf-filter{ width:100%; }
  .pf-filter-btn{ width:100%; justify-content:space-between; }
  .pf-groups > .pf-reset{ display:none; }

  .pf-dropdown{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    box-shadow:none;
    border:none;
    padding:6px 0 4px 4px;
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }
  .pf-filter.is-open .pf-dropdown{
    max-height:320px;
  }

  .pf-panel-footer{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid var(--line);
  }
  .pf-panel-footer .pf-reset--sheet{
    flex:1;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px;
  }
  .pf-apply{
    flex:1.4;
    padding:12px;
    border:none;
    border-radius:10px;
    background:var(--navy);
    color:#FFFFFF;
    font-family:var(--font-body);
    font-size:14px;
    font-weight:700;
    cursor:pointer;
  }

  .pf-results{ justify-content:flex-start; }
}

body.pf-lock-scroll{ overflow:hidden; }

/* ---------- About Intro ---------- */
@media (max-width: 920px){
  .about-intro{ padding:72px 0; }
  .about-grid{
    grid-template-columns:1fr;
    gap:40px;
  }
  .about-heading,
  .about-text{ max-width:100%; }
}

@media (max-width: 480px){
  .about-intro{ padding:56px 0; }
  .about-stats{ gap:28px; flex-wrap:wrap; }
}

/* ---------- Portfolio Promo ---------- */
@media (max-width: 1080px){
}

@media (max-width: 920px){
  .portfolio-promo{ padding:64px 0; margin-bottom:80px; }
  .pp-grid{ flex-direction:column; gap:56px; }
  .pp-content{ max-width:none; flex:none; text-align:center; }
  .pp-visual{ flex:none; }
  .pp-list{ text-align:left; max-width:420px; margin-left:auto; margin-right:auto; }
  .pp-trust{ justify-content:center; }
  .pp-visual{ height:320px; max-width:420px; margin:0 auto; }
  .pp-card--back-left,
  .pp-card--back-right{ width:150px; height:200px; }
  .pp-card--front{ width:210px; height:290px; }
}

@media (max-width: 480px){
  .portfolio-promo{ padding:48px 0; margin-bottom:64px; }
  .pp-heading{ margin-bottom:20px; }
  .pp-visual{ height:280px; }
  .pp-card--back-left,
  .pp-card--back-right{ width:120px; height:165px; }
  .pp-card--front{ width:180px; height:250px; }
  .pp-card-label{ padding:6px 8px; gap:8px; }
  .pp-card-avatar{ width:24px; height:24px; font-size:10.5px; }
  .pp-card-name{ font-size:11.5px; }
  .pp-card-role{ font-size:10px; }
}

/* ---------- Our Services ---------- */
@media (max-width: 920px){
  .services{ padding:0 0 80px; }
  .svc-header{ margin-bottom:40px; }
  .svc-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
  }
}

@media (max-width: 560px){
  .services{ padding:0 0 64px; }
  .svc-grid{ grid-template-columns:1fr; }
}

/* ---------- Our Experts ---------- */
@media (max-width: 920px){
  .experts{ padding:0 0 80px; }
  .xpt-top{ margin-bottom:32px; }
  .xpt-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
  }
}

@media (max-width: 560px){
  .experts{ padding:0 0 64px; }
  .xpt-top{ flex-direction:column; align-items:flex-start; gap:18px; }
  .xpt-grid{ grid-template-columns:1fr; }
}

/* ---------- Featured Projects ---------- */
@media (max-width: 920px){
  .featured-projects{ padding:72px 0 80px; }
  .fp-top{ flex-direction:column; align-items:flex-start; gap:16px; }
  /* Category chips stay on one line. A Next / Previous arrow steps
     through the ones that don't fit (touch-drag still works too). */
  .fp-pill-wrap{ margin-top:24px; }
  .fp-pill-bar{
    flex-wrap:nowrap;
    overflow-x:auto;
    margin-top:0;
    padding:2px 0 4px;
    scroll-behavior:smooth;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .fp-pill-bar::-webkit-scrollbar{ display:none; }
  .fp-pill{ flex-shrink:0; scroll-snap-align:start; }
  .fp-pill-nav{
    position:absolute;
    top:0;
    bottom:4px;
    z-index:2;
    display:flex;
    align-items:center;
    width:64px;
    padding:0;
    border:none;
    background:none;
    color:var(--navy);
    cursor:pointer;
  }
  .fp-pill-nav[hidden]{ display:none; }
  .fp-pill-nav svg{
    width:34px;
    height:34px;
    padding:11px;
    border-radius:50%;
    background:#FFFFFF;
    border:1px solid var(--line);
    box-shadow:0 4px 12px rgba(40,48,144,0.14);
    transition:background-color .2s ease, color .2s ease, border-color .2s ease;
  }
  .fp-pill-nav:hover svg,
  .fp-pill-nav:focus-visible svg{ background:var(--navy); color:#FFFFFF; border-color:var(--navy); }
  .fp-pill-nav--next{
    right:0;
    justify-content:flex-end;
    background:linear-gradient(90deg, rgba(250,248,244,0) 0%, var(--cream) 62%);
  }
  .fp-pill-nav--prev{
    left:0;
    justify-content:flex-start;
    background:linear-gradient(270deg, rgba(250,248,244,0) 0%, var(--cream) 62%);
  }
  .fp-grid{
    grid-template-columns:1fr;
    gap:24px;
    margin-top:28px;
  }
}

@media (max-width: 480px){
  .featured-projects{ padding:56px 0 64px; }
  .fp-pill-bar{ gap:8px; }
  .fp-pill-nav{ width:52px; }
  .fp-pill{ height:38px; padding:0 16px; font-size:13px; }
  .fp-grid{ margin-top:24px; }
  .fp-card-body{ padding:22px 20px 20px; }
  .fp-overlay{ padding:22px 20px 20px; gap:10px; }
}

/* ---------- Anniversary / Milestone Gallery ---------- */
@media (max-width: 920px){
  .anniversary{ padding:72px 0 84px; }
  .ann-header{ margin-bottom:36px; }
  .ann-gallery{ gap:16px; }
  .ann-photo{ flex:1 1 45%; max-width:none; }
  .ann-photo--short{ align-self:flex-end; }
}

@media (max-width: 560px){
  .ann-gallery{ flex-direction:column; align-items:stretch; }
  .ann-photo{ max-width:360px; margin:0 auto; width:100%; }
  .ann-photo--tall,
  .ann-photo--short{ aspect-ratio:3 / 2.4; align-self:center; }
}

/* ---------- Contact Page ---------- */
@media (max-width: 920px){
  .contact-section{ padding:64px 0; }
  .contact-grid{ grid-template-columns:1fr; border-radius:16px; }
  .contact-info,
  .contact-form-panel{ padding:40px 32px; }
  .contact-sub{ max-width:100%; }
}

@media (max-width: 560px){
  .contact-info,
  .contact-form-panel{ padding:32px 22px; }
  .form-row{ grid-template-columns:1fr; gap:22px; }
}

/* ---------- Testimonials ---------- */
@media (max-width: 920px){
  .testimonials{ padding:56px 0 80px; }
  .tst-layout{
    grid-template-columns:1fr;
    gap:40px;
  }
  .tst-right{ order:-1; max-width:420px; }
  .tst-photo-wrap{ aspect-ratio:16/10; }
}

@media (max-width: 480px){
  .testimonials{ padding:40px 0 64px; }
  .tst-panel{ padding:22px 20px; }
}

/* ---------- FAQ ---------- */
@media (max-width: 920px){
  .faq{ padding:56px 0 80px; }
  .faq-header{ margin-bottom:36px; }
  .faq-layout{
    grid-template-columns:1fr;
    max-width:640px;
    gap:24px;
  }
  .faq-sidebar{
    flex-direction:row;
    overflow-x:auto;
    gap:10px;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .faq-sidebar::-webkit-scrollbar{ display:none; }
  .faq-cat{
    flex-shrink:0;
    width:auto;
    padding:10px 16px 10px 10px;
  }
  .faq-cat.is-active::before{
    top:auto;
    bottom:0;
    left:12px;
    right:12px;
    width:auto;
    height:3px;
  }
  .faq-cat-icon{ width:34px; height:34px; }
  .faq-cat-icon svg{ width:16px; height:16px; }
  .faq-cat-count{ display:none; }
}

@media (max-width: 480px){
  .faq{ padding:40px 0 64px; }
  .faq-panel-header{ gap:12px; margin-bottom:18px; }
  .faq-panel-icon{ width:38px; height:38px; }
  .faq-panel-icon svg{ width:18px; height:18px; }
  .faq-panel-title{ font-size:17px; }
  .faq-question{ font-size:14.5px; padding:18px; gap:16px; }
  .faq-answer > p{ padding:0 18px 20px 34px; }
  .faq-item.active .faq-answer{ max-height:360px; }
  .faq-icon{ width:14px; height:14px; }
}

/* ---------- CTA Banner ---------- */
@media (max-width: 920px){
  .cta-banner{ padding:0 0 80px; }
  .cta-banner-inner{
    flex-direction:column;
    align-items:flex-start;
    padding:40px 36px;
    border-radius:22px;
  }
  .cta-banner-btn{ width:100%; justify-content:center; }
}

@media (max-width: 480px){
  .cta-banner{ padding:0 0 64px; }
  .cta-banner-inner{ padding:32px 24px; }
}

/* ---------- Featured Project Spotlight ---------- */
@media (max-width: 920px){
  .project-spotlight{ height:auto; padding:64px 0 0; }
  .spot-overlay{
    background:linear-gradient(180deg, rgba(12,16,58,0.82) 0%, rgba(12,16,58,0.6) 55%, rgba(12,16,58,0.35) 100%);
  }
  .spot-grid{
    grid-template-columns:1fr;
    height:auto;
    row-gap:32px;
  }
  .spot-content{ max-width:100%; }
  .spot-inset{ align-self:auto; padding:8px 8px 18px; }
}

@media (max-width: 480px){
  .project-spotlight{ padding:48px 0 0; }
  .spot-title{ font-size:34px; }
  .spot-address{ margin-bottom:32px; }
  .spot-progress{ width:150px; }
}

/* ---------- Site Footer ---------- */
@media (max-width: 920px){
  .footer-top{ padding:64px 0 40px; }
  .footer-grid{
    grid-template-columns:1fr 1fr;
    row-gap:40px;
  }
}

@media (max-width: 620px){
  .footer-top{ padding:56px 0 36px; }
  .footer-grid{
    grid-template-columns:1fr;
    row-gap:36px;
  }
  .footer-tagline{ max-width:none; }
  .footer-bottom-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 480px){
  .footer-top{ padding:48px 0 32px; }
}


/* Hero overlay on narrow screens: text spans the full width, so use the
   same even navy wash as the Portfolio section's video overlay. */
@media (max-width: 768px){
  .hero-overlay{
    background:linear-gradient(180deg, rgba(13,22,38,0.82) 0%, rgba(13,22,38,0.72) 50%, rgba(13,22,38,0.85) 100%);
  }
}
