@import url('https://fonts.googleapis.com/css2?family=Crete+Round:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --white: #ffffff;
  --bg: #fafafa;
  --surface: #f3f3f3;
  --card: #ffffff;
  --border: #e4e4e4;
  --border-hover: #c8c8c8;
  --text: #111;
  --text-mid: #555;
  --text-dim: #888;
  --black: #111;
  --accent-soft: rgba(17,17,17,0.05);
  --accent-med: rgba(17,17,17,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --tr: 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crete Round', Georgia, serif;
  background: var(--bg); color: var(--text);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.6;
}

::selection { background: var(--black); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; }

/* ── NAV ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(250,250,250,0.85);
  border-bottom: 1px solid transparent; transition: border-color 0.4s;
}
.topbar.scrolled { border-bottom-color: var(--border); }

.topbar-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 32px;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.topbar-inner > .logo { justify-self: start; }
.topbar-inner > nav { justify-self: center; }
.topbar-inner > .topbar-right { justify-self: end; }
.topbar-right {
  display: flex; align-items: center; gap: 12px;
}
/* Hide "Get in Touch" on contact page — they're already there */
.page-contact .nav-btn { display: none; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 30px; }
.logo-text { font-family: 'Space Mono', monospace; font-size: 15px; font-weight: 700; letter-spacing: 1px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-mid); transition: color var(--tr); position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content:''; position:absolute; bottom:-4px; left:0; right:0; height:2px; background:var(--black); border-radius:1px; }

.nav-btn {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 22px; background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--tr);
}
.nav-btn:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all var(--tr);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #333; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text); background: var(--white); }
.btn-ghost { background: transparent; color: var(--text-mid); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--white); }

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-lg { padding: 120px 0; }

.section-label {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.8px; line-height: 1.2;
}
.section-desc { margin-top: 14px; font-size: 16px; color: var(--text-mid); max-width: 500px; line-height: 1.7; }

.divider { height: 1px; background: var(--border); border: none; }

/* ── HOME HERO ── */
.hero-home { padding: 160px 0 80px; }
.hero-img-wrap { padding-bottom: 80px; }
.hero-img-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 260px 260px; gap: 10px;
}
.hero-img-main { grid-row: span 2; }

/* ── PAGE HERO ── */
.page-hero { padding: 160px 0 80px; text-align: center; }
.page-hero .section-heading { max-width: 600px; margin: 0 auto; font-size: clamp(2rem,4vw,3rem); }
.page-hero .section-desc { max-width: 520px; margin: 16px auto 0; text-align: center; }
.page-hero-img-wrap { padding-bottom: 80px; }
.page-hero-img { max-height: 400px; overflow: hidden; }

/* ── IMAGE CARDS ── */
.img-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.4,0,.2,1); }
.img-card:hover img { transform: scale(1.03); }
.img-card-label {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 600; color: white; letter-spacing: 0.5px;
  padding: 4px 10px; background: rgba(0,0,0,0.5); border-radius: 6px; backdrop-filter: blur(8px);
}

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--text);
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ── SPLIT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.split-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ── QUOTE ── */
.quote-block { padding: 80px 0; text-align: center; }
.quote-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 400; line-height: 1.55;
  color: var(--text-mid); max-width: 680px; margin: 0 auto; font-style: italic;
}
.quote-text strong { color: var(--text); font-weight: 600; font-style: normal; }
.quote-attr { margin-top: 20px; font-size: 13px; color: var(--text-dim); font-family: 'Space Mono', monospace; letter-spacing: 1px; }

/* ── CTA ── */
.cta-section {
  text-align: center; padding: 100px 0 120px; background: var(--white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-section .section-heading { margin: 0 auto 12px; max-width: 480px; }
.cta-section .section-desc { margin: 0 auto 36px; max-width: 400px; text-align: center; }

/* ── FOOTER ── */
footer { padding: 48px 0; background: var(--white); border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left img { height: 22px; opacity: 0.5; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-dim); transition: color var(--tr); }
.footer-links a:hover { color: var(--text); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text); transition: border-color var(--tr); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.reveal { opacity:0; transform:translateY(28px); transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── RESPONSIVE (mobile-first) ── */
@media (max-width: 900px) {
  .topbar-inner {
    display: flex;
    justify-content: space-between;
    grid-template-columns: none;
  }
  .topbar-inner > .logo,
  .topbar-inner > nav,
  .topbar-inner > .topbar-right {
    justify-self: unset;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 0;
    z-index: 250;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.open a {
    font-size: 17px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-links.open li:last-child a { border-bottom: none; }
  .topbar-right { gap: 8px; }
  .nav-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
  }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .container, .container-narrow { padding: 0 20px; }
  .contact-two-col {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .card-grid-three {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .card-grid-two {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .hero-img-wrap { padding-bottom: 56px; }
  .page-hero-img-wrap { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .topbar-inner { padding: 0 16px; height: 56px; }
  .logo img { height: 26px; }
  .container, .container-narrow { padding: 0 16px; }
  .nav-links.open { top: 56px; }

  /* Reduce section spacing */
  .section { padding: 48px 0; }
  .hero-home { padding: 100px 0 40px; }
  .page-hero { padding: 96px 0 36px; }
  .page-hero .section-heading { font-size: clamp(1.65rem, 6vw, 2.25rem); }
  .section-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-desc { font-size: 15px; }

  /* Reduce image section bottom padding */
  .hero-img-wrap { padding-bottom: 40px; }
  .page-hero-img-wrap { padding-bottom: 40px; }
  .page-hero-img { max-height: 220px; }

  /* Hero image grid: shorter images, 2-col layout */
  .hero-img-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 8px;
  }
  .hero-img-grid .hero-img-main {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Solutions image strip: horizontal scroll instead of stacking */
  .solutions-img-strip {
    grid-template-columns: repeat(3, 70vw) !important;
    gap: 8px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .solutions-img-strip > .img-card {
    scroll-snap-align: start;
    aspect-ratio: 16/10;
  }

  /* Card grids single column */
  .card-grid-three,
  .card-grid-two {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 32px !important;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
    justify-content: center;
  }
  .hero-buttons { flex-wrap: wrap; }

  .card { padding: 24px 20px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 13px; }
  .card-icon { width: 36px; height: 36px; margin-bottom: 14px; }

  .split { gap: 28px; }

  .quote-block { padding: 40px 0; }
  .quote-text { font-size: clamp(1.1rem, 4.5vw, 1.35rem); }
  .cta-section { padding: 48px 0 56px; }

  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  footer { padding: 32px 0; }
}
@media (max-width: 380px) {
  .page-hero .section-heading { font-size: 1.5rem; }
  .section-heading { font-size: 1.35rem; }
  .hero-img-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 140px 140px 140px;
  }
  .hero-img-grid .hero-img-main {
    grid-column: span 1;
  }
}
