/* ==========================================================================
   VUDDHI — Digital Technology Solution
   Template v2: "Blueprint" — engineered, grid-driven, dark-mesh aesthetic
   ========================================================================== */

:root {
  --ink: #060b14;
  --navy-950: #081226;
  --navy-900: #0a1c38;
  --navy-800: #0d2547;
  --blue-600: #1c5faa;
  --sky-400: #36c5f0;
  --sky-300: #6ad4f5;
  --sky-200: #a9e8ff;
  --paper: #ffffff;
  --mist: #f4f8fb;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --slate: #5c6b7d;
  --slate-light: #91a0b0;

  --gradient-brand: linear-gradient(135deg, #0d2547 0%, #1c5faa 60%, #36c5f0 100%);
  --gradient-text: linear-gradient(90deg, #6ad4f5, #a9e8ff);

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1200px;
  --radius: 6px;
  --header-h: 82px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy-950);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--sky-400);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 108px 0;
  position: relative;
}

/* ==========================================================================
   VUDDHI — Tablet & phone centering
   --------------------------------------------------------------------------
   HOW TO USE: paste this whole block at the very END of your stylesheet
   (or load this file after it). Nothing above needs to change.

   Every rule sits inside a max-width media query, so the desktop layout
   (1041px and wider) is untouched. Each breakpoint is the same one your
   stylesheet already uses to collapse that section into one column:

     <= 1040px   tablet landscape and below   (safety net only)
     <=  980px   hero stacks                  (hero content centered)
     <=  900px   split / cards / footer stack (everything else centered)
     <=  720px   phone                        (fine-tuning)
   ========================================================================== */


/* --------------------------------------------------------------------------
   Tablet (landscape) and below
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {

  /* Nothing (off-canvas menu, badges, decorative blocks) may push the page
     sideways and shift the layout off-center. `clip`, unlike `hidden`,
     keeps the sticky header working. */
  html,
  body {
    overflow-x: clip;
  }

  /* `.footer-bottom` sets `padding: 22px 0`, which wipes the side padding
     when the element is also a .container. This restores it; it has no
     effect if .footer-bottom is not a .container. */
  .footer-bottom.container {
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* --------------------------------------------------------------------------
   Hero stacks into one column (<= 980px)
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {

  /* Even line breaks for centered headings */
  h1,
  h2 {
    text-wrap: balance;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px 40px;
  }

  /* Cap the photo width so it doesn't stretch edge to edge on a tablet */
  .hero-visual {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Was `position: static; margin-left: 20px`: stuck to the left, and
     painted underneath the photo because z-index does nothing on a static
     element. `relative` keeps the same flow and lets z-index work; the
     desktop `left`/`bottom` offsets must be reset or they would now apply. */
  .hero-badge {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -46px auto 0;
    text-align: center;
  }
}


/* --------------------------------------------------------------------------
   Layouts are one column (<= 900px)
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {

  /* ---- Top bar ---- */
  .topbar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
  }

  .topbar-contacts {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
  }

  .topbar-social {
    justify-content: center;
  }

  /* ---- Buttons: keep the label centered even if a button stretches ---- */
  .btn {
    justify-content: center;
  }

  /* ---- Page banner ---- */
  .page-banner {
    text-align: center;
  }

  .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ---- Section headings ---- */
  .section-head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* ---- Split sections (photo + copy) ---- */
  .split-media,
  .service-detail-media {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .split-copy,
  .service-detail-copy {
    text-align: center;
  }

  /* Tick lists: center the block, keep the ticks lined up in a column */
  .split-copy .checklist,
  .service-detail-copy ul {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  /* ---- Service nav + project filters ---- */
  .service-nav-list,
  .filter-bar {
    justify-content: center;
  }

  /* ---- Cards ---- */
  .bento-card {
    align-items: center;
    text-align: center;
  }

  /* The icon is absolutely positioned; left/right 0 + auto margins centers it
     without touching `transform` (which the hover animation uses). */
  .bento-card .service-icon {
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-item,
  .process-step,
  .value-card,
  .contact-card {
    text-align: center;
  }

  .feature-item .service-icon,
  .process-step .step-num {
    margin-left: auto;
    margin-right: auto;
  }

  /* Whatever icon or image sits inside these cards gets centered too */
  .value-card > *,
  .contact-card > * {
    margin-left: auto;
    margin-right: auto;
  }

  /* ---- CTA banner ---- */
  .cta-banner .container {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 24px;
    text-align: center;
  }

  /* ---- Footer ---- */
  .footer-grid {
    text-align: center;
  }

  .footer-brand .brand,
  .footer-social,
  .footer-contact li,
  .footer-bottom {
    justify-content: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom {
    text-align: center;
  }
}


/* --------------------------------------------------------------------------
   Phone (<= 720px)
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {

  .footer-bottom.container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* `white-space: nowrap` would run off the edge of a narrow screen and
     sit off-center instead of wrapping. */
  .strip-label {
    white-space: normal;
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-modal-body {
    text-align: center;
  }
}


@media (max-width: 720px) {
  section {
    padding: 68px 0;
  }

  .container {
    padding: 0 20px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-600);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(54, 197, 240, 0.18);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-top: 12px;
}

.section-head p {
  color: var(--slate);
  margin-top: 16px;
  font-size: 1.06rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: var(--gradient-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: var(--paper);
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(28, 95, 170, 0.32);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}

.btn-outline:hover {
  border-color: var(--sky-400);
  color: var(--sky-300);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border-color: var(--line);
  color: var(--navy-950);
}

.btn-outline-dark:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--navy-950);
  color: var(--paper);
}

.btn-ghost:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Media frame + universal image animation system
   -------------------------------------------------------------------------- */

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #e9eff5 25%, #f6f9fc 37%, #e9eff5 63%);
  background-size: 400% 100%;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}

.media-frame:hover img {
  transform: scale(1.09);
}

/* Corner-bracket "viewfinder" device — echoes the blueprint/engineering motif */
.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid transparent;
  border-image: none;
  pointer-events: none;
  background:
    linear-gradient(var(--sky-300), var(--sky-300)) top left / 22px 2px no-repeat,
    linear-gradient(var(--sky-300), var(--sky-300)) top left / 2px 22px no-repeat,
    linear-gradient(var(--sky-300), var(--sky-300)) top right / 22px 2px no-repeat,
    linear-gradient(var(--sky-300), var(--sky-300)) top right / 2px 22px no-repeat,
    linear-gradient(var(--sky-300), var(--sky-300)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--sky-300), var(--sky-300)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--sky-300), var(--sky-300)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--sky-300), var(--sky-300)) bottom right / 2px 22px no-repeat;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.media-frame:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Scroll-reveal state, toggled by IntersectionObserver in script.js */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.in-view>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger.in-view>*:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-stagger.in-view>*:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-stagger.in-view>*:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-stagger.in-view>*:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-stagger.in-view>*:nth-child(6) {
  transition-delay: 0.4s;
}

.reveal-stagger.in-view>*:nth-child(7) {
  transition-delay: 0.48s;
}

.reveal-stagger.in-view>*:nth-child(8) {
  transition-delay: 0.56s;
}

.reveal-stagger.in-view>*:nth-child(9) {
  transition-delay: 0.64s;
}

@media (prefers-reduced-motion: reduce) {

  .media-frame,
  .reveal,
  .reveal-stagger>*,
  .media-frame img {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-stagger>* {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}

.topbar-contacts {
  display: flex;
  gap: 26px;
}

.topbar-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-social {
  display: flex;
  gap: 12px;
}

.topbar-social a {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar-social a:hover {
  background: var(--sky-400);
  border-color: var(--sky-400);
  color: var(--ink);
}

@media (max-width: 720px) {
  .topbar-contacts span:nth-child(2) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(6, 11, 20, 0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.3rem;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.6rem;
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav>ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 15px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--navy-950);
  position: relative;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 9px;
  height: 2px;
  background: var(--sky-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a.nav-link:hover::after,
.main-nav li.current>a.nav-link::after {
  transform: scaleX(1);
}

.main-nav a.nav-link:hover,
.main-nav li.current>a.nav-link {
  color: var(--blue-600);
}

.nav-item.has-dropdown {
  position: relative;
}

.caret {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.nav-item.has-dropdown.open .caret,
.nav-item.has-dropdown:hover .caret {
  transform: rotate(225deg);
  margin-top: 4px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sky-400);
  box-shadow: 0 20px 44px rgba(6, 11, 20, 0.16);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-800);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease;
}

.dropdown a:hover {
  background: var(--mist);
  color: var(--blue-600);
  padding-left: 18px;
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--navy-950);
  border-radius: 2px;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(340px, 86vw);
    height: calc(100vh - var(--header-h));
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav>ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a.nav-link {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-between;
  }

  .main-nav a.nav-link::after {
    display: none;
  }

  .main-nav a.nav-link:hover,
  .main-nav li.current>a.nav-link {
    color: var(--sky-300);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    box-shadow: none;
    padding: 0 0 8px 14px;
  }

  .nav-item.has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown a {
    color: rgba(255, 255, 255, 0.72);
  }

  .dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--sky-300);
  }

  .nav-cta {
    margin: 14px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Page banner
   -------------------------------------------------------------------------- */

.page-banner {
  background: var(--navy-950);
  background-image:
    radial-gradient(560px 320px at 12% 0%, rgba(54, 197, 240, 0.22), transparent 60%),
    radial-gradient(480px 320px at 90% 100%, rgba(28, 95, 170, 0.35), transparent 60%);
  color: var(--paper);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--navy-950);
}

.page-banner .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.page-banner .container {
  position: relative;
}

.page-banner h1 {
  color: var(--paper);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
}

.breadcrumb {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.94rem;
  display: flex;
  gap: 8px;
}

.breadcrumb a {
  color: var(--sky-300);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  background-image:
    radial-gradient(760px 480px at 100% -10%, rgba(54, 197, 240, 0.28), transparent 60%),
    radial-gradient(620px 420px at -10% 100%, rgba(28, 95, 170, 0.35), transparent 60%);
}

.hero .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 78%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  min-height: 680px;
  padding: 76px 0;
}

.hero-copy {
  max-width: 560px;
  color: var(--paper);
}

.hero-copy .eyebrow {
  color: var(--sky-300);
  margin-bottom: 20px;
}

.hero-copy .eyebrow::before {
  box-shadow: 0 0 0 4px rgba(54, 197, 240, 0.28);
}

.hero-copy h1 {
  color: var(--paper);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}

.hero-copy h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 50px;
  display: flex;
  gap: 44px;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--paper);
}

.hero-stats div span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-visual {
  position: relative;
  z-index: 2;
  perspective: 1200px;
}

.hero-visual .media-frame {
  aspect-ratio: 4/5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.hero-badge {
  position: absolute;
  left: -32px;
  bottom: 30px;
  background: var(--paper);
  color: var(--navy-950);
  padding: 20px 24px;
  max-width: 230px;
  z-index: 3;
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(6, 11, 20, 0.35);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--blue-600);
}

.hero-badge span {
  font-size: 0.85rem;
  color: var(--slate);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 52px 0;
  }

  .hero-copy,
  .hero-copy p {
    max-width: 100%;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual .media-frame {
    transform: none;
  }

  .hero-badge {
    position: static;
    margin-top: -46px;
    margin-left: 20px;
  }
}

/* --------------------------------------------------------------------------
   Marquee (logos)
   -------------------------------------------------------------------------- */

.strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.strip-label {
  font-size: 0.82rem;
  color: var(--slate-light);
  font-family: var(--font-head);
  white-space: nowrap;
  margin-bottom: 20px;
  display: block;
  text-align: center;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.marquee img {
  height: 100px;
  width: auto;
  opacity: 1;
  /* filter: grayscale(1); */
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.marquee img:hover {
  opacity: 1;
  /* filter: grayscale(0); */
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Split sections
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 68px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media .media-frame {
  aspect-ratio: 1/1;
  border: 1px solid var(--line);
}

.split-media .accent-block {
  position: absolute;
  width: 58%;
  aspect-ratio: 4/3;
  background: var(--gradient-brand);
  bottom: -30px;
  right: -30px;
  z-index: -1;
  border-radius: var(--radius);
}

.split-copy .checklist {
  margin-top: 28px;
  display: grid;
  gap: 15px;
}

.split-copy .checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--navy-800);
}

.check-mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  margin-top: 1px;
}

.split-copy p {
  color: var(--slate);
  margin-top: 18px;
}

@media (max-width: 900px) {

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .split-media .accent-block {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Bento services
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.bento-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(6, 11, 20, 0.12);
  border-color: var(--sky-300);
}

.bento-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--navy-950);
  color: var(--paper);
  background-image: radial-gradient(420px 280px at 100% 0%, rgba(54, 197, 240, 0.35), transparent 65%);
}

.bento-card.featured h3,
.bento-card.featured .service-link {
  color: var(--paper);
}

.bento-card.featured p {
  color: rgba(255, 255, 255, 0.68);
}

.bento-card .service-icon {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 50px;
  height: 50px;
  background: rgba(28, 95, 170, 0.1);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.bento-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.12);
}

.bento-card:hover .service-icon {
  transform: rotate(-8deg) scale(1.08);
}

.bento-card .service-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bento-card h3 {
  font-size: 1.14rem;
}

.bento-card p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.94rem;
}

.bento-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-950);
}

.bento-card .service-link .arrow {
  transition: transform 0.25s var(--ease);
}

.bento-card:hover .service-link .arrow {
  transform: translateX(4px);
}

@media (max-width: 1040px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .bento-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card.featured {
    grid-column: span 1;
  }
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 16px);
}

.process-step {
  position: relative;
  padding: 0 24px;
}

.process-step .step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-600);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.process-step:hover .step-num {
  background: var(--gradient-brand);
  color: var(--paper);
  border-color: transparent;
}

.process-step h3 {
  margin-top: 22px;
  font-size: 1.08rem;
}

.process-step p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  padding: 32px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(6, 11, 20, 0.1);
}

.feature-item .service-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
}

.feature-item:hover .service-icon {
  transform: rotate(-8deg) scale(1.08);
}

.feature-item .service-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.feature-item h3 {
  font-size: 1.03rem;
  margin-top: 20px;
}

.feature-item p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

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

.stats-band {
  background: var(--navy-950);
  background-image: radial-gradient(700px 400px at 50% 0%, rgba(54, 197, 240, 0.18), transparent 65%);
  color: var(--paper);
  padding: 72px 0;
}

.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:first-child {
  border-left: none;
}

.stat-item strong {
  font-family: var(--font-head);
  font-size: 2.6rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.stat-item span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 720px) {
  .stats-band .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(3) {
    border-left: none;
  }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonial-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fade-in 0.5s var(--ease);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-mark {
  font-family: var(--font-head);
  font-size: 3.6rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.testimonial-slide p.quote {
  font-size: 1.24rem;
  color: var(--navy-950);
  font-family: var(--font-head);
  font-weight: 500;
  margin-top: 10px;
}

.testimonial-person {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-person .media-frame {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.testimonial-person strong {
  display: block;
  font-family: var(--font-head);
}

.testimonial-person span {
  font-size: 0.86rem;
  color: var(--slate);
}

.testimonial-dots {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  transition: all 0.25s ease;
}

.testimonial-dots button.active {
  background: var(--blue-600);
  width: 26px;
  border-radius: 5px;
}

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

.cta-banner {
  background: var(--gradient-brand);
  color: var(--paper);
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 60px;
  padding-bottom: 60px;
}

.cta-banner h2 {
  color: var(--paper);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 580px;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding-top: 84px;
}

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

.footer-brand .brand-text strong {
  color: var(--paper);
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.92rem;
  max-width: 290px;
}

.footer-social {
      margin-top: 10px;
      --social-size: 48px;        /* circle diameter */
      --social-icon-size: 20px;   /* icon size */
      --social-bg: #ffffff;       /* circle colour */
      --social-icon: #1e3a8a;     /* icon colour (VUDDHI logo blue) */
      --social-bg-hover: #dbe4ff; /* circle colour on hover / keyboard focus */

      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-social a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: var(--social-size);
      height: var(--social-size);
      border: 0;
      border-radius: 50%;
      background: var(--social-bg);
      color: var(--social-icon);
      text-decoration: none;
      transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    }

    /* thin outline icons, drawn with the link's text colour */
    .footer-social svg {
      width: var(--social-icon-size);
      height: var(--social-icon-size);
      fill: none;
      stroke: currentColor;
      stroke-width: 1.75;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .footer-social a:hover,
    .footer-social a:focus-visible {
      background: var(--social-bg-hover);
      transform: translateY(-3px);
      box-shadow: 0 8px 18px rgba(30, 58, 138, .45);
    }

    .footer-social a:focus-visible {
      outline: 2px solid #ffffff;
      outline-offset: 3px;
    }

.footer-col h4 {
  color: var(--paper);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--sky-300);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  align-items: flex-start;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

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

.team-card {
  text-align: center;
}

.team-card .media-frame {
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
}

.team-card h3 {
  margin-top: 18px;
  font-size: 1.02rem;
}

.team-card span {
  color: var(--blue-600);
  font-size: 0.86rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.value-card {
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(6, 11, 20, 0.1);
}

.value-card h3 {
  margin-top: 18px;
  font-size: 1.1rem;
}

.value-card p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Service detail page
   -------------------------------------------------------------------------- */

.service-detail {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
  padding: 76px 0;
}

.service-detail:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.service-detail.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.service-detail.reverse .service-detail-media {
  order: 2;
}

.service-detail-media .media-frame {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
}

.service-detail-copy .tag {
  display: inline-block;
  background: var(--mist);
  color: var(--blue-600);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 20px;
}

.service-detail-copy h2 {
  margin-top: 16px;
  font-size: 1.75rem;
}

.service-detail-copy p.lead {
  margin-top: 16px;
  color: var(--slate);
}

.service-detail-copy ul {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.service-detail-copy ul li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--navy-800);
  font-weight: 500;
}

@media (max-width: 900px) {

  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 0;
  }

  .service-detail.reverse .service-detail-media {
    order: 0;
  }
}

.service-nav-list {
  display: grid;
  gap: 8px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.service-nav-list a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid var(--line);
  color: var(--slate);
  transition: all 0.2s ease;
}

.service-nav-list a:hover,
.service-nav-list a.active {
  border-left-color: var(--sky-400);
  color: var(--navy-950);
  background: var(--mist);
}

.service-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-nav-list {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .service-nav-list a {
    border-left: none;
    border-bottom: 3px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   Projects page
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate);
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--sky-400);
  color: var(--navy-950);
}

.filter-btn.active {
  background: var(--gradient-brand);
  color: var(--paper);
  border-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card .media-frame {
  aspect-ratio: 4/3;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 11, 20, 0.88) 0%, rgba(6, 11, 20, 0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay .cat-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--sky-300);
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s var(--ease) 0.05s;
}

.project-card:hover .cat-tag {
  transform: translateY(0);
  opacity: 1;
}

.project-card-overlay h3 {
  color: var(--paper);
  font-size: 1.08rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s var(--ease) 0.1s;
}

.project-card:hover .project-card-overlay h3 {
  transform: translateY(0);
  opacity: 1;
}

.project-card-overlay span.view {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--sky-200);
  font-weight: 500;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s var(--ease) 0.15s;
}

.project-card:hover .project-card-overlay span.view {
  transform: translateY(0);
  opacity: 1;
}

.project-card {
  position: relative;
}

.bottom-bar {
  background: #38bdf8;
  text-align: center;
  /* padding: 10px 0; */
  /* margin-top: 50px; */
}

.bottom-bar p {
  color: #06112a;
  margin: 0;
  font-size: 20px;
  padding: 1px;
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Project modal */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal.open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 20, 0.72);
  backdrop-filter: blur(4px);
  animation: fade-in 0.25s ease;
}

.project-modal-panel {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modal-in 0.3s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-modal-media .media-frame {
  height: 100%;
  min-height: 280px;
  border-radius: 0;
}

.project-modal-body {
  padding: 40px;
}

.project-modal-body .cat-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--mist);
  padding: 5px 12px;
  border-radius: 20px;
}

.project-modal-body h3 {
  margin-top: 16px;
  font-size: 1.5rem;
}

.project-modal-body p {
  margin-top: 14px;
  color: var(--slate);
  font-size: 0.98rem;
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 11, 20, 0.06);
  border: none;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.project-modal-close:hover {
  background: var(--navy-950);
  color: var(--paper);
  transform: rotate(90deg);
}

@media (max-width: 720px) {
  .project-modal-panel {
    grid-template-columns: 1fr;
  }

  .project-modal-media .media-frame {
    min-height: 220px;
  }
}

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

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(6, 11, 20, 0.1);
}

.contact-card h3 {
  font-size: 1.02rem;
  margin-top: 18px;
}

.contact-card p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

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

.contact-form {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  font-family: var(--font-head);
}

.field input,
.field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(54, 197, 240, 0.14);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #d9534f;
}

.field .error-msg {
  font-size: 0.8rem;
  color: #d9534f;
  display: none;
}

.field.has-error .error-msg {
  display: block;
}

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #e6f6ea;
  color: #1c7a35;
}

.map-frame {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--paper);
  display: grid;
  place-items: center;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s var(--ease);
  z-index: 90;
  box-shadow: 0 10px 30px rgba(6, 11, 20, 0.25);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--gradient-brand);
}