:root {
  --navy: #0b1e3d;
  --navy2: #12294f;
  --navy3: #1a3766;
  --amber: #f2a93b;
  --amber-dark: #b86f08;
  --ink: #16233b;
  --muted: #55657f;
  --bg: #f7f8fb;
  --white: #ffffff;
  --border: #e4e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 30, 61, 0.08);
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --gutter: 24px;
  --section-y: 90px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
  padding-top: env(safe-area-inset-top);
}
.site-header.scrolled { box-shadow: var(--shadow); border-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); white-space: nowrap; }
.brand span { color: var(--amber-dark); }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-weight: 600; color: var(--navy); font-size: .95rem; padding: 8px 0; }
.main-nav a:hover { color: var(--amber-dark); }
.lang-switcher { display: flex; gap: 4px; font-size: .8rem; font-weight: 600; }
.lang-switcher a { padding: 6px 8px; min-width: 32px; text-align: center; border-radius: 6px; color: var(--muted); }
.lang-switcher a.active, .lang-switcher a:hover { background: var(--navy); color: #fff; }
.lang-switcher--menu { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  background: none; border: 0; cursor: pointer; border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  color: #fff;
  padding: 110px 0 90px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); color: #fff; font-weight: 800; }
.hero-subtitle { color: #d3dcee; font-size: clamp(1rem, 2.6vw, 1.15rem); max-width: 620px; margin: 0 auto 2em; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--amber); color: var(--navy); box-shadow: 0 8px 20px rgba(242,169,59,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242,169,59,.45); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-outline { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { border-color: #fff; }

/* Sections */
.services, .about, .gallery, .contact { padding: var(--section-y) 0; }
.services h2, .about h2, .gallery h2, .contact h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2rem); color: var(--navy); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; margin-top: 48px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 2.2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.1rem; color: var(--navy); }
.service-card p { font-size: .95rem; margin: 0; }

.about { background: var(--navy2); color: #fff; }
.about h2 { color: #fff; }
.about-text { max-width: 680px; margin: 0 auto 3em; text-align: center; color: #d3dcee; font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.feature { text-align: center; padding: 24px; }
.feature h3 { color: var(--amber); font-size: 1.15rem; }
.feature p { color: #d3dcee; font-size: .95rem; margin: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; margin-top: 48px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; background: var(--border); }
.gallery-item figcaption { padding: 10px 14px; font-size: .85rem; color: var(--muted); }

.contact { background: var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact h2 { text-align: left; }
.contact-details { list-style: none; margin: 24px 0 0; padding: 0; color: var(--muted); }
.contact-details li { margin-bottom: 10px; }
.contact-details a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.contact-details a:hover { color: var(--amber-dark); }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.contact-form label { font-size: .88rem; font-weight: 600; color: var(--navy); display: flex; flex-direction: column; gap: 6px; }
/* 16px inputs: stops iOS Safari zooming into the page on focus */
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfd6e4; border-radius: 10px; color: var(--ink); background: #fff; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.captcha-label { flex-direction: row !important; align-items: center; gap: 10px !important; flex-wrap: wrap; }
.captcha-label input { width: 90px; text-align: center; }
.hp-field { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; min-height: 0 !important; opacity: 0; }
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }
.form-status { font-size: .9rem; font-weight: 600; min-height: 1.2em; margin: 0; }
.form-status.success { color: #11743c; }
.form-status.error { color: #c42b2b; }

.site-footer { background: var(--navy); color: #b6c2da; text-align: center; padding: 28px 0; font-size: .85rem; }
.site-footer p { margin: 0; color: inherit; }

/* Mobile quick-contact bar (phones only) */
.mobile-bar { display: none; }

/* Gallery lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(5, 12, 28, .88); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  :root { --section-y: 64px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact h2 { text-align: center; }
  .contact-info { text-align: center; }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  :root { --gutter: 18px; --section-y: 52px; --header-h: 58px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-toggle { margin-left: auto; }
  .lang-switcher--bar { display: none; }
  .lang-switcher--menu { display: flex; gap: 8px; padding: 14px var(--gutter) 18px; border-top: 1px solid var(--border); }
  .lang-switcher--menu a { padding: 10px 14px; min-width: 48px; font-size: .9rem; border-top: 0; border: 1px solid var(--border); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: #fff; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px rgba(11,30,61,.1);
    transition: max-height .25s ease, visibility .25s;
  }
  .main-nav.open { max-height: 80vh; visibility: visible; }
  .main-nav a { padding: 16px var(--gutter); border-top: 1px solid var(--border); font-size: 1rem; }

  .hero { padding: 56px 0 52px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  .card-grid, .gallery-grid { margin-top: 32px; gap: 14px; }
  .service-card { padding: 24px 18px; }
  .about-text { margin-bottom: 1.6em; }
  .feature { padding: 14px 6px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { border-radius: 10px; }
  .gallery-item figcaption { padding: 8px 10px; font-size: .78rem; }

  .contact-form { padding: 20px 16px; gap: 14px; border-radius: 12px; }
  .contact-form .btn { width: 100%; }

  /* sticky call / write bar */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(11,30,61,.08);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; font-weight: 700; font-size: .85rem; line-height: 1.15; text-align: center; padding: 0 10px; }
  .mobile-bar-call { background: var(--amber); color: var(--navy); }
  .mobile-bar-msg { background: var(--navy); color: #fff; }
}

@media (max-width: 360px) {
  .brand { font-size: .95rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
