/* ==========================================================================
   The House Branding — base styles
   ========================================================================== */

:root {
  --cyan: #2AA0CD;
  --magenta: #C73EBF;
  --purple: #4F2D9E;
  --navy: #1E184B;

  --ink: #16142b;
  --ink-soft: #4a4762;
  --bg: #ffffff;
  --bg-alt: #f6f5fb;
  --line: #e7e5f1;

  --gradient: linear-gradient(120deg, var(--cyan), var(--magenta) 55%, var(--purple));

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(30, 24, 75, 0.25);
  --shadow-sm: 0 8px 24px -12px rgba(30, 24, 75, 0.2);

  --nav-h: 100px;

  /* Left inset of the standard 1160px container — used to anchor wider/narrower
     hero containers so their content lines up with the logo instead of
     re-centering around their own width. */
  --content-inset: max(24px, calc((100vw - 1160px) / 2));
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

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

.skip-link:focus { left: 0; }

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(199, 62, 191, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--line);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

.btn-light {
  background: #fff;
  color: var(--navy);
}

/* ==========================================================================
   Floating navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  width: calc(100% - 32px);
  max-width: 1160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px 10px 22px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, background .25s ease, border-radius .25s ease;
}

.site-header.is-scrolled .floating-nav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px -18px rgba(30, 24, 75, 0.35);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo__img { height: 46px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links > li > a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  padding: 8px 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: right .25s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.is-active::after {
  right: 0;
}

.nav-links > li > a.is-active { color: var(--purple); }

.caret { font-size: .7em; transition: transform .2s ease; }

.has-dropdown { position: relative; }

/* Invisible bridge: touches the trigger link with no gap, so moving the
   mouse from the link into the dropdown never breaks the hover chain. The
   visual "floating" offset lives on .dropdown (padding-top) instead. */
.dropdown-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.dropdown {
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px;
  transform: translateY(6px);
  transition: transform .2s ease;
}

.has-dropdown:hover .dropdown-wrap,
.has-dropdown:focus-within .dropdown-wrap {
  opacity: 1;
  visibility: visible;
}

.has-dropdown:hover .dropdown-wrap .dropdown,
.has-dropdown:focus-within .dropdown-wrap .dropdown {
  transform: translateY(0);
}

.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .92rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.dropdown li a:hover {
  background: var(--bg-alt);
  color: var(--purple);
}

.nav-cta { flex-shrink: 0; padding: 12px 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Main spacing to clear floating nav */


/* ==========================================================================
   Hero sections
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 100px;
  padding-top: 200px;
  background: var(--bg-alt);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px;
  height: 620px;
  background: var(--gradient);
  opacity: .16;
  filter: blur(10px);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 1400px;
  margin-left: var(--content-inset);
  margin-right: 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.page-hero {
  padding: 150px 0 70px;
  background: var(--bg-alt);
}
.page-hero.compact { padding-top: 130px; padding-bottom: 50px; }

.page-hero .container {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 780px;
  margin-left: var(--content-inset);
  margin-right: 0;
}

.page-hero p.lead { font-size: 1.15rem; }

/* Accent variants per service ------------------------------------------- */
.accent-cyan .hero-eyebrow, .accent-cyan .stat strong { color: var(--cyan); }
.accent-magenta .hero-eyebrow, .accent-magenta .stat strong { color: var(--magenta); }
.accent-purple .hero-eyebrow, .accent-purple .stat strong { color: var(--purple); }
.accent-navy .hero-eyebrow, .accent-navy .stat strong { color: var(--navy); }

.accent-cyan .service-icon { background: var(--cyan); }
.accent-magenta .service-icon { background: var(--magenta); }
.accent-purple .service-icon { background: var(--purple); }
.accent-navy .service-icon { background: var(--navy); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--navy);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.75); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }

.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 10px;
}

/* Services grid ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 14px; font-size: .95rem; }
.card-link { font-weight: 600; font-size: .9rem; color: var(--purple); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }

/* Feature list ------------------------------------------------------------ */

.feature-list { display: grid; gap: 18px; margin-top: 24px; }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-item .dot {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  margin-top: 2px;
}
.feature-item h4 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 1.02rem; color: var(--navy); }
.feature-item p { margin: 0; font-size: .93rem; }

/* Split section ------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: 20px;
  aspect-ratio: 4/3;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.split-media img { height: 32%; filter: brightness(0) invert(1); opacity: .9; }

.split-media--photo {
  background: var(--bg-alt);
  overflow: hidden;
}
.split-media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
}

/* Process steps ------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h4 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: .9rem; margin: 0; }

/* Stats ------------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--purple);
}
.stat span { font-size: .88rem; color: var(--ink-soft); }

/* Testimonial -------------------------------------------------------------- */

.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote p { font-size: 1.3rem; font-family: var(--font-heading); font-weight: 500; color: var(--navy); }
.quote cite { font-style: normal; font-size: .9rem; color: var(--ink-soft); }

/* CTA banner --------------------------------------------------------------- */

.cta-banner {
  background: var(--gradient);
  border-radius: 28px;
  padding: 60px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 520px; margin-inline: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* Contact page --------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.contact-info-card + .contact-info-card { margin-top: 20px; }
.contact-info-card h4 { font-family: var(--font-heading); color: var(--navy); margin-bottom: 6px; }
.contact-info-card p { margin: 0; }
.contact-info-card a { color: var(--purple); font-weight: 600; }

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; }

.map-frame {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 500;
  font-size: .95rem;
}
.form-alert.success { background: #e6f7ee; color: #1a7d4b; border: 1px solid #b8e6cd; }
.form-alert.error { background: #fdeaea; color: #b3271f; border: 1px solid #f6c6c3; }

/* Footer --------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-logo { height: 26px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .92rem; max-width: 280px; }

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: .92rem; color: rgba(255,255,255,.7); }
.footer-col ul li a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--cyan);
}
.footer-contact li span { font-size: .92rem; color: rgba(255,255,255,.7); }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--gradient); }

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ==========================================================================
   Gallery page
   ========================================================================== */

.gallery-filters {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 40px;
}

.gallery-filter {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.gallery-filter.is-active {
  background: var(--gradient);
  color: #fff;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
}

.gallery-item {
  margin: 0 0 20px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-item figcaption {
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero .container,
  .split,
  .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 92px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 22px;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { width: 100%; padding: 12px 4px; }

  .dropdown-wrap {
    position: static;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .dropdown {
    transform: none;
    box-shadow: none;
    padding: 4px 0 4px 14px;
    min-width: 0;
  }
  .has-dropdown.is-open .dropdown-wrap { display: block; }

  .nav-cta { width: 100%; }

  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-4, .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
}
