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

:root {
  /* ===== BRAND COLORS ===== */
  --color-bg: #F8F5EF;
  --color-bg-soft: #E8DFD2;
  --color-bg-card: #EEE8DE;
  --color-surface: #DCC9B5;

  --color-gold: #B99A68;
  --color-gold-light: #D3B786;
  --color-gold-dark: #8F7045;

  --color-rose: #E7D6CF;
  --color-rose-soft: rgba(231, 214, 207, 0.45);

  --color-ivory: #F8F5EF;
  --color-text: #242321;
  --color-text-muted: #7D776F;
  --color-border: #D9D4CC;

  --color-sage: #B7B8A7;
  --color-sand: #DCC9B5;
  --color-espresso: #2B2521;

  /* ===== TYPOGRAPHY ===== */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* ===== LAYOUT ===== */
  --header-height: 80px;
  --container: 1200px;
  --radius: 4px;

  /* ===== ANIMATION ===== */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  font-size: 15px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--color-gold);
  color: var(--color-ivory);
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--color-gold);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

/* Prevent long words/URLs from breaking mobile layout */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span {
  overflow-wrap: break-word;
}

/* =========================================================
   CONTAINER
========================================================= */

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

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.65rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

h4 {
  font-family: var(--font-body);
}

.display,
h1 em,
h2 em,
h3 em {
  font-family: var(--font-display);
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
}

.eyebrow {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.lead {
  max-width: 560px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-gold);
}

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

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;
  padding: 14px 32px;

  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  border: 1px solid transparent;
  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: #FFFFFF;
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  padding: 0;
  min-height: auto;
  border: none;
  letter-spacing: 0.15em;
}

.btn-ghost:hover {
  color: var(--color-gold-dark);
}

.btn-ghost::after {
  content: '→';
  margin-left: 8px;
  transition: transform var(--transition);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  height: var(--header-height);

  display: flex;
  align-items: center;

  background: transparent;

  transition:
    background var(--transition),
    backdrop-filter var(--transition),
    border-color var(--transition);
}

.site-header.scrolled {
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
  position: relative;
  display: block;

  width: 180px;
  height: 80px;

  flex-shrink: 0;
}

.logo img {
  width: 110%;
  height: 110%;
  object-fit: contain;
  transition: opacity var(--transition);
}

.logo-white {
  opacity: 1;
}

.logo-dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.footer-logo {
  display: block;
  width: auto;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  position: relative;
  z-index: 2;
}

/* Hero page header logo */
body:has(.hero) .site-header.scrolled .logo-white {
  opacity: 0;
}

body:has(.hero) .site-header.scrolled .logo-dark {
  opacity: 1;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 10px;
}

.nav-desktop > a {
  position: relative;

  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #FFFFFF;
}

.nav-desktop > a:hover,
.nav-desktop > a.active {
  color: var(--color-gold-light);
}

/* After scroll */
body:has(.hero) .site-header.scrolled .nav-desktop > a {
  color: var(--color-text-muted);
}

body:has(.hero) .site-header.scrolled .nav-desktop > a:hover,
body:has(.hero) .site-header.scrolled .nav-desktop > a.active {
  color: var(--color-text);
}

/* Active underline */
@keyframes slideInUnderline {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes scaleText {
  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.05);
  }
}

.nav-desktop a.active {
  animation: scaleText 0.6s ease-out;
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;

  height: 1px;
  width: 100%;

  background: var(--color-gold);

  animation: slideInUnderline 0.5s ease-out;
}

/* =========================================================
   NAV DROPDOWN
========================================================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 24px;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0;

  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #FFFFFF;
  cursor: pointer;

  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav-dropdown-toggle:hover,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--color-gold-light);
}

body:has(.hero) .site-header.scrolled .nav-dropdown-toggle {
  color: var(--color-text-muted);
}

body:has(.hero) .site-header.scrolled .nav-dropdown-toggle:hover,
body:has(.hero) .site-header.scrolled .nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--color-text);
}

/* Dropdown */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;

  transform: translateX(-50%) translateY(8px);

  min-width: 220px;

  background: var(--color-bg-card);
  border: 1px solid var(--color-border);

  padding: 12px 0;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: all var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;

  padding: 10px 24px;

  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--color-text-muted);
}

.nav-dropdown-menu a:hover {
  color: var(--color-gold);
  background: rgba(185, 154, 104, 0.06);
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
  display: none;

  flex-direction: column;
  gap: 6px;

  background: none;
  border: none;

  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;

  width: 28px;
  height: 1.5px;

  background: #FFFFFF;

  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

body:has(.hero) .site-header.scrolled .menu-toggle span {
  background: var(--color-text);
}

/* =========================================================
   PAGES WITHOUT HERO
========================================================= */

body:not(:has(.hero)) .site-header {
  background: #FFFFFF;
}

body:not(:has(.hero)) .site-header .logo-white {
  opacity: 0;
}

body:not(:has(.hero)) .site-header .logo-dark {
  opacity: 1;
}

body:not(:has(.hero)) .nav-desktop > a {
  color: var(--color-text-muted);
}

body:not(:has(.hero)) .nav-desktop > a:hover,
body:not(:has(.hero)) .nav-desktop > a.active {
  color: var(--color-text);
}

body:not(:has(.hero)) .nav-dropdown-toggle {
  color: var(--color-text-muted);
}

body:not(:has(.hero)) .nav-dropdown-toggle:hover,
body:not(:has(.hero)) .nav-dropdown:focus-within .nav-dropdown-toggle,
body:not(:has(.hero)) .nav-dropdown.open .nav-dropdown-toggle {
  color: var(--color-text);
}

body:not(:has(.hero)) .menu-toggle span {
  background: var(--color-text);
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.nav-mobile {
  position: fixed;

  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;

  background: var(--color-bg);

  padding: 32px 24px;

  transform: translateX(100%);

  visibility: hidden;
  pointer-events: none;

  transition:
    transform var(--transition),
    visibility var(--transition);

  z-index: 999;

  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  display: block;

  padding: 16px 0;

  font-size: 1.1rem;
  font-family: var(--font-display);

  border-bottom: 1px solid var(--color-border);

  color: var(--color-text);

  min-height: 52px;
}

.nav-mobile a:hover {
  color: var(--color-gold);
}

.nav-mobile a.active {
  color: var(--color-gold);
  font-weight: 600;

  position: relative;
  padding-left: 12px;
}

.nav-mobile a.active::before {
  content: '';

  position: absolute;
  left: 0;

  width: 3px;
  height: 100%;

  background: var(--color-gold);
}

.nav-mobile-sub {
  margin: 2px 0 10px 12px;
  padding-left: 18px;
  border-left: 1px solid var(--color-border);
}

.nav-mobile-sub a {
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  border-bottom: 0;
  min-height: 44px;
}

/* =========================================================
   CSS MOBILE MENU CHECKBOX
========================================================= */

#mobile-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-label {
  display: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;

  z-index: 0;

  background: #0A0A0B;
}

.hero-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 1.4s ease,
    visibility 1.4s ease;
}

.hero-video.active {
  opacity: 1;
  visibility: visible;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(10, 10, 11, 0.78) 0%,
      rgba(10, 10, 11, 0.38) 50%,
      rgba(10, 10, 11, 0.72) 100%
    );

  z-index: 1;
}

.hero-content {
  position: relative;

  z-index: 2;

  padding-top: var(--header-height);
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 850px;
  font-size: 3rem;
  line-height: 1.08;

  color: #FFFFFF;
}

.hero h1 em {
  color: var(--color-gold-light);
}

.hero-p{
  color:#fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  margin-top: 40px;
}

.hero .btn-primary {
  color: #FFFFFF;
}

.hero .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-outline:hover {
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

/* =========================================================
   HERO BACKGROUND IMAGE
========================================================= */

.hero-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  transform: scale(1.05);

  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

/* =========================================================
   HERO SCROLL
========================================================= */

.hero-scroll {
  position: absolute;

  bottom: 40px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;

  background:
    linear-gradient(
      to bottom,
      var(--color-gold),
      transparent
    );

  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
  position: relative;

  padding:
    calc(var(--header-height) + 80px)
    0
    80px;

  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(185, 154, 104, 0.09),
      transparent 60%
    );
}

.page-hero .lead {
  margin: 20px auto 0;
}

/* =========================================================
   SECTIONS
========================================================= */

section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .lead {
  margin: 16px auto 0;
}

/* =========================================================
   GRIDS
========================================================= */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

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

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

/* =========================================================
   GENERIC CARDS
========================================================= */

.card {
  background: var(--color-bg-card);

  border: 1px solid var(--color-border);

  overflow: hidden;

  transition:
    transform var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 154, 104, 0.45);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  margin-bottom: 12px;
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* =========================================================
   CORE SERVICES
========================================================= */

.core-services {
  position: relative;

  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(185, 154, 104, 0.055),
      transparent 35%
    ),
    var(--color-bg);

  overflow: hidden;
}

.core-services .section-header {
  max-width: 760px;

  margin-left: auto;
  margin-right: auto;
}

.core-services .section-header h2 {
  margin-bottom: 22px;
}

.core-services .section-header h2 em {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 400;
}

.core-services-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 28px;

  margin-top: 65px;
}

.core-service-card {
  position: relative;

  min-height: 500px;

  padding: 52px 46px 46px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.72),
      rgba(238, 232, 222, 0.7)
    );

  border: 1px solid rgba(185, 154, 104, 0.22);

  overflow: hidden;

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.core-service-card::before {
  content: '';

  position: absolute;

  top: 0;
  right: 0;

  width: 110px;
  height: 110px;

  border-top: 1px solid rgba(185, 154, 104, 0.4);
  border-right: 1px solid rgba(185, 154, 104, 0.4);

  pointer-events: none;

  transition:
    width var(--transition),
    height var(--transition);
}

.core-service-card::after {
  content: '';

  position: absolute;

  bottom: 0;
  left: 0;

  width: 0;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      var(--color-gold),
      var(--color-rose)
    );

  transition: width 0.5s ease;
}

.core-service-card:hover {
  transform: translateY(-8px);

  border-color: rgba(185, 154, 104, 0.48);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95),
      rgba(238, 232, 222, 0.9)
    );
}

.core-service-card:hover::before {
  width: 140px;
  height: 140px;
}

.core-service-card:hover::after {
  width: 100%;
}

.core-service-number {
  position: absolute;

  top: 24px;
  right: 28px;

  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;

  color: #ecd5af;

  user-select: none;
}

.core-service-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 34px;

  border: 1px solid rgba(185, 154, 104, 0.35);

  color: var(--color-gold);

  font-size: 1.25rem;

  transition: all var(--transition);
}

.core-service-card:hover .core-service-icon {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #FFFFFF;
}

.core-service-content {
  position: relative;
  z-index: 2;
}

.core-service-label {
  display: block;

  margin-bottom: 12px;

  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  color: var(--color-gold);
}

.core-service-content h3 {
  max-width: 450px;

  margin-bottom: 18px;

  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.core-service-content p {
  max-width: 520px;

  margin-bottom: 30px;

  color: var(--color-text-muted);

  font-size: 0.94rem;
  line-height: 1.8;
}

.core-service-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;

  margin-bottom: 34px;
}

.core-service-tags span {
  padding: 7px 12px;

  border: 1px solid var(--color-border);

  background: rgba(255, 255, 255, 0.45);

  color: var(--color-text-muted);

  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.core-service-card .btn-ghost {
  font-size: 0.72rem;
}

/* =========================================================
   STATS
========================================================= */

.stats-bar {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 32px;

  padding: 60px 0;

  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);

  font-size: clamp(2.5rem, 4vw, 3.5rem);

  font-weight: 700;

  color: var(--color-gold);

  line-height: 1;

  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* =========================================================
   HOME PORTFOLIO
========================================================= */

.home-portfolio-preview {
  padding: 100px 0 110px;
  background: var(--color-bg);
}

.home-portfolio-preview .section-header {
  max-width: 760px;

  margin: 0 auto 45px;

  text-align: center;
}

.home-portfolio-preview .section-header h2 {
  margin-bottom: 14px;
}

.home-portfolio-preview .section-header .lead {
  max-width: 560px;

  margin: 0 auto;

  color: var(--color-text-muted);

  line-height: 1.75;
}

.home-portfolio-grid {
  width: min(1120px, calc(100% - 80px));

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 28px;
  row-gap: 55px;
}

.home-portfolio-grid .portfolio-project {
  min-width: 0;
}

.home-portfolio-grid .portfolio-image-slideshow {
  width: 100%;

  aspect-ratio: 16 / 10;

  overflow: hidden;
}

.home-portfolio-grid .portfolio-project-info {
  padding-top: 16px;
}

.home-portfolio-grid .portfolio-project-info h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
}

.home-portfolio-cta {
  display: flex;
  justify-content: center;

  margin-top: 48px;
}

/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials-section {
  overflow: hidden;
}

.testimonial-slider {
  width: 100%;
  max-width: 850px;

  margin: 45px auto 0;

  overflow: hidden;

  position: relative;

  touch-action: pan-y;
}

.testimonial-track {
  display: flex;

  width: 100%;

  transform: translate3d(0, 0, 0);

  transition: transform 0.6s ease;
}

.testimonial-slide {
  flex: 0 0 100%;

  width: 100%;
  min-width: 100%;

  box-sizing: border-box;

  padding: 5px 10px;
}

.testimonial-card {
  max-width: 760px;

  margin: 0 auto;

  padding: 38px 50px 34px;

  text-align: center;

  border: 1px solid var(--color-border);

  background: var(--color-bg-card);

  border-radius: var(--radius);
}

.quote-mark {
  font-family: var(--font-display);

  font-size: 4rem;
  line-height: 0.55;

  height: 25px;

  color: var(--color-gold);

  opacity: 0.8;
}

.testimonial-quote {
  margin: 0 auto 28px;

  max-width: 650px;

  font-family: var(--font-display);

  font-size: clamp(1.15rem, 2vw, 1.5rem);

  line-height: 1.55;

  font-style: italic;

  color: var(--color-text);
}

.testimonial-client {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-top: 10px;
}

.client-avatar {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border: 1px solid var(--color-gold);

  color: var(--color-gold);

  font-size: 0.75rem;
  font-weight: 600;

  flex-shrink: 0;
}

.testimonial-author {
  margin: 0 0 3px;

  font-size: 0.75rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--color-gold);
}

.testimonial-role {
  margin: 0;

  font-size: 0.7rem;

  letter-spacing: 0.05em;

  color: var(--color-text-muted);
}

.testimonial-dots {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  margin-top: 25px;
}

.testimonial-dot {
  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: var(--color-gold);

  opacity: 0.25;

  cursor: pointer;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.testimonial-dot:hover {
  opacity: 0.6;
}

.testimonial-dot.active {
  opacity: 1;
  transform: scale(1.35);
}

/* =========================================================
   SPLIT SECTION
========================================================= */

.split-section {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 60px;

  align-items: center;
}

.split-image {
  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.split-image::after {
  content: '';

  position: absolute;
  inset: 16px;

  border: 1px solid rgba(185, 154, 104, 0.35);

  pointer-events: none;
}

.split-content h2 {
  margin-bottom: 24px;
}

.split-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* =========================================================
   SHARED SERVICE CARDS
========================================================= */

.service-card {
  position: relative;

  padding: 36px;

  background: var(--color-bg-card);

  border: 1px solid var(--color-border);

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);

  border-color: rgba(185, 154, 104, 0.45);

  background: var(--color-surface);
}

.service-icon {
  width: 52px;
  height: 52px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 24px;

  border: 1px solid rgba(185, 154, 104, 0.35);

  color: var(--color-gold);

  font-size: 1.1rem;

  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-gold);

  border-color: var(--color-gold);

  color: #FFFFFF;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p {
  margin-bottom: 22px;

  color: var(--color-text-muted);

  font-size: 0.92rem;

  line-height: 1.8;
}

.process-number {
  display: none;
}

/* =========================================================
   ABOUT
========================================================= */

.about-hero {
  position: relative;

  padding: 170px 0 100px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(201, 169, 98, 0.06),
      transparent 35%
    ),
    var(--color-bg);

  border-bottom: 1px solid var(--color-border);
}

.about-hero-glow {
  position: absolute;

  width: 600px;
  height: 600px;

  top: -360px;
  right: -160px;

  border: 1px solid rgba(201, 169, 98, 0.08);

  border-radius: 50%;

  pointer-events: none;
}

.about-hero .container {
  position: relative;
  z-index: 2;
}

.about-hero .eyebrow {
  margin-bottom: 18px;
}

.about-hero h1 {
  max-width: 850px;

  margin-bottom: 22px;

  font-size: clamp(2.2rem, 4.8vw, 3.8rem);

  line-height: 0.95;

  letter-spacing: 0;
}

.about-hero h1 em {
  color: var(--color-gold);

  font-style: italic;

  font-weight: 400;
}

.about-hero p {
  max-width: 620px;

  color: var(--color-text-muted);

  font-size: 0.98rem;

  line-height: 1.85;
}

.capabilities-list {
  display: flex;
  flex-direction: column;

  border-top: 1px solid var(--color-border);
}

.capability-item {
  display: flex;

  align-items: center;

  gap: 18px;

  padding: 18px 0;

  border-bottom: 1px solid var(--color-border);
}

.capability-item span {
  min-width: 30px;

  font-size: 0.7rem;

  letter-spacing: 0.1em;

  color: var(--color-gold);
}

.capability-item strong {
  font-size: 0.9rem;

  font-weight: 500;

  color: var(--color-text);
}

/* =========================================================
   PROCESS
========================================================= */

.process-steps {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 32px;

  counter-reset: step;
}

.process-step {
  position: relative;

  padding-top: 48px;
}

.process-step::before {
  counter-increment: step;

  content: counter(step, decimal-leading-zero);

  position: absolute;

  top: 0;
  left: 0;

  font-family: var(--font-display);

  font-size: 3rem;

  font-weight: 700;

  color: rgba(185, 154, 104, 0.2);

  line-height: 1;
}

.process-step h3 {
  font-size: 1.2rem;

  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.9rem;

  color: var(--color-text-muted);
}

/* =========================================================
   CONTACT
========================================================= */

.contact-hero {
  padding-bottom: 90px;
}

.contact-hero h1 {
  max-width: 900px;
  margin: 0 auto;
}

.contact-hero h1 em {
  color: var(--color-gold);

  font-style: italic;

  font-weight: 400;
}

.contact-hero .lead {
  max-width: 650px;
  margin: 20px auto 0;
}

.contact-main {
  padding-top: 20px;
}

.contact-grid {
  display: grid;

  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);

  gap: 90px;

  align-items: start;
}

.contact-details {
  padding-top: 10px;
}

.contact-details h2 {
  max-width: 480px;

  margin-bottom: 22px;
}

.contact-details h2 em {
  color: var(--color-gold);

  font-style: italic;

  font-weight: 400;
}

.contact-intro {
  max-width: 500px;

  margin-bottom: 45px;

  color: var(--color-text-muted);

  font-size: 0.95rem;

  line-height: 1.85;
}

.contact-detail {
  padding: 20px 0;

  border-top: 1px solid var(--color-border);
}

.contact-detail:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.contact-detail-label {
  display: block;

  margin-bottom: 7px;

  font-size: 0.68rem;

  font-weight: 500;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  color: var(--color-gold);
}

.contact-detail-value {
  font-family: var(--font-display);

  font-size: 1.3rem;

  color: var(--color-text);
}

.contact-detail-value:hover {
  color: var(--color-gold);
}

.contact-detail-address,
.contact-detail-hours {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.8;
}

.contact-location {
  width: 100%;
  margin-top: 70px;
  padding-top: 55px;
  border-top: 1px solid var(--color-border);
}

.contact-map {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-services {
  margin-top: 42px;
}

.contact-services > .contact-detail-label {
  margin-bottom: 14px;
}

.contact-services a {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding: 13px 0;

  border-bottom: 1px solid var(--color-border);

  color: var(--color-text-muted);

  font-size: 0.88rem;

  transition:
    color var(--transition),
    padding var(--transition);
}

.contact-services a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.contact-services a span {
  color: var(--color-gold);
}

/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form {
  width: 100%;

  background: var(--color-bg-card);

  border: 1px solid var(--color-border);

  padding: 48px;
}

.form-header {
  margin-bottom: 38px;
}

.form-header h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.form-header p {
  max-width: 520px;

  color: var(--color-text-muted);

  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 0.68rem;

  font-weight: 500;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;

  min-height: 48px;

  padding: 14px 15px;

  background: var(--color-bg);

  border: 1px solid var(--color-border);

  border-radius: 0;

  color: var(--color-text);

  font-family: var(--font-body);

  font-size: 0.9rem;

  transition:
    border-color var(--transition),
    background var(--transition);

  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #918B82;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;

  border-color: var(--color-gold);

  background: #FFFFFF;
}

.form-group textarea {
  min-height: 150px;

  resize: vertical;

  line-height: 1.7;
}

/* =========================================================
   SELECT
========================================================= */

.form-group select {
  cursor: pointer;

  padding-right: 40px;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--color-gold) 50%
    ),
    linear-gradient(
      135deg,
      var(--color-gold) 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;
}

.form-group select option {
  background: var(--color-bg-card);
  color: var(--color-text);
}

/* =========================================================
   FORM ROW
========================================================= */

.form-row {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

/* =========================================================
   SUBMIT
========================================================= */

.contact-submit {
  width: 100%;

  justify-content: center;

  margin-top: 5px;

  padding: 16px 30px;
}

.contact-submit span {
  transition: transform var(--transition);
}

.contact-submit:hover span {
  transform: translateX(5px);
}

.form-note {
  margin-top: 14px;

  text-align: center;

  color: var(--color-text-muted);

  font-size: 0.68rem;

  line-height: 1.5;
}

/* =========================================================
   FORM SUCCESS
========================================================= */

.form-success {
  min-height: 540px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 25px;

  border: 1px solid var(--color-gold);

  color: var(--color-gold);

  font-size: 1.3rem;
}

.form-success h2 {
  margin-bottom: 15px;
}

.form-success p {
  max-width: 430px;

  margin-bottom: 28px;

  color: var(--color-text-muted);
}

/* =========================================================
   CONTACT PROCESS
========================================================= */

.contact-process {
  background: var(--color-bg-soft);

  border-top: 1px solid var(--color-border);

  border-bottom: 1px solid var(--color-border);
}

.contact-process .section-header {
  max-width: 650px;

  margin-left: auto;
  margin-right: auto;
}

.contact-process h2 em {
  color: var(--color-gold);

  font-style: italic;

  font-weight: 400;
}

.contact-process-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 35px;

  margin-top: 55px;
}

.contact-process-item {
  padding-top: 20px;

  border-top: 1px solid var(--color-border);
}

.contact-process-item > span {
  display: block;

  margin-bottom: 20px;

  font-family: var(--font-display);

  font-size: 1.5rem;

  color: var(--color-gold);
}

.contact-process-item h3 {
  font-size: 1.25rem;

  margin-bottom: 10px;
}

.contact-process-item p {
  color: var(--color-text-muted);

  font-size: 0.85rem;

  line-height: 1.75;
}

/* =========================================================
   FINAL CTA
========================================================= */

.contact-final-cta {
  padding: 100px 0;

  text-align: center;

  background:
    radial-gradient(
      ellipse at center,
      rgba(185, 154, 104, 0.08),
      transparent 65%
    );
}

.contact-final-cta h2 {
  margin-bottom: 15px;
}

.contact-final-cta .lead {
  margin: 0 auto 30px;
}

/* =========================================================
   SERVICE DETAIL
========================================================= */

.service-hero {
  position: relative;

  min-height: 60vh;

  display: flex;

  align-items: flex-end;

  padding-bottom: 60px;
}

.service-hero .hero-bg {
  transform: scale(1);
}

.service-features {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 32px;

  margin-top: 60px;
}

.feature-item {
  padding: 32px;

  border-left: 2px solid var(--color-gold);

  background: var(--color-bg-soft);
}

.feature-item h4 {
  font-family: var(--font-display);

  font-size: 1.3rem;

  margin-bottom: 12px;
}

.feature-item p {
  font-size: 0.9rem;

  color: var(--color-text-muted);
}

/* =========================================================
   CTA BANNER
========================================================= */

.cta-banner {
  position: relative;

  padding: 80px 0;

  text-align: center;

  overflow: hidden;
}

.cta-banner::before {
  content: '';

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(185, 154, 104, 0.08),
      rgba(231, 214, 207, 0.08)
    );

  border-top: 1px solid var(--color-border);

  border-bottom: 1px solid var(--color-border);
}

.cta-banner .container {
  position: relative;

  z-index: 1;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--color-text-muted);

  margin-bottom: 32px;

  max-width: 480px;

  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: var(--color-bg-soft);

  border-top: 1px solid var(--color-border);

  padding: 80px 0 32px;
}

/* =========================================================
   ANSWER-READY FAQ
========================================================= */

.faq-section {
  background: var(--color-bg-soft);
}

.faq-list {
  max-width: 860px;
  margin: 42px auto 0;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition), padding var(--transition);
}

.faq-item:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: rgba(248, 245, 239, 0.55);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition), transform var(--transition);
}

.faq-item summary:hover {
  color: var(--color-gold-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  color: var(--color-gold);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  max-width: 720px;
  padding: 0 0 20px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.faq-item[open] .faq-answer {
  animation: faq-answer-in 260ms ease both;
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item summary,
  .faq-item summary::after {
    transition-duration: 0.01ms;
  }

  .faq-item[open] .faq-answer {
    animation: none;
  }
}

.footer-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 48px;

  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;

  display: inline-block;

  width: 200px;
  height: 73px;
}

.footer-brand .logo-white {
  display: none;
}

.footer-brand .logo-dark {
  position: static;

  opacity: 1;
}

.footer-brand p {
  color: var(--color-text-muted);

  font-size: 0.9rem;

  max-width: 280px;

  margin-bottom: 24px;
}

.footer-social h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.footer-social-links {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 4px 10px;
  width: max-content;
}

.footer-social-links a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition), transform var(--transition);
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  color: var(--color-gold-dark);
  transform: translateY(-2px);
}

.footer-social-links img,
.footer-social-links svg {
  display: block;
  width: 18px;
  height: 18px;
  filter: grayscale(1) sepia(0.25) opacity(0.78);
  transition: filter var(--transition);
}

.footer-social-links a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.footer-social-links a:hover img,
.footer-social-links a:hover svg,
.footer-social-links a:focus-visible img,
.footer-social-links a:focus-visible svg {
  filter: grayscale(1) sepia(0.65) saturate(0.8) opacity(1);
}

@media (prefers-reduced-motion: reduce) {
  .footer-social-links a,
  .footer-social-links img,
  .footer-social-links svg {
    transition: none;
  }
}

.social-links {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--color-border);

  font-size: 0.85rem;

  color: var(--color-text-muted);

  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--color-gold);

  color: var(--color-gold);
}

.footer-col h4 {
  font-family: var(--font-body);

  font-size: 0.75rem;

  letter-spacing: 0.15em;

  text-transform: uppercase;

  color: var(--color-gold);

  margin-bottom: 24px;
}

.footer-col a {
  display: block;

  padding: 6px 0;

  font-size: 0.9rem;

  color: var(--color-text-muted);
}

.footer-col a.footer-email {
  white-space: nowrap;
  font-size: 1rem;
}

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

.footer-col span {
  display: block;
  padding: 6px 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding-top: 32px;

  border-top: 1px solid var(--color-border);

  font-size: 0.8rem;

  color: var(--color-text-muted);
}

/* =========================================================
   FILTER TABS
========================================================= */

.filter-tabs {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  justify-content: center;

  margin-bottom: 48px;
}

.filter-tab {
  padding: 10px 24px;

  font-size: 0.75rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  background: transparent;

  border: 1px solid var(--color-border);

  color: var(--color-text-muted);

  cursor: pointer;

  transition: all var(--transition);

  font-family: var(--font-body);
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--color-gold);

  color: var(--color-gold);

  background: rgba(185, 154, 104, 0.06);
}

/* =========================================================
   TEAM
========================================================= */

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

.team-photo {
  aspect-ratio: 3 / 4;

  overflow: hidden;

  margin-bottom: 20px;
}

.team-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(30%);

  transition: filter var(--transition);
}

.team-card:hover .team-photo img {
  filter: grayscale(0%);
}

.team-card h3 {
  font-size: 1.3rem;

  margin-bottom: 4px;
}

.team-card span {
  font-size: 0.75rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--color-gold);
}

/* =========================================================
   ANIMATIONS
========================================================= */

.fade-up {
  opacity: 1;
  transform: none;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-up:nth-child(2) {
    transition-delay: 80ms;
  }

  .fade-up:nth-child(3) {
    transition-delay: 160ms;
  }

  .fade-up:nth-child(4) {
    transition-delay: 240ms;
  }

  .card,
  .service-card,
  .portfolio-project,
  .contact-form {
    transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.45s ease;
  }

  .card:hover,
  .service-card:hover,
  .portfolio-project:hover,
  .contact-form:hover {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-progress {
    display: none;
  }
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

  justify-content: center;

  margin-bottom: 24px;

  font-size: 0.75rem;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb span {
  color: var(--color-gold);
}

/* =========================================================
   TABLET — 1024PX
========================================================= */

@media (max-width: 1024px) {

  :root {
    --header-height: 72px;
  }

  .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .nav-desktop {
    gap: 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1.2fr);

    gap: 55px;
  }

  .contact-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    row-gap: 45px;
  }

  .home-portfolio-grid {
    width: min(100% - 40px, 760px);

    column-gap: 22px;

    row-gap: 45px;
  }

  .core-service-card {
    padding: 44px 36px 40px;
  }
}

/* =========================================================
   TABLET / LARGE MOBILE — 900PX
========================================================= */

@media (max-width: 900px) {

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .logo {
    width: 150px;
    height: 60px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .split-image {
    max-width: 650px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* =========================================================
   MOBILE — 768PX
========================================================= */

@media (max-width: 768px) {

  :root {
    --header-height: 64px;
  }

  html {
    font-size: 14px;
  }

  body {
    line-height: 1.65;
  }

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

  section {
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(1.85rem, 6vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.55rem, 4vw, 2.25rem);
  }

  h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
  }

  .lead {
    font-size: 0.98rem;
  }

  /* =====================================================
     MOBILE HEADER
  ===================================================== */

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .logo {
    width: 135px;
    height: 50px;
  }

  /* =====================================================
     MOBILE MENU LABEL
  ===================================================== */

  .mobile-menu-label {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 6px;

    width: 44px;
    height: 44px;

    padding: 8px;

    cursor: pointer;

    z-index: 1002;
  }

  .mobile-menu-label span {
    display: block;

    width: 28px;

    height: 1.5px;

    background: #FFFFFF;

    transition:
      transform var(--transition),
      opacity var(--transition),
      background var(--transition);
  }

  body:has(.hero) .site-header.scrolled .mobile-menu-label span {
    background: var(--color-text);
  }

  body:not(:has(.hero)) .mobile-menu-label span {
    background: var(--color-text);
  }

  /* Checkbox menu animation */
  #mobile-menu-toggle:checked ~ .site-header .mobile-menu-label span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  #mobile-menu-toggle:checked ~ .site-header .mobile-menu-label span:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu-toggle:checked ~ .site-header .mobile-menu-label span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  #mobile-menu-toggle:checked ~ .nav-mobile {
    transform: translateX(0);

    visibility: visible;

    pointer-events: auto;
  }

  /* =====================================================
     MOBILE NAV
  ===================================================== */

  .nav-mobile {
    top: var(--header-height);

    padding: 24px 20px 40px;
  }

  .nav-mobile a {
    padding: 15px 0;

    font-size: 1.15rem;
  }

  /* =====================================================
     GRIDS
  ===================================================== */

  .grid-2,
  .grid-3,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* =====================================================
     HERO
  ===================================================== */

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 80px;
  }

  .hero h1 {
    max-width: 100%;

    margin-bottom: 18px;
    font-size: 2.3rem;
    line-height: 1.12;
  }

  .hero-actions {
    width: 100%;

    flex-direction: column;

    gap: 12px;

    margin-top: 30px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(10, 10, 11, 0.72) 0%,
        rgba(10, 10, 11, 0.42) 45%,
        rgba(10, 10, 11, 0.82) 100%
      );
  }

  .service-hero {
    min-height: 58vh;
    padding-bottom: 40px;
  }

  /* =====================================================
     PAGE HERO
  ===================================================== */

  .page-hero {
    padding:
      calc(var(--header-height) + 55px)
      0
      60px;
  }

  .page-hero .lead {
    margin-top: 16px;
  }

  /* =====================================================
     SECTION HEADER
  ===================================================== */

  .section-header {
    margin-bottom: 40px;
  }

  .section-header.center {
    padding: 0 4px;
  }

  /* =====================================================
     CORE SERVICES
  ===================================================== */

  .core-services-grid {
    grid-template-columns: 1fr;

    margin-top: 45px;

    gap: 20px;
  }

  .core-service-card {
    min-height: auto;

    padding: 42px 26px 34px;
  }

  .core-service-card:hover {
    transform: translateY(-4px);
  }

  .core-service-number {
    font-size: 3.5rem;

    top: 20px;
    right: 20px;
  }

  .core-service-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 28px;
  }

  .core-service-content h3 {
    max-width: 90%;

    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .core-service-content p {
    font-size: 0.9rem;
  }

  /* =====================================================
     STATS
  ===================================================== */

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;

    padding: 45px 0;
  }

  /* =====================================================
     PORTFOLIO
  ===================================================== */

  .home-portfolio-preview {
    padding: 75px 0 85px;
  }

  .home-portfolio-preview .section-header {
    margin-bottom: 35px;

    padding: 0 10px;
  }

  .home-portfolio-grid {
    width: calc(100% - 40px);

    grid-template-columns: 1fr;

    gap: 42px;
  }

  .home-portfolio-grid .portfolio-image-slideshow {
    aspect-ratio: 4 / 3;
  }

  .home-portfolio-grid .portfolio-project-info h3 {
    font-size: 1.3rem;
  }

  .home-portfolio-cta {
    margin-top: 40px;

    padding: 0 20px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-item.tall,
  .portfolio-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  /* =====================================================
     TESTIMONIALS
  ===================================================== */

  .testimonial-slider {
    margin-top: 35px;
  }

  .testimonial-slide {
    padding: 5px;
  }

  .testimonial-card {
    padding: 30px 22px 28px;
  }

  .quote-mark {
    font-size: 3.3rem;
  }

  .testimonial-quote {
    font-size: 1.1rem;

    line-height: 1.55;

    margin-bottom: 24px;
  }

  .testimonial-client {
    gap: 10px;
  }

  /* =====================================================
     ABOUT
  ===================================================== */

  .about-hero {
    padding: 125px 0 70px;
  }

  .about-hero h1 {
    font-size: clamp(2.7rem, 11vw, 5rem);

    line-height: 0.98;
  }

  .about-hero-glow {
    width: 400px;
    height: 400px;

    top: -250px;
    right: -200px;
  }

  /* =====================================================
     PROCESS
  ===================================================== */

  .process-steps {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .process-step {
    padding-top: 42px;
  }

  /* =====================================================
     SERVICE FEATURES
  ===================================================== */

  .service-features {
    grid-template-columns: 1fr;

    gap: 20px;

    margin-top: 40px;
  }

  .feature-item {
    padding: 26px;
  }

  /* =====================================================
     CONTACT
  ===================================================== */

  .contact-hero {
    padding-bottom: 65px;
  }

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .contact-location {
    margin-top: 55px;
    padding-top: 40px;
  }

  .contact-map {
    aspect-ratio: 4 / 3;
  }

  .contact-details {
    padding-top: 0;
  }

  .contact-intro {
    margin-bottom: 35px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .contact-process-grid {
    grid-template-columns: 1fr;

    gap: 35px;

    margin-top: 40px;
  }

  .contact-final-cta {
    padding: 75px 0;
  }

  /* =====================================================
     FORM
  ===================================================== */

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

    gap: 0;
  }

  .form-group {
    margin-bottom: 18px;
  }

  /* =====================================================
     FOOTER
  ===================================================== */

  .site-footer {
    padding: 60px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 34px;

    margin-bottom: 45px;
  }

  .footer-brand .logo {
    width: 180px;
    height: 65px;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 12px;

    text-align: center;

    padding-top: 24px;
  }

  /* =====================================================
     FILTER
  ===================================================== */

  .filter-tabs {
    gap: 8px;

    margin-bottom: 35px;
  }

  .filter-tab {
    padding: 9px 15px;

    font-size: 0.68rem;
  }

  /* =====================================================
     CTA
  ===================================================== */

  .cta-banner {
    padding: 65px 0;
  }
}

/* =========================================================
   MOBILE — 600PX
========================================================= */

@media (max-width: 600px) {

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  section {
    padding: 60px 0;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;

    gap: 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.66rem;

    letter-spacing: 0.1em;
  }

  .core-service-card {
    padding: 40px 22px 32px;
  }

  .core-service-content h3 {
    font-size: 1.8rem;
  }

  .core-service-content p {
    font-size: 0.88rem;
  }

  .core-service-tags {
    gap: 7px;

    margin-bottom: 28px;
  }

  .core-service-tags span {
    font-size: 0.63rem;

    padding: 6px 9px;
  }

  .service-card {
    padding: 28px 22px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-detail-value {
    font-size: 1.15rem;
  }

  .contact-intro {
    font-size: 0.88rem;
  }

  .about-hero {
    padding-top: 115px;
  }

  .about-hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .breadcrumb {
    font-size: 0.65rem;

    gap: 6px;
  }
}

/* =========================================================
   SMALL MOBILE — 480PX
========================================================= */

@media (max-width: 480px) {

  :root {
    --header-height: 62px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo {
    width: 125px;
    height: 46px;
  }

  .mobile-menu-label {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-label span {
    width: 26px;
  }

  .nav-mobile {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  section {
    padding: 55px 0;
  }

  /* Buttons */
  .btn {
    width: 100%;

    padding: 13px 20px;

    font-size: 0.7rem;
  }

  .btn-ghost {
    width: auto;
  }

  /* Hero */
  .hero-content {
    padding-top: calc(var(--header-height) + 15px);
  }

  .hero-actions {
    margin-top: 25px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .home-portfolio-grid {
    width: calc(100% - 20px);

    gap: 35px;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: 1fr 1fr;

    gap: 18px 12px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  /* Core service */
  .core-service-number {
    font-size: 3rem;
  }

  .core-service-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 24px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 28px 18px 25px;
  }

  .testimonial-quote {
    font-size: 1.02rem;
  }

  .client-avatar {
    width: 34px;
    height: 34px;
  }

  /* Contact */
  .contact-form {
    padding: 24px 16px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  /* Footer */
  .site-footer {
    padding-top: 50px;
  }

  .footer-brand .logo {
    width: 165px;
  }

  /* CTA */
  .contact-final-cta {
    padding: 60px 0;
  }

  .cta-banner {
    padding: 55px 0;
  }
}

/* =========================================================
   VERY SMALL DEVICES — 360PX
========================================================= */

@media (max-width: 360px) {

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .logo {
    width: 115px;
  }

  .stats-bar {
    gap: 16px 8px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .core-service-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .core-service-content h3 {
    font-size: 1.65rem;
  }

  .testimonial-card {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg {
    transform: none;
  }

  .card:hover,
  .service-card:hover,
  .core-service-card:hover {
    transform: none;
  }
}

/* =========================================================
   FOCUS STATES
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-gold);

  outline-offset: 3px;
}

/* =========================================================
   PREVENT HORIZONTAL OVERFLOW
========================================================= */

main,
section,
.site-footer,
.site-header {
  max-width: 100%;
}

iframe,
svg,
canvas {
  max-width: 100%;
}
