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

:root {
  /* Sevorse Warm Eggshell Luxury Palette */
  --color-crimson: #C4271B; /* Mewar Crimson Red */
  --color-crimson-light: #E03527;
  --color-gold: #C5A059; /* Antique Gold */
  --color-gold-accent: #D4AF37; /* Palace Gold Accent */
  --color-peacock: #002244; /* Deep Sevorse Navy */
  
  /* Map legacy variables to preserve project structure while applying the heritage style */
  --color-saffron: var(--color-gold-accent);
  --color-terracotta: var(--color-crimson);
  --color-bg-light: #F2F0E4; /* Sevorse Eggshell Cream */
  --color-bg-white: #E8E6DA; /* Sevorse Warm Concrete Slate */
  --color-text-dark: #1A1A1A; /* Rich Charcoal */
  --color-border-light: rgba(26, 26, 26, 0.12);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  
  --transition-smooth: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

body.dark-mode {
  --color-bg-light: #0D0D0D; /* Sevorse Onyx Dark */
  --color-bg-white: #1A1A1A; /* Sevorse Card Surface */
  --color-text-dark: #F2F0E4; /* Eggshell Text */
  --color-border-light: rgba(242, 240, 228, 0.1);
  --color-terracotta: var(--color-gold-accent); /* Use Gold accent for contrast in dark mode */
}

/* -----------------------------------------
   Reset & Base Styles & Scroll Snapping (Deck Layout)
----------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (min-width: 1025px) {
  html {
    /* scroll-snap-type: y mandatory; */
    /* scroll-behavior: smooth; */
  }
}

html, body {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--color-text-dark);
}

h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--color-crimson);
}

body.dark-mode h1 em, body.dark-mode h2 em, body.dark-mode h3 em, body.dark-mode h4 em {
  color: var(--color-gold-accent);
}

/* Infinite Scrolling Marquee (Sevorse-inspired) */
.marquee-bar {
  width: 100%;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.marquee-track {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  gap: 30px;
  animation: marquee-scroll 30s linear infinite;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-crimson);
}

.marquee-content span {
  display: flex;
  align-items: center;
}

.marquee-content .dot {
  color: var(--color-gold-accent);
  margin-left: 30px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Fullscreen Hero with Floating Text (Sevorse-Identical Overlay) */
#hero-fullscreen {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.hero-fullscreen-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-fullscreen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1; /* Raw image */
}

/* Subtle bottom-right gradient to ensure text readability over the image without blacking it out */
#hero-fullscreen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 65%);
  z-index: 2;
  pointer-events: none;
}

.hero-fullscreen-container {
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end; /* Align text on the right side */
  align-items: center;
  padding: 0 8%;
}

.hero-floating-content {
  max-width: 650px;
  color: white;
  mix-blend-mode: difference; /* Inverts text colors over raw image background */
}

.hero-floating-content .btn-cta,
.hero-floating-content a {
  mix-blend-mode: normal !important;
  display: inline-block;
}

.hero-floating-content .hero-eyebrow {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase;
  color: white !important;
  margin-bottom: 20px;
  display: block;
  opacity: 1 !important;
}

.hero-floating-content .hero-title {
  color: white !important;
  font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
  text-align: left !important;
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-floating-content .hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: white !important;
}

.hero-floating-content .hero-description {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 35px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-meta-split {
  display: flex;
  gap: 40px;
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
}

.meta-item {
  text-align: left;
}

.meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  opacity: 0.5;
  letter-spacing: 0.15em;
  color: white;
}

.meta-value {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: white;
}

p {
  margin-bottom: 1.2rem;
  font-weight: 300;
  opacity: 0.85;
}

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

button {
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
}

/* -----------------------------------------
   Indian Heritage Decorative Patterns
----------------------------------------- */
.jaali-bg {
  /* Detailed golden Rajput Jaali pattern overlay */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20,0 L40,20 L20,40 L0,20 Z M20,2 L38,20 L20,38 L2,20 Z' fill='none' stroke='%23D4AF37' stroke-width='0.45' stroke-opacity='0.06'/%3E%3C/svg%3E");
}

.tribal-border-top {
  position: relative;
}

.tribal-border-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-accent), var(--color-crimson), var(--color-gold-accent), transparent);
  z-index: 2;
}

.tribal-border-bottom {
  position: relative;
}

.tribal-border-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-accent), var(--color-crimson), var(--color-gold-accent), transparent);
  z-index: 2;
}

/* Rajput Jharokha (Archway) image frame */
.heritage-frame {
  border-radius: 200px 200px 12px 12px; /* Traditional Palace Arch Silhouette! */
  display: block;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.heritage-frame img {
  width: 100%;
  display: block;
  border-radius: 200px 200px 12px 12px;
  transition: var(--transition-smooth);
}

.heritage-frame:hover {
  transform: translateY(-8px);
}



/* -----------------------------------------
   Dynamic Pencil-Sketch Path Drawing
----------------------------------------- */
.sketch-draw path, .sketch-draw circle, .sketch-draw rect, .sketch-draw line, .sketch-draw polygon {
  fill: none;
  stroke: var(--color-terracotta);
  stroke-width: 0.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 3.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sketch-draw.active path,
.sketch-draw.active circle,
.sketch-draw.active rect,
.sketch-draw.active line,
.sketch-draw.active polygon {
  stroke-dashoffset: 0;
}

/* -----------------------------------------
   Navigation Header
----------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  z-index: 1000;
  transition: background-color 0.4s ease, border-bottom 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Thin elegant light bottom border */
  background-color: transparent;
  color: white;
  mix-blend-mode: normal;
}

body.dark-mode .navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  height: 75px;
  background-color: rgba(242, 240, 228, 0.95); /* Luxurious sandstone backdrop */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.dark-mode .navbar.scrolled {
  background-color: rgba(13, 13, 13, 0.95); /* Luxurious dark onyx */
  border-bottom: 1px solid rgba(242, 240, 228, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 32px;
  width: auto;
  opacity: 0.95;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-logo {
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  opacity: 0.85;
  color: white;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--color-gold-accent) !important;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text-dark);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--color-crimson) !important;
}

body.dark-mode .navbar.scrolled .nav-links a:hover,
body.dark-mode .navbar.scrolled .nav-links a.active {
  color: var(--color-gold-accent) !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-gold-accent);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled .nav-links a::after {
  background-color: var(--color-crimson);
}

body.dark-mode .navbar.scrolled .nav-links a::after {
  background-color: var(--color-gold-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-cta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 12px 28px;
  border: 1px solid var(--color-gold-accent);
  background: var(--color-gold-accent);
  color: #0A0B0D !important;
  border-radius: 30px;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
  box-shadow: 0 6px 15px rgba(212, 178, 111, 0.15);
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-cta:hover {
  background: transparent;
  color: var(--color-gold-accent) !important;
  box-shadow: 0 10px 25px rgba(212, 178, 111, 0.3);
  transform: translateY(-2px);
}

body.dark-mode .btn-cta {
  background: var(--color-gold-accent);
  color: #0A0B0D !important;
}

body.dark-mode .btn-cta:hover {
  background: transparent;
  color: var(--color-gold-accent) !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  cursor: pointer;
}

.menu-bar {
  height: 1px;
  width: 100%;
  background-color: white;
  transition: var(--transition-fast);
}

.navbar.scrolled .menu-bar {
  background-color: var(--color-text-dark);
}

body.dark-mode .navbar.scrolled .menu-bar {
  background-color: var(--color-text-dark);
}

/* Internal Pages Navbar Styling (Light Mode, Unscrolled) */
body.internal-page:not(.dark-mode) .navbar:not(.scrolled) {
  color: var(--color-text-dark);
  border-bottom: 1px solid var(--color-border-light);
}

body.internal-page:not(.dark-mode) .navbar:not(.scrolled) .nav-links a {
  color: var(--color-text-dark);
}

body.internal-page:not(.dark-mode) .navbar:not(.scrolled) .menu-bar {
  background-color: var(--color-text-dark);
}

/* -----------------------------------------
   Natural Scrolling Editorial Layout
----------------------------------------- */
.editorial-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 160px 6% 120px 6%;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.editorial-section:nth-child(even) {
  background-color: var(--color-bg-white);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}

.editorial-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-gold-accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.editorial-title {
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: -0.01em;
}

.editorial-text {
  font-size: 1.05rem;
  line-height: 1.85;
  opacity: 0.8;
  margin-bottom: 30px;
}

/* Blueprint Panels */
.blueprint-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Rajput Jharokha (Archway) image frame */
.heritage-frame {
  border-radius: 200px 200px 12px 12px; /* Traditional Palace Arch Silhouette! */
  display: block;
  overflow: hidden;
  transition: var(--transition-smooth);
  margin: 0 auto;
}
.pillar-card {
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 35px 30px;
  background-color: var(--color-bg-white);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  text-decoration: none;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold-accent);
  box-shadow: 0 20px 40px rgba(212, 178, 111, 0.1);
}

.pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

/* Minimal Table Comparison */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.comp-table th, .comp-table td {
  padding: 20px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.comp-table th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-accent);
}

/* -----------------------------------------
   Service Grid Cards (Subpages)
----------------------------------------- */
.section {
  padding: 140px 6% 120px 6%;
  position: relative;
}

.section-header {
  max-width: 800px;
  margin-bottom: 80px;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold-accent);
  display: block;
  margin-bottom: 15px;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Portfolio Filter Controls */
.portfolio-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  padding: 10px 22px;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  transition: var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-gold-accent);
  color: var(--color-emerald);
  border-color: var(--color-gold-accent);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
}

.project-item {
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.project-item:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold-accent);
  box-shadow: 0 25px 50px rgba(212, 178, 111, 0.15);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-item:hover img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 11, 13, 0.95) 0%, rgba(10, 11, 13, 0.2) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  opacity: 0.9;
  transition: var(--transition-fast);
  color: white;
}

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

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 11, 13, 0.96);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

/* -----------------------------------------
   Data Visualizations (Metrics)
----------------------------------------- */
.chart-bar-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.chart-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 20px;
}

.chart-bar-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.chart-bar-bg {
  height: 4px;
  background-color: var(--color-border-light);
  position: relative;
  border-radius: 2px;
}

.chart-bar-fill {
  height: 100%;
  background: var(--color-gold-accent);
  width: 0;
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

body.dark-mode .chart-bar-fill {
  background: var(--color-gold-accent);
}

.chart-bar-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-accent);
  text-align: right;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.metric-cell {
  border-left: 2px solid var(--color-border-light);
  padding-left: 25px;
}

.metric-cell-val {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-gold-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-cell-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.75;
}

/* -----------------------------------------
   Forms & Inputs (Clean Scaffolding Style)
----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-accent);
  flex-shrink: 0;
  background-color: var(--color-bg-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.info-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.info-text h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold-accent);
  margin-bottom: 6px;
}

.info-text p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form {
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 50px;
  background-color: var(--color-bg-white);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.03);
}

body.dark-mode .contact-form {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

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

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  opacity: 0.85;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  background-color: var(--color-bg-light);
  font-family: var(--font-body);
  color: var(--color-text-dark);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-gold-accent);
  background-color: var(--color-bg-white);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 178, 111, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* -----------------------------------------
   Custom Success Toast Overlay
----------------------------------------- */
.toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 11000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.toast-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.toast-box {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 50px;
  max-width: 480px;
  text-align: center;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.toast-overlay.active .toast-box {
  transform: translateY(0);
}

.toast-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: var(--color-gold-accent);
  font-size: 1.4rem;
  background-color: rgba(212, 178, 111, 0.05);
}

/* -----------------------------------------
   Testimonials
----------------------------------------- */
.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  min-width: 100%;
  text-align: center;
  padding: 0 40px;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.45;
  margin-bottom: 30px;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-dark);
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold-accent);
  letter-spacing: 0.2em;
}

/* -----------------------------------------
   Footer
----------------------------------------- */
.footer {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: 120px 6% 50px 6%;
  border-top: 1px solid var(--color-border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 2rem;
  color: var(--color-gold-accent);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold-accent);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-col ul a {
  opacity: 0.75;
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--color-gold-accent);
  opacity: 1;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer-bottom a {
  color: var(--color-gold-accent);
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* -----------------------------------------
   Scroll Entrance Reveal Animation
----------------------------------------- */
/* -----------------------------------------
   Scroll Entrance Reveal Animation
----------------------------------------- */
.gsap-loaded .reveal,
.gsap-loaded .reveal-left,
.gsap-loaded .reveal-right {
  opacity: 0;
}

/* Fallback transitions when GSAP is not active */
body:not(.gsap-loaded) .reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body:not(.gsap-loaded) .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body:not(.gsap-loaded) .reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body:not(.gsap-loaded) .reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

body:not(.gsap-loaded) .reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body:not(.gsap-loaded) .reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* -----------------------------------------
   Interactive Paint Package Calculator
----------------------------------------- */
.calc-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.03);
}

body.dark-mode .calc-card {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.calc-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 15px;
}

.calc-tab-btn {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 22px;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  color: var(--color-text-dark);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.calc-tab-btn.active {
  opacity: 1;
  background-color: var(--color-gold-accent);
  color: var(--color-emerald);
  border-color: var(--color-gold-accent);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.result-column {
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  transition: var(--transition-smooth);
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-column.highlight {
  border-color: var(--color-gold-accent);
  background-color: var(--color-bg-white);
  box-shadow: 0 15px 35px rgba(212, 178, 111, 0.12);
}

.result-column h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.result-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.result-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-gold-accent);
  font-weight: 600;
  margin: 5px 0 15px 0;
}

.result-specs {
  font-size: 0.8rem;
  text-align: left;
  list-style: none;
  opacity: 0.8;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-specs li {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding-bottom: 6px;
}

body.dark-mode .result-specs li {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Layout Grids */
.disciplines-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.projects-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

/* -----------------------------------------
   Mobile Lock & Touch Baseline Enhancements
----------------------------------------- */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Table Responsive Wrapper & Touch Scroll */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 25px 0;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--color-bg-light);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--color-gold-accent);
  border-radius: 3px;
}

.comp-table {
  min-width: 600px;
}

/* Touch Targets & UI Controls Accessibility */
.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--color-gold-accent);
  color: var(--color-gold-accent);
}

/* -----------------------------------------
   Comprehensive Responsive Breakpoints
----------------------------------------- */

/* Tablet & Mobile Layout Adaptations (<= 991px) */
@media (max-width: 991px) {
  .navbar {
    height: 70px;
    padding: 0 20px;
    mix-blend-mode: normal !important;
    background-color: var(--color-bg-light) !important;
    border-bottom: 1px solid var(--color-border-light) !important;
    color: var(--color-text-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  }

  body.dark-mode .navbar {
    background-color: var(--color-bg-light) !important;
    border-bottom: 1px solid rgba(242, 240, 228, 0.08) !important;
  }

  .nav-logo {
    height: 26px !important;
  }

  .menu-btn {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .menu-bar {
    background-color: var(--color-text-dark) !important;
  }

  /* Mobile Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border-light);
    flex-direction: column;
    padding: 40px 24px;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
  }

  body.dark-mode .nav-links {
    background-color: var(--color-bg-light);
    border-bottom: 1px solid rgba(252, 250, 240, 0.08);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    color: var(--color-text-dark) !important;
    font-size: 0.95rem !important;
    padding: 12px 0 !important;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-crimson) !important;
  }

  body.dark-mode .nav-links a:hover,
  body.dark-mode .nav-links a.active {
    color: var(--color-gold-accent) !important;
  }

  .nav-links a::after {
    display: none;
  }

  /* Editorial & General Grid Stacking */
  .editorial-section {
    padding: 90px 5% 60px 5%;
    min-height: auto;
  }

  .editorial-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
    direction: ltr !important;
    justify-items: center !important;
  }

  .editorial-grid > div,
  .contact-grid > div {
    direction: ltr !important;
    width: 100% !important;
  }

  .blueprint-panel {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 25px auto 0 auto !important;
    text-align: center !important;
  }

  .heritage-frame {
    margin: 0 auto !important;
    display: block !important;
  }

  .heritage-frame img {
    margin: 0 auto !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .calc-results {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .disciplines-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .projects-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .form-row-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  /* Hero Adaptations */
  #hero-fullscreen {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-fullscreen-container {
    align-items: flex-end;
    padding: 110px 6% 60px 6%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-floating-content {
    max-width: 100%;
    mix-blend-mode: normal !important;
  }

  .hero-floating-content .hero-title,
  .hero-floating-content .hero-title em {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  }

  .hero-floating-content .hero-description {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  }

  /* Subpage Hero Header Adjustments */
  #about-hero,
  #services-hero,
  #projects-hero,
  #contact-hero,
  #privacy-hero,
  #terms-hero {
    padding-top: 110px !important;
    padding-bottom: 40px !important;
    min-height: 35vh !important;
  }
}

/* Mobile Portrait Breakpoint (<= 768px) */
@media (max-width: 768px) {
  /* Dynamic Typography Sizing */
  .editorial-title,
  .section-title,
  h1,
  h2 {
    font-size: clamp(2rem, 6vw, 2.6rem) !important;
    line-height: 1.25 !important;
  }

  h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
  }

  h4 {
    font-size: clamp(1.1rem, 3vw, 1.35rem) !important;
  }

  .testimonial-text {
    font-size: 1.35rem !important;
    line-height: 1.55 !important;
    padding: 0 10px;
  }

  /* Prevent iOS input auto-zoom by setting 16px minimum font size */
  .form-control,
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Section Spacing */
  .section {
    padding: 70px 20px 50px 20px !important;
  }

  /* Portfolio Grid */
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
  }

  /* Metrics Section Stacking */
  .metrics-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
  }

  .metric-cell {
    border-left: none !important;
    border-bottom: 2px solid var(--color-border-light) !important;
    padding-left: 0 !important;
    padding-bottom: 15px !important;
  }

  .metric-cell:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  body.dark-mode .metric-cell {
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Navbar CTA Button adaptation */
  .navbar .btn-cta {
    padding: 8px 16px !important;
    font-size: 0.65rem !important;
  }
}

/* Small Smartphone Breakpoint (<= 480px) */
@media (max-width: 480px) {
  /* Hide Navbar CTA button on very narrow screens to eliminate logo squishing */
  #nav-cta-btn {
    display: none !important;
  }

  .navbar {
    padding: 0 16px !important;
  }

  .nav-logo {
    height: 22px !important;
  }

  .pre-logo {
    height: 38px !important;
  }

  /* Compact Section & Form Padding */
  .section,
  .editorial-section {
    padding: 55px 16px 35px 16px !important;
  }

  .calc-card,
  .contact-form,
  .toast-box {
    padding: 24px 16px !important;
  }

  .calc-tabs {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .calc-tab-btn {
    padding: 8px 14px !important;
    font-size: 0.68rem !important;
    width: 100%;
    text-align: center;
  }

  .portfolio-grid,
  .calc-results,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .project-overlay {
    padding: 20px !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .hero-meta-split {
    flex-direction: column;
    gap: 15px;
  }

  .lightbox-content {
    max-width: 95vw;
    max-height: 85vh;
  }

  .lightbox-close {
    top: -38px;
    right: 5px;
    font-size: 2rem;
  }
}

/* Standard Policy Pages Override */
.policy-page,
.policy-page html {
  scroll-snap-type: none !important;
}

.policy-page .section {
  scroll-snap-align: none !important;
  height: auto !important;
  min-height: auto !important;
  padding: 120px 6% 60px 6% !important;
}

/* Preloader Styling */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg-light);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.pre-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  display: flex;
  gap: 0.05em;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text-dark);
}

.pre-char {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
}

.pre-line-wrap {
  width: 150px;
  height: 1px;
  background: rgba(26, 26, 26, 0.12);
  margin: 25px auto 15px;
  overflow: hidden;
}

body.dark-mode .pre-line-wrap {
  background: rgba(242, 240, 228, 0.1);
}

.pre-line {
  width: 0%;
  height: 100%;
  background: var(--color-crimson);
}

.pre-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  color: var(--color-text-dark);
}

