/* ============================================================
   Vijayavyuham — Black & Gold Premium Theme
   Aesthetic: Minimal luxury / editorial with strategic gold accents
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #161616;
  --panel: #1a1712;
  --gold: #c9a24b;
  --gold-bright: #e6c66e;
  --gold-soft: #d9b866;
  --gold-dim: rgba(201, 162, 75, 0.35);
  --gold-line: rgba(201, 162, 75, 0.18);
  --champagne: #e8dcc0;
  --silver: #e9e9e9;
  --text: #ece7dc;
  --text-dim: #a49e90;
  --text-faint: #726c60;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --telugu: 'Noto Sans Telugu', 'Inter', sans-serif;
  --devanagari: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* stop iOS auto-inflating text */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(201,162,75,.2);  /* nicer touch feedback */
}

/* Comfortable touch targets everywhere on touch devices */
a, button, .btn, .lang-seg, .float-btn, .nav-links a, input, textarea, select { touch-action: manipulation; }

body[data-lang="te"] { font-family: var(--telugu); }
body[data-lang="hi"] { font-family: var(--devanagari); }
body[data-lang="te"] .serif,
body[data-lang="hi"] .serif { font-family: inherit; }

/* Subtle grain / texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle at 50% 0%, rgba(201,162,75,0.05), transparent 55%);
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }

.serif { font-family: var(--serif); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { position: relative; z-index: 2; padding: 96px 0; }
.section-sm { padding: 60px 0; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .5px; }
body[data-lang="te"] h1, body[data-lang="te"] h2, body[data-lang="te"] h3,
body[data-lang="hi"] h1, body[data-lang="hi"] h2, body[data-lang="hi"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; color: var(--text-dim); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .7; }

.gold-text { color: var(--gold-bright); }
.gradient-text {
  background: linear-gradient(120deg, var(--gold-bright), var(--champagne), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 2px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  border: 1px solid transparent; transition: all .3s ease; position: relative;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: #1a1206; border-color: var(--gold);
}
.btn-gold:hover { box-shadow: 0 8px 30px rgba(201,162,75,.35); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gold-bright); border-color: var(--gold-dim); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,162,75,.08); color: var(--gold-bright); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .35s ease;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-line);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: 52px; transition: height .3s ease; }
.scrolled .brand img { height: 44px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 3px; color: var(--champagne); font-weight: 600; }
.brand-name small { display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; font-weight: 500; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); font-weight: 500; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

/* Language block that lives inside the mobile drawer (hidden on desktop) */
.drawer-lang { display: none; }

/* Language switcher — always-visible segmented toggle */
.lang-seg-group {
  display: inline-flex; align-items: stretch; gap: 2px;
  background: rgba(201,162,75,.06); border: 1px solid var(--gold-line);
  border-radius: 999px; padding: 3px;
}
.lang-seg {
  cursor: pointer; border: none; background: none; color: var(--text-faint);
  font-family: var(--serif); font-size: .95rem; line-height: 1;
  padding: 7px 13px; border-radius: 999px; transition: all .2s ease; letter-spacing: .3px;
}
.lang-seg:hover { color: var(--gold-bright); }
.lang-seg.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1a1300; font-weight: 600; box-shadow: 0 2px 10px rgba(201,162,75,.35);
}

/* Non-intrusive first-visit language toast */
.lang-toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 400;
  background: var(--black-3); border: 1px solid var(--gold-line);
  border-radius: 12px; padding: 16px 18px 14px; max-width: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.lang-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-toast-close {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  color: var(--text-faint); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.lang-toast-close:hover { color: var(--gold-bright); }
.lang-toast-head { color: var(--champagne); font-size: .82rem; letter-spacing: .5px; margin-bottom: 12px; }
.lang-toast-head i { color: var(--gold); margin-right: 6px; }
.lang-toast-choices { display: flex; gap: 8px; }
.lang-toast-choice {
  flex: 1; cursor: pointer; background: rgba(201,162,75,.05);
  border: 1px solid var(--gold-line); border-radius: 8px; padding: 10px 6px;
  display: flex; flex-direction: column; gap: 3px; align-items: center; transition: all .2s ease;
}
.lang-toast-choice:hover { border-color: var(--gold); transform: translateY(-3px); background: var(--black-2); }
.lang-toast-choice.active { border-color: var(--gold); }
.lang-toast-choice .native { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-bright); }
.lang-toast-choice .en-name { font-size: .62rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 480px) { .lang-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

.mobile-toggle { display: none; background: none; border: none; color: var(--gold-bright); font-size: 1.5rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; overflow: hidden;
}
.hero-bg-star {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(60vw, 760px); opacity: .10; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(201,162,75,.3));
  animation: slowspin 120s linear infinite;
}
@keyframes slowspin { to { transform: translateY(-50%) rotate(360deg); } }
.hero-inner { position: relative; z-index: 3; max-width: 760px; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { font-size: 1.15rem; color: var(--text-dim); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 54px; display: flex; gap: 42px; flex-wrap: wrap; }
.hero-trust .item { }
.hero-trust .k { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-bright); display: flex; align-items: center; gap: 10px; }
.hero-trust .k i { color: var(--gold); }
.hero-trust .v { font-size: .78rem; color: var(--text-faint); letter-spacing: .5px; }

/* Gold hairline divider */
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); margin: 0 auto; }

/* ---------- SERVICE CARDS ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head p { color: var(--text-faint); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.service-card {
  background: var(--black); padding: 40px 32px; position: relative;
  transition: background .4s ease, transform .3s ease; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(201,162,75,.08), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
.service-card:hover { background: var(--black-2); }
.service-card:hover::before { opacity: 1; }
.service-num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: 2px; opacity: .6; }
.service-icon { font-size: 1.6rem; color: var(--gold-bright); margin: 16px 0 18px; position: relative; z-index: 2; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; position: relative; z-index: 2; color: var(--champagne); }
.service-card p { font-size: .92rem; color: var(--text-dim); position: relative; z-index: 2; margin-bottom: 20px; }
.service-link { font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.service-link i { transition: transform .3s ease; }
.service-card:hover .service-link i { transform: translateX(5px); }

/* ---------- FEATURE / WHY ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { padding: 30px 24px; border: 1px solid var(--gold-line); border-radius: 4px; background: linear-gradient(180deg, var(--black-2), var(--black)); transition: transform .3s ease, border-color .3s ease; }
.feature:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.feature .ico { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; color: var(--gold-bright); font-size: 1.2rem; margin-bottom: 20px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--champagne); }
.feature p { font-size: .88rem; }

/* ---------- SPLIT / ABOUT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.mv-card { padding: 34px; border-left: 2px solid var(--gold); background: linear-gradient(120deg, rgba(201,162,75,.05), transparent); margin-bottom: 20px; }
.mv-card h3 { color: var(--gold-bright); font-size: 1.3rem; }
.mv-card p { margin-bottom: 0; }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.blog-card { border: 1px solid var(--gold-line); border-radius: 4px; overflow: hidden; background: var(--black-2); transition: transform .3s ease, border-color .3s ease; }
.blog-card:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.blog-card .cover { height: 200px; background: var(--black-3); overflow: hidden; position: relative; }
.blog-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .cover img { transform: scale(1.06); }
.blog-card .cover.placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold-dim); font-size: 2.4rem; }
.blog-card .body { padding: 26px; }
.blog-card .cat { font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.blog-card h3 { font-size: 1.25rem; margin: 10px 0 12px; color: var(--champagne); }
.blog-card p { font-size: .88rem; }

/* ---------- GALLERY ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; background: var(--black-3); border: 1px solid var(--gold-line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); font-size: .85rem; color: var(--champagne); opacity: 0; transform: translateY(10px); transition: all .3s ease; }
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--black-3); border: 1px solid var(--gold-line); margin-bottom: 18px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold-dim); font-size: 3rem; }
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; color: var(--champagne); }
.team-card .role { font-size: .78rem; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.team-card .bio { font-size: .85rem; color: var(--text-dim); }
.team-social { margin-top: 12px; display: flex; gap: 14px; justify-content: center; color: var(--text-faint); }
.team-social a:hover { color: var(--gold-bright); }

/* ---------- TESTIMONIALS ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.testi { padding: 40px; border: 1px solid var(--gold-line); border-radius: 6px; background: linear-gradient(160deg, var(--black-2), var(--black)); position: relative; }
.testi .quote-mark { font-family: var(--serif); font-size: 4rem; color: var(--gold-dim); line-height: .5; position: absolute; top: 24px; left: 24px; }
.testi p { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--champagne); padding-top: 30px; }
.testi .who { font-size: .82rem; color: var(--gold); letter-spacing: 1px; }
.testi .who span { display: block; color: var(--text-faint); font-size: .74rem; letter-spacing: .5px; text-transform: none; margin-top: 2px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info .ci { display: flex; gap: 18px; margin-bottom: 30px; align-items: flex-start; }
.contact-info .ci .ico { min-width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; color: var(--gold-bright); }
.contact-info .ci h4 { margin: 0 0 4px; font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-info .ci a, .contact-info .ci p { color: var(--text); font-size: 1.02rem; margin: 0; }
.contact-info .ci a:hover { color: var(--gold-bright); }

/* Forms */
.form-card { background: var(--black-2); border: 1px solid var(--gold-line); border-radius: 8px; padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.field label .opt { color: var(--text-faint); text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; background: var(--black); border: 1px solid var(--gold-line);
  color: var(--text); border-radius: 3px; font-family: var(--sans);
  font-size: 16px;  /* >=16px prevents iOS Safari auto-zoom on focus */
  transition: border-color .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.form-msg { padding: 14px; border-radius: 4px; margin-bottom: 18px; font-size: .9rem; display: none; }
.form-msg.success { display: block; background: rgba(201,162,75,.12); border: 1px solid var(--gold-dim); color: var(--gold-bright); }
.form-msg.error { display: block; background: rgba(200,60,60,.12); border: 1px solid rgba(200,60,60,.4); color: #e88; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--gold-line); background: var(--black-2); padding: 70px 0 30px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 60px; margin-bottom: 18px; }
.footer-brand p { font-size: .9rem; max-width: 320px; }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: .9rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--gold-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-bright); }
.footer-social a:hover { background: var(--gold); color: #1a1206; }
.footer-bottom { border-top: 1px solid var(--gold-line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--text-faint); }

/* ---------- FLOATING CONTACT ---------- */
.float-contact { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .3s ease; cursor: pointer; border: none; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #25d366; }
.float-call { background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: #1a1206; }
.float-enq { background: var(--black-3); border: 1px solid var(--gold-dim); color: var(--gold-bright); }

/* ---------- ENQUIRY MODAL ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--black-2); border: 1px solid var(--gold-dim); border-radius: 10px; max-width: 520px; width: 100%; padding: 40px; position: relative; max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--text-dim); font-size: 1.4rem; cursor: pointer; }
.modal-close:hover { color: var(--gold-bright); }
.modal h3 { color: var(--champagne); }
.modal .sub { color: var(--text-faint); font-size: .9rem; margin-bottom: 24px; }

/* ---------- GALLERY MEDIA (image / video / embed) ---------- */
.gallery-item video { width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.gallery-item.is-embed { aspect-ratio: 16/9; }
.gallery-embed { position: absolute; inset: 0; }
.gallery-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Page hero (inner pages) */
.page-hero { padding: 180px 0 70px; text-align: center; position: relative; border-bottom: 1px solid var(--gold-line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(201,162,75,.08), transparent 60%); }
.page-hero h1 { position: relative; z-index: 2; }
.page-hero p { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; color: var(--text-dim); }
.breadcrumb { position: relative; z-index: 2; font-size: .78rem; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }

/* Service detail */
.service-detail-body { max-width: 800px; }
.service-detail-body h2 { color: var(--champagne); }
.feature-list { list-style: none; padding: 0; margin: 30px 0; }
.feature-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gold-line); font-size: 1.05rem; color: var(--text); }
.feature-list li i { color: var(--gold); }

/* ============================================================
   RESPONSIVE  —  mobile-first optimized experience
   ============================================================ */

/* Tablet / small laptop */
@media (max-width: 980px) {
  .services-grid, .blog-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .testi-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-bg-star { opacity: .06; }
}

/* ---------- MOBILE  (<= 768px) ---------- */
@media (max-width: 768px) {
  body { font-size: 15.5px; line-height: 1.65; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-head { margin-bottom: 40px; }

  /* --- Header: keep it tight, no clutter --- */
  .site-header { padding: 12px 0; }
  .site-header.scrolled { padding: 10px 0; }
  .nav { gap: 10px; }
  .brand img { height: 42px; width: 42px; }
  .scrolled .brand img { height: 38px; }
  .brand-name { font-size: 1.05rem; letter-spacing: 2px; }
  .brand-name small { font-size: .5rem; letter-spacing: 2px; }

  /* Hide desktop CTA + inline nav; show hamburger */
  .hide-mobile { display: none !important; }
  .mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 8px;
    border: 1px solid var(--gold-line); background: rgba(201,162,75,.05);
  }
  .nav-actions { gap: 8px; }

  /* Compact language toggle in the header on mobile */
  .lang-seg-group { padding: 2px; gap: 1px; }
  .lang-seg { padding: 8px 10px; font-size: .9rem; min-height: 36px; }

  /* Slide-in mobile drawer */
  .nav-links {
    display: flex; position: fixed; top: 0; right: 0;
    height: 100dvh; width: 82%; max-width: 340px;
    background: var(--black-2); border-left: 1px solid var(--gold-line);
    flex-direction: column; align-items: stretch;
    padding: 88px 26px calc(30px + env(safe-area-inset-bottom)) 26px;
    gap: 4px; transition: transform .35s cubic-bezier(.4,0,.2,1);
    transform: translateX(105%); z-index: 150; overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0,0,0,.5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; width: 100%; padding: 15px 4px; font-size: .95rem;
    border-bottom: 1px solid var(--gold-line); letter-spacing: 1px;
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--gold-bright); }
  .mobile-only-cta { margin-top: 14px; }
  .mobile-only-cta a {
    background: linear-gradient(120deg, var(--gold), var(--gold-bright));
    color: #1a1206 !important; text-align: center; border-radius: 4px;
    border-bottom: none !important; font-weight: 600;
  }

  /* Language selector inside the drawer */
  .drawer-lang {
    display: block; margin-top: 22px; padding-top: 20px;
    border-top: 1px solid var(--gold-line);
  }
  .drawer-lang-label {
    display: block; font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px; font-weight: 600;
  }
  .drawer-lang-label i { margin-right: 6px; }
  .drawer-lang .lang-seg-group { display: flex; width: 100%; }
  .drawer-lang .lang-seg { flex: 1; padding: 11px 6px; font-size: 1rem; min-height: 44px; }

  /* Drawer backdrop */
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px); z-index: 149; opacity: 0;
    pointer-events: none; transition: opacity .3s ease;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  /* --- Single-column content --- */
  .services-grid, .blog-grid, .gallery-grid, .feature-grid, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .services-grid { gap: 1px; }
  .blog-grid, .feature-grid, .team-grid { gap: 18px; }

  /* --- Hero --- */
  .hero { min-height: auto; padding: 116px 0 56px; }
  .hero .lead { font-size: 1.02rem; margin-bottom: 28px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-trust { gap: 22px 30px; margin-top: 40px; }
  .hero-bg-star { opacity: .05; width: 90vw; right: -25%; }

  /* --- Cards spacing --- */
  .service-card { padding: 30px 24px; }
  .feature { padding: 26px 22px; }
  .blog-card .body { padding: 22px; }
  .testi { padding: 30px 26px; }
  .testi p { font-size: 1.12rem; }

  /* --- Page hero --- */
  .page-hero { padding: 130px 0 50px; }

  /* --- Footer --- */
  .site-footer { padding: 50px 0 24px; }
  .footer-grid { gap: 34px; margin-bottom: 36px; text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* --- Forms / modal --- */
  .modal, .form-card { padding: 24px 20px; }
  .modal { border-radius: 14px; }

  /* --- Floating buttons: smaller + respect safe area --- */
  .float-contact {
    right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .float-btn { width: 50px; height: 50px; font-size: 1.15rem; }

  /* Keep first-visit toast clear of the floating buttons */
  .lang-toast { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
}

/* ---------- SMALL PHONES  (<= 420px) ---------- */
@media (max-width: 420px) {
  .container { padding: 0 15px; }
  .brand-name small { display: none; }   /* free up header space */
  .hero-trust { gap: 18px 24px; }
  .hero-trust .k { font-size: .98rem; }
  .btn { padding: 13px 22px; font-size: .78rem; }
  .eyebrow { font-size: .68rem; letter-spacing: 3px; }
  .float-btn { width: 48px; height: 48px; }
  .lang-seg { padding: 7px 9px; font-size: .85rem; }
}
