/* ============================================================
   style.css — SPEKLOG Shared Styles
   ============================================================ */

/* GOOGLE FONTS — loaded here so style.css is the single import for all pages */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* VARIABLES — colours pulled from SPEKLOG logo: deep teal #003c50, olive-lime #a0b400 */
:root {
  --navy:      #003c50;   /* logo text colour — deep teal */
  --navy-2:    #004d66;   /* slightly lighter teal for hover/secondary dark */
  --teal:      #006b8f;   /* mid teal — buttons, links, highlights */
  --teal-dk:   #005070;   /* darker teal on hover */
  --lime:      #a0b400;   /* logo swoosh — olive-lime accent */
  --lime-dk:   #8a9a00;   /* darker olive on hover */
  --white:     #ffffff;
  --off-white: #f2f6f8;
  --gray:      #e4eaed;
  --gray-2:    #7a9099;
  --text:      #1a3040;
  --shadow:    0 4px 24px rgba(0,60,80,.13);
  --shadow-lg: 0 8px 48px rgba(0,60,80,.22);
  --radius:    12px;
  --trans:     all .3s ease;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; color: var(--navy); }
.section-title span { color: var(--teal); }
.section-title.light { color: var(--white); }
.section-subtitle { font-size: .94rem; color: var(--gray-2); line-height: 1.75; margin-top: 14px; max-width: 560px; }
.section-divider { height: 3px; background: linear-gradient(to right, var(--teal), var(--lime), var(--teal)); }

/* SECTIONS */
.section { padding: 96px 0; }
.section-light { background: var(--white); }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,.55); }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 14px auto 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 6px; font-size: .9rem; font-weight: 600; transition: var(--trans); letter-spacing: .02em; cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dk); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lime { background: var(--lime); color: var(--white); }
.btn-lime:hover { background: var(--lime-dk); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-white { border: 2px solid rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: .1s; }
.fade-delay-2 { transition-delay: .2s; }
.fade-delay-3 { transition-delay: .3s; }
.fade-delay-4 { transition-delay: .4s; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 32px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,60,80,0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .35s ease, box-shadow .35s ease;
}
#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,60,80,.15);
  border-bottom: 1px solid rgba(0,60,80,0.12);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
/* nav-logo-img: navbar logo. logo-img: footer logo on gallery/contact */
.nav-logo-img { height: 72px; width: auto; object-fit: contain; transition: height .35s ease; }
#navbar.scrolled .nav-logo-img { height: 62px; }
.logo-img { height: 72px; width: auto; object-fit: contain; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: .04em; }
.section-sub { font-size: .94rem; color: var(--gray-2); line-height: 1.75; margin-top: 12px; max-width: 600px; }
.nav-logo-fallback { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; line-height: 1; }
.nav-logo-sub { font-size: .5rem; font-weight: 600; color: var(--lime); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: .82rem; font-weight: 600; color: var(--navy); padding: 8px 14px; border-radius: 6px; transition: var(--trans); letter-spacing: .03em; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links .nav-cta { background: var(--teal); color: var(--white) !important; padding: 9px 20px; margin-left: 8px; border-radius: 6px; }
.nav-links .nav-cta:hover { background: var(--teal-dk); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 6px; background: transparent; cursor: pointer; border: none; transition: var(--trans); }
.hamburger:hover { background: rgba(0,60,80,.08); }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: min(320px, 80vw); height: 100vh; background: var(--navy); z-index: 998; display: flex; flex-direction: column; padding: 96px 28px 40px; gap: 6px; overflow-y: auto; transition: right .35s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 32px rgba(0,0,0,.4); }
.mobile-menu.open { right: 0; }
.mobile-menu a { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.82); padding: 13px 16px; border-radius: 8px; transition: var(--trans); border-left: 3px solid transparent; }
.mobile-menu a:hover, .mobile-menu a.active { background: rgba(255,255,255,.08); color: var(--white); border-left-color: var(--lime); padding-left: 20px; }
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 997;
  backdrop-filter: blur(3px);
}
.mobile-menu-overlay.open { display: block; }


/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { position: relative; padding: 160px 24px 90px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 460px; background: var(--navy) center/cover no-repeat; background-size: cover !important; background-position: center !important; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .85; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(175deg, rgba(0,25,40,.44) 0%, rgba(0,45,65,.28) 50%, rgba(0,25,40,.40) 100%); }
/* Construction hero overlay */
.construction-hero .page-hero-overlay { background: linear-gradient(175deg, rgba(0,20,35,.40) 0%, rgba(0,40,60,.25) 50%, rgba(0,20,35,.38) 100%); }
.page-hero-content { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 20px; font-size: .78rem; color: rgba(255,255,255,.45); }
.breadcrumb a { color: rgba(255,255,255,.45); transition: var(--trans); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .sep { color: rgba(255,255,255,.25); }
.breadcrumb span { color: var(--lime); font-weight: 600; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.7); }
.page-hero p { font-size: .95rem; color: rgba(255,255,255,.9); line-height: 1.8; max-width: 600px; margin: 0 auto; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

/* ============================================================
   HOMEPAGE STATS BAR
   ============================================================ */
.stats-bar { background: var(--teal); padding: 40px 24px; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); line-height: 1; }
.stat-num span { color: var(--lime); }
.stat-label { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }

/* ============================================================
   DIVISION CARDS (homepage)
   ============================================================ */
.division-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.division-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 440px; cursor: pointer; transition: var(--trans); background: var(--navy); }
.division-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.division-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.division-card:hover img { transform: scale(1.06); }
.division-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,60,80,.94) 0%, rgba(0,60,80,.25) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.division-tag-label { font-size: .69rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.division-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.division-card p { font-size: .84rem; color: rgba(255,255,255,.68); line-height: 1.6; margin-bottom: 18px; max-height: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s; opacity: 0; }
.division-card:hover p { max-height: 100px; opacity: 1; }
.division-link { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--lime); }
.division-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: var(--trans); }
.division-card:hover .division-link svg { transform: translateX(4px); }

/* ============================================================
   FEATURES GRID (Why Choose SPEKLOG)
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { padding: 28px 22px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: var(--trans); }
.feature-card:hover { background: rgba(255,255,255,.09); border-color: rgba(137,197,65,.3); transform: translateY(-4px); }
.feature-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(0,107,143,.18); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--lime); fill: none; stroke-width: 1.7; }
.feature-card h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: .83rem; color: rgba(255,255,255,.48); line-height: 1.65; }
.feature-card.on-light { background: var(--white); border: 1px solid var(--gray); }
.feature-card.on-light h4 { color: var(--navy); }
.feature-card.on-light p { color: var(--gray-2); }
.feature-card.on-light:hover { border-color: var(--teal); box-shadow: var(--shadow); }

/* ============================================================
   FEATURED WORK (homepage)
   ============================================================ */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featured-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 260px; cursor: pointer; background: var(--navy); }
.featured-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.featured-item:hover img { transform: scale(1.07); }
.featured-caption { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,60,80,.9) 0%, transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; opacity: 0; transition: opacity .35s ease; }
.featured-item:hover .featured-caption { opacity: 1; }
.featured-caption h4 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.featured-caption span { font-size: .74rem; color: var(--lime); font-weight: 600; }

/* ============================================================
   ABOUT GRID (inner pages)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid.reverse .about-img { order: 2; }
.about-grid.reverse .about-text { order: 1; }
.about-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 480px; object-fit: cover; object-position: center; display: block; }
.about-badge { position: absolute; bottom: 24px; left: 24px; background: var(--teal); color: var(--white); padding: 14px 20px; border-radius: 8px; font-size: .8rem; font-weight: 700; line-height: 1.4; box-shadow: var(--shadow); }
.about-badge strong { display: block; font-size: 1.5rem; font-family: 'Playfair Display', serif; }
.about-text .section-subtitle { max-width: 100%; }
.about-list { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: .87rem; font-weight: 500; color: var(--text); }
.about-list li::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.about-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ============================================================
   SERVICES LIST GRID (inner pages)
   ============================================================ */
.services-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item { padding: 28px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 3px solid var(--teal); transition: var(--trans); }
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-left-color: var(--lime); }
.service-item h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.service-item p { font-size: .84rem; color: var(--gray-2); line-height: 1.65; }

/* ============================================================
   TIMELINE (construction page)
   ============================================================ */
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--gray); border-radius: var(--radius); overflow: hidden; }
.timeline-item { padding: 32px 26px; border-right: 1px solid var(--gray); border-bottom: 1px solid var(--gray); }
.timeline-item:nth-child(3), .timeline-item:nth-child(6) { border-right: none; }
.timeline-item:nth-child(4), .timeline-item:nth-child(5), .timeline-item:nth-child(6) { border-bottom: none; }
.timeline-week { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.timeline-item h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.timeline-item p { font-size: .84rem; color: var(--gray-2); line-height: 1.6; }

/* ============================================================
   QUALITY BAR (construction page)
   ============================================================ */
.quality-bar { background: #f5f8fa; border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; border: 1px solid rgba(0,60,80,.08); }
.quality-item svg { width: 40px; height: 40px; stroke: var(--teal); fill: none; stroke-width: 1.5; margin: 0 auto 12px; display: block; }
.quality-item h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.quality-item p { font-size: .82rem; color: var(--gray-2); line-height: 1.6; }

/* ============================================================
   PROCESS STEPS (interior page)
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { text-align: center; padding: 32px 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.process-step::before { content: attr(data-num); font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 700; color: var(--teal); opacity: .06; position: absolute; top: -8px; right: 10px; line-height: 1; }
.process-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.process-icon svg { width: 24px; height: 24px; stroke: white; fill: none; stroke-width: 1.8; }
.process-step h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: .83rem; color: var(--gray-2); line-height: 1.6; }

/* ============================================================
   PROPERTY CARDS (real estate)
   ============================================================ */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.property-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: var(--trans); }
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property-img { position: relative; height: 220px; overflow: hidden; background: var(--navy); }
.property-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.property-card:hover .property-img img { transform: scale(1.05); }
.property-badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.badge-sale { background: var(--teal); color: var(--white); }
.badge-rent { background: var(--lime); color: var(--white); }
.badge-featured { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.6); color: var(--white); padding: 4px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.property-body { padding: 20px; }
.property-price { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.property-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.property-location { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--gray-2); margin-bottom: 14px; }
.property-location svg { width: 14px; height: 14px; stroke: var(--lime); fill: none; stroke-width: 2; }
.property-meta { display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid var(--gray); flex-wrap: wrap; }
.property-meta span { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--gray-2); font-weight: 500; }
.property-meta svg { width: 14px; height: 14px; stroke: var(--teal); fill: none; stroke-width: 2; }

/* ============================================================
   GALLERY FILTER + MASONRY (gallery page)
   ============================================================ */
.gal-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.gal-btn { padding: 9px 24px; border-radius: 24px; font-size: .82rem; font-weight: 700; border: 2px solid var(--gray); color: var(--gray-2); cursor: pointer; background: var(--white); transition: var(--trans); letter-spacing: .02em; font-family: inherit; }
.gal-btn:hover { border-color: var(--teal); color: var(--teal); }
.gal-btn.active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.masonry { columns: 4; column-gap: 12px; }
/* Inline page galleries (construction, interior) use 3 cols by default */
.masonry.inline-gallery { columns: 3; column-gap: 14px; }
.masonry-item { break-inside: avoid; margin-bottom: 12px; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; display: block; }
.masonry-item img { width: 100%; display: block; transition: transform .4s ease; }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-overlay { position: absolute; inset: 0; background: rgba(0,60,80,.52); opacity: 0; transition: var(--trans); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; }
.masonry-overlay svg { width: 30px; height: 30px; stroke: white; fill: none; stroke-width: 1.8; }
.masonry-overlay span { font-size: .7rem; font-weight: 700; color: var(--lime); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.masonry-item:hover .masonry-overlay { opacity: 1; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.95); align-items: center; justify-content: center; padding: 20px; }
#lightbox.open { display: flex; }
#lb-img { max-width: 90vw; max-height: 88vh; border-radius: 8px; object-fit: contain; }
#lb-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.55); font-size: .8rem; text-align: center; white-space: nowrap; }
.lb-close { position: absolute; top: 18px; right: 22px; color: white; font-size: 1.8rem; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); transition: var(--trans); user-select: none; }
.lb-close:hover { background: var(--teal); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); color: white; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--trans); font-size: 1.4rem; user-select: none; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: var(--teal); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--navy); margin-bottom: 16px; }
.contact-info > p { font-size: .9rem; color: var(--gray-2); line-height: 1.75; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(0,107,143,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; stroke-width: 1.8; }
.contact-detail-text strong { display: block; font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; letter-spacing: .04em; text-transform: uppercase; }
.contact-detail-text span { font-size: .88rem; color: var(--gray-2); line-height: 1.5; }
.contact-form-wrap { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: 7px; letter-spacing: .02em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border-radius: 8px; border: 2px solid var(--gray); font-family: inherit; font-size: .87rem; color: var(--text); background: var(--off-white); transition: var(--trans); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #e74c3c; }
.form-error { font-size: .75rem; color: #e74c3c; margin-top: 4px; display: none; }
.form-group.error .form-error { display: block; }
.form-success { display: none; padding: 16px 20px; border-radius: 8px; background: rgba(137,197,65,.12); border: 1px solid var(--lime); color: var(--lime-dk); font-size: .9rem; font-weight: 600; text-align: center; margin-bottom: 16px; }

/* ============================================================
   MAP
   ============================================================ */
.map-wrap { border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.map-wrap iframe { width: 100%; height: 300px; border: none; display: block; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--teal); padding: 80px 24px; text-align: center; }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--white); margin-bottom: 16px; }
.cta-section p { font-size: .95rem; color: rgba(255,255,255,.75); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #fff; border-top: 1px solid rgba(0,0,0,.08); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-logo img { height: 80px; width: auto; object-fit: contain; }
.footer-brand-logo-fallback { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.footer-brand > p { font-size: .84rem; color: var(--gray-2); line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.footer-group-name { font-family: 'Playfair Display', serif; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-2); margin: 0 0 6px !important; }
.footer-subsidiaries { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.footer-sub-alog, .footer-sub-speklog, .footer-sub-spektar { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: var(--trans); }
.footer-sub-alog { color: var(--navy); }
.footer-sub-alog:hover { color: var(--teal); }
.footer-sub-speklog { color: var(--teal); }
.footer-sub-speklog:hover { color: var(--navy); }
.footer-sub-spektar { color: var(--navy); }
.footer-sub-spektar:hover { color: var(--teal); }
.footer-sub-dot { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--teal); line-height: 1; }
.footer-sub-active { border-bottom: 2px solid currentColor; padding-bottom: 1px; }
/* Nav active link */
.nav-links a.nav-active { color: var(--teal); font-weight: 600; }
/* Page hero subtitle (division label) */
.page-hero-sub { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 8px; display: block; }
/* footer social icons — shared by both class names */
.footer-social, .footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a, .footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); color: var(--navy);
  flex-shrink: 0;
}
.footer-social a:hover, .footer-socials a:hover { background: var(--teal); color: var(--white); }
.footer-social a svg, .footer-socials a svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.social-link { width: 36px; height: 36px; border-radius: 8px; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; transition: var(--trans); color: var(--navy); }
.social-link:hover { background: var(--teal); color: var(--white); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col h4 { font-size: .78rem; font-weight: 700; color: var(--navy); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .84rem; color: var(--gray-2); transition: var(--trans); }
.footer-col ul a:hover { color: var(--teal); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-item svg { width: 15px; height: 15px; stroke: var(--teal); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: .82rem; color: var(--gray-2); line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(0,0,0,.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .77rem; color: var(--gray-2); }
.footer-bottom a { color: var(--teal); }

/* ============================================================
   BACK TO TOP + WHATSAPP
   ============================================================ */
#back-top { position: fixed; bottom: 90px; right: 24px; z-index: 500; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; pointer-events: none; transition: var(--trans); }
#back-top.visible { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--lime); transform: translateY(-3px); }
#back-top svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2.5; }
.whatsapp-btn { position: fixed; bottom: 24px; right: 24px; z-index: 500; background: #25d366; color: white; border-radius: 50px; padding: 12px 20px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 20px rgba(37,211,102,.4); font-family: inherit; font-weight: 700; font-size: .85rem; transition: var(--trans); }
.whatsapp-btn:hover { background: #1fb558; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-btn svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }
/* wa-float — used by gallery.html and contact.html */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--trans); cursor: pointer;
}
.wa-float:hover { background: #1fb558; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .division-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-bar { grid-template-columns: repeat(2, 1fr); padding: 36px; }
  .masonry { columns: 3; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 40px; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item:nth-child(2), .timeline-item:nth-child(4), .timeline-item:nth-child(6) { border-right: none; }
  .timeline-item:nth-child(5), .timeline-item:nth-child(6) { border-bottom: none; }
  .timeline-item:nth-child(3) { border-right: 1px solid var(--gray); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 0; }
  .division-grid, .about-grid, .contact-grid, .features-grid, .featured-grid { grid-template-columns: 1fr; }
  .about-grid.reverse .about-img, .about-grid.reverse .about-text { order: unset; }
  .services-list-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .property-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .quality-bar { grid-template-columns: 1fr; padding: 28px 20px; }
  .timeline-grid { grid-template-columns: 1fr; }
  .timeline-item { border-right: none !important; }
  .timeline-item:last-child { border-bottom: none; }
  .cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .masonry { columns: 1; }
  .process-grid { grid-template-columns: 1fr; }
  .division-card { height: 340px; }
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 14px; border-radius: 50%; }
}

/* ============================================================
   CONTACT PAGE — enhanced layout
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: start;
}
.contact-detail-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--trans);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(0,107,143,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 22px; height: 22px; stroke: var(--teal); }
.contact-card h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: 4px; }
.contact-card p { font-size: .88rem; color: var(--gray-2); line-height: 1.6; }
.contact-card p a { color: var(--teal); }
.contact-card p a:hover { color: var(--lime-dk); }

/* Contact form wrap */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }

/* Map */
.map-section { padding: 80px 0 0; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Outline navy button */
.btn-outline-navy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  border: 2px solid var(--navy); color: var(--navy);
  font-weight: 700; font-size: .9rem;
  transition: var(--trans);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Gallery masonry overlay */
.masonry-item { position: relative; cursor: pointer; overflow: hidden; border-radius: var(--radius); }
.masonry-item img { width: 100%; display: block; transition: transform .4s ease; }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,60,80,.7) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 14px;
  opacity: 0; transition: opacity .3s ease;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay span { color: var(--white); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* Section label */
.section-label {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 10px;
}

/* Gallery section */
.gallery-section { padding: 96px 0; }
.gal-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; margin-top: 28px; }
.gal-btn {
  padding: 10px 24px; border-radius: 50px;
  border: 2px solid var(--gray); background: var(--white);
  font-size: .85rem; font-weight: 700; color: var(--navy);
  cursor: pointer; transition: var(--trans);
}
.gal-btn:hover { border-color: var(--teal); color: var(--teal); }
.gal-btn.active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* Masonry grid */
.masonry-grid { columns: 4; column-gap: 16px; }
.masonry-grid .masonry-item { break-inside: avoid; margin-bottom: 16px; display: block; }
/* Images inside masonry must fill width and be fully visible */
.masonry-grid .masonry-item img { width: 100%; height: auto; display: block; object-fit: cover; }
/* Video items in masonry: portrait cards */
.masonry-grid .video-item { cursor: default; }
.masonry-grid .video-item .gal-video-wrap { display: block; width: 100%; }
.masonry-grid .video-item video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .masonry-grid { columns: 3; }
}
@media (max-width: 768px) {
  .masonry-grid { columns: 2; }
  .contact-form-wrap { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { height: 100px; width: auto; margin: 0 auto 24px; animation: loaderPulse 1.2s ease infinite; }
.loader-bar { width: 180px; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.loader-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--lime)); border-radius: 3px; animation: loaderFill 1.8s ease forwards; }
@keyframes loaderPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(.96)} }
@keyframes loaderFill { 0%{width:0} 60%{width:70%} 100%{width:100%} }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.section-header-center { text-align: center; margin-bottom: 48px; }
.section-header-center .section-title { max-width: 600px; margin: 0 auto; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
  transition: var(--trans);
  border-top: 3px solid var(--teal);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: .91rem; color: var(--gray-2); line-height: 1.8; font-style: italic; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--gray); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .88rem; color: var(--navy); font-weight: 700; }
.testimonial-author span { font-size: .78rem; color: var(--gray-2); }

/* ============================================================
   MOBILE & PERFORMANCE IMPROVEMENTS
   ============================================================ */

/* ---- TOUCH TARGETS: all interactive elements min 44px ---- */
.btn { min-height: 44px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.mobile-menu a { min-height: 48px; }
.gal-btn { min-height: 44px; }
.enquire-btn { min-height: 44px; }

/* ---- IMAGES: never overflow, always crisp ---- */
img { max-width: 100%; height: auto; }
video { max-width: 100%; }

/* ---- TABLET: 768px – 1024px ---- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .con-videos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .interior-videos-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .work-videos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .video-section .container { grid-template-columns: 1fr !important; gap: 32px; }
}

/* ---- MOBILE: up to 768px ---- */
@media (max-width: 768px) {
  /* Navbar */
  .nav-logo-img { height: 54px; }
  .logo-img { height: 54px; }
  .nav-inner { height: 72px; }
  .hamburger { display: flex; }
  .nav-links { display: none; }

  /* Sections */
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }

  /* Page hero */
  .page-hero { padding: 120px 16px 60px; min-height: 360px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .page-hero p { font-size: .88rem; }

  /* About grid: stack vertically, shrink image */
  .about-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .about-grid.reverse .about-img { order: unset; }
  .about-grid.reverse .about-text { order: unset; }
  .about-img img { height: 260px !important; }

  /* Cards & grids */
  .division-grid { grid-template-columns: 1fr; }
  .division-card { height: 320px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .services-list-grid { grid-template-columns: 1fr !important; }
  .process-grid { grid-template-columns: 1fr 1fr !important; }
  .quality-bar { grid-template-columns: 1fr 1fr; padding: 28px 20px; gap: 20px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .masonry { columns: 2 !important; }
  .masonry.inline-gallery { columns: 2 !important; }
  .masonry-grid { columns: 2 !important; }

  /* Video grids: 1 column on mobile */
  .con-videos-grid { grid-template-columns: 1fr !important; }
  .interior-videos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .work-videos-grid { grid-template-columns: 1fr !important; }
  .video-section .container { grid-template-columns: 1fr !important; gap: 28px; }
  .video-wrap { aspect-ratio: 16/9; }

  /* Stats: 3 columns → compact */
  .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.6rem; }

  /* CTA */
  .cta-section { padding: 52px 16px; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-btns { flex-direction: column; align-items: center; }

  /* Hero buttons */
  .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
  .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* WhatsApp / back-to-top */
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 12px; border-radius: 50%; width: 50px; height: 50px; justify-content: center; }
  .wa-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
  #back-top { bottom: 80px; right: 16px; }

  /* Contact form */
  .contact-form-wrap { padding: 28px 20px; }

  /* Lightbox arrows closer on small screens */
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* ---- SMALL PHONES: up to 480px ---- */
@media (max-width: 480px) {
  .nav-logo-img { height: 46px; }
  .nav-inner { height: 64px; }

  /* Hero */
  .page-hero { min-height: 300px; padding: 100px 16px 48px; }
  .page-hero h1 { font-size: 1.7rem; }

  /* Single-column everything */
  .division-card { height: 280px; }
  .featured-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr !important; }
  .quality-bar { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1 !important; }
  .masonry.inline-gallery { columns: 1 !important; }
  .masonry-grid { columns: 1 !important; }
  .interior-videos-grid { grid-template-columns: 1fr !important; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }

  /* Typography scale down */
  .section-title { font-size: 1.6rem !important; }
  .hero-title { font-size: 2rem !important; }

  /* Buttons full-width on tiny screens */
  .about-btns { flex-direction: column; }
  .about-btns .btn { width: 100%; justify-content: center; }
  .video-cta-group { flex-direction: column; }
  .video-cta-group .btn { width: 100%; justify-content: center; }

  /* Selling banner wrap */
  .selling-banner p { font-size: .82rem; padding: 0 12px; }

  /* Gallery filter buttons wrap naturally */
  .gal-filter { gap: 8px; }
  .gal-btn { padding: 8px 16px; font-size: .78rem; }

  /* Section spacing */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
}

/* ============================================================
   MOBILE — GLOBAL OVERFLOW & SCROLL SAFETY
   ============================================================ */
html, body { overflow-x: hidden; }

/* Prevent any child from punching past viewport width */
* { box-sizing: border-box; }

/* ---- MOBILE: up to 768px — additional fixes ---- */
@media (max-width: 768px) {
  /* Property grid: cards full-width and readable */
  .property-grid { grid-template-columns: 1fr; gap: 20px; }
  .property-card { width: 100%; }
  .property-card img { height: 220px; }

  /* Footer subsidiaries: wrap gracefully */
  .footer-subsidiaries { flex-wrap: wrap; gap: 8px; }
  .footer-sub-alog, .footer-sub-speklog, .footer-sub-spektar { font-size: .95rem; }

  /* Footer columns: full-width stack */
  .footer-col { width: 100%; }
  .footer-links { columns: 2; }

  /* Section headers: tighter on mobile */
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  .section-sub { font-size: .88rem; }

  /* About section images: natural height */
  .about-img img { height: auto !important; max-height: 280px; object-fit: cover; width: 100%; }

  /* Page-hero on sub-pages: more padding on narrow screens */
  .page-hero { padding: 100px 20px 52px; }

  /* CTA strip full-width buttons */
  .cta-btns .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Services list: item padding */
  .service-item { padding: 18px 16px; }

  /* Timeline: single column, no borders */
  .timeline-item { border-right: none !important; border-bottom: 1px solid var(--gray) !important; }
  .timeline-item:last-child { border-bottom: none !important; }

  /* Quality bar items: full width */
  .quality-item { text-align: center; }
}

/* ---- SMALL PHONES: extra fixes ---- */
@media (max-width: 480px) {
  /* Footer links: single column */
  .footer-links { columns: 1; }

  /* Property card image height */
  .property-card img { height: 200px; }

  /* Stats: keep 3-up but shrink text */
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .68rem; }

  /* Contact form: full-width select & inputs */
  .form-select, .form-control { font-size: 16px; } /* prevent iOS zoom */

  /* Nav logo on tiny screens */
  .nav-logo-img { height: 40px; }
  .nav-inner { height: 60px; }
}
