/* ==========================================================================
   CRESTFIELD SERVICES SOLUTIONS LLC - THREE-TOKEN LUXURY EDITORIAL
   Design Philosophy: Luxury Reads as Restraint
   Palette:
   - --paper: #faf8f5 (60% - Warm off-white)
   - --ink: #141414 (30% - Near-black)
   - --accent: #c86d51 (10% - Photography copper accent)
   ========================================================================== */

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

:root {
  /* Strict 3-Token Color System (Day / Light Mode) */
  --paper: #faf8f5;
  --ink: #141414;
  --accent: #c86d51;

  /* Derived Tonal Variations for Quiet UI */
  --ink-muted: #666666;
  --ink-dim: #999999;
  --paper-surface: #f3f0ea;
  --paper-border: #e2ded6;
  --ink-surface: #1e1e1e;
  --ink-border: #2d2d2d;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & Transitions */
  --radius-xs: 2px;
  --radius-sm: 4px;

  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.4s ease;
}

/* Night / Dark Mode Theme Overrides (Maintains 3-Token Luxury Restraint) */
[data-theme="dark"] {
  --paper: #121212;          /* Deep obsidian warm background */
  --ink: #faf8f5;            /* Warm off-white primary text */
  --accent: #d97d62;         /* Vibrant warm copper accent */

  --ink-muted: #a6a29a;      /* Muted light grey body subtext */
  --ink-dim: #736f68;        /* Muted dim text */
  --paper-surface: #1a1a1a;  /* Dark obsidian surface */
  --paper-border: #2c2a27;  /* Dark warm border */
  --ink-surface: #262626;
  --ink-border: #3d3a36;
}

[data-theme="dark"] .hero .btn-secondary {
  background: rgba(217, 125, 98, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[data-theme="dark"] .hero .btn-secondary:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Discreet Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--paper-border);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--paper-surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(18deg) scale(1.06);
}

[data-theme="dark"] .theme-toggle-btn {
  color: #ffca28;
  border-color: rgba(255, 202, 40, 0.3);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 202, 40, 0.12);
  border-color: #ffca28;
  color: #ffe082;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  background: var(--paper);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Utility Containers */
.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-title-wrapper {
  text-align: left;
  max-width: 800px;
  margin: 0 0 3.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.editorial-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xs);
  background: var(--paper-surface);
  border: 1px solid var(--paper-border);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.section-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 660px;
  line-height: 1.7;
}

/* ==========================================================================
   QUIET UI BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: #252525;
  border-color: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--paper-surface);
  color: var(--ink);
  border: 1px solid var(--paper-border);
}

.btn-secondary:hover {
  background: var(--paper);
  border-color: var(--ink);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition-smooth);
}

.brand-logo:hover .logo-img {
  transform: scale(1.06);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.phone-link:hover {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink-border);
}

.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../imagenrevestimiento4K.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.92;
  filter: brightness(0.88) contrast(1.02);
  z-index: 1;
  will-change: opacity, transform;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: contrast(1.1) brightness(0.65);
  z-index: 2;
  will-change: opacity;
  transition: opacity 0.8s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.25) 0%, rgba(14, 14, 14, 0.55) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 840px;
  padding: 4rem 0;
  margin: 0 auto;
  text-align: center;
}

.hero .badge {
  background: rgba(18, 18, 18, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.65);
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: #E08764;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.65);
}

.hero-description {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: #F0EDE8;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
  justify-content: center;
}

.hero .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero .btn-primary:hover {
  background: #ffffff;
  border-color: var(--accent);
}

.hero .btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--paper);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.72rem;
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

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

.services-section {
  padding: 7.5rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.service-card {
  position: relative;
  background: var(--paper-surface);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  padding: 2.25rem 1.75rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.45) 0%, rgba(14, 14, 14, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}

.service-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.service-card:hover .service-card-bg {
  opacity: 0.92;
  transform: scale(1);
}

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

.service-card:hover .service-title {
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.service-card:hover .service-desc {
  color: #F0EDE8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.service-card:hover .service-features li {
  color: #F5F2EC;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.service-card:hover .service-features li i {
  color: #E08764;
}

.service-card:hover .service-icon {
  background: rgba(18, 18, 18, 0.7);
  border-color: rgba(224, 135, 100, 0.5);
  color: #E08764;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.service-card:hover .service-link {
  color: #E08764;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.service-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xs);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
  font-weight: 300;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--paper-border);
  padding-top: 1rem;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-features li i {
  color: var(--accent);
  font-size: 0.75rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: auto;
}

.service-link:hover {
  gap: 0.75rem;
  color: var(--accent);
}

/* ==========================================================================
   BEFORE & AFTER CURTAIN SLIDER SECTION
   ========================================================================== */

.before-after-section {
  padding: 7.5rem 0;
  background: var(--paper-surface);
  border-bottom: 1px solid var(--paper-border);
}

.ba-main-showcase {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  padding: 2.25rem;
}

.ba-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--paper-border);
}

.ba-project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
}

.ba-project-info p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 300;
}

.ba-toggle-modes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper-surface);
  padding: 0.25rem;
  border: 1px solid var(--paper-border);
}

.mode-btn {
  padding: 0.4rem 0.9rem;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mode-btn.active {
  background: var(--ink);
  color: var(--paper);
}

/* Real Photography Image Container */
.ba-container {
  position: relative;
  width: 100%;
  height: clamp(400px, 65vh, 720px);
  border: 1px solid var(--paper-border);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: var(--ink);
}

.ba-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.ba-after-layer {
  z-index: 1;
}

.ba-before-layer {
  z-index: 2;
  width: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  will-change: clip-path;
}

/* Labels with smooth mode visibility */
.ba-label {
  position: absolute;
  top: 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 10;
  border-radius: var(--radius-xs);
  transition: opacity 0.3s ease;
}

.label-before {
  left: 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.label-after {
  right: 1.25rem;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  will-change: left;
  transition: opacity 0.3s ease;
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: var(--paper);
  border: 2px solid var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border-radius: var(--radius-xs);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ba-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.ba-thumb-card {
  background: var(--paper-surface);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ba-thumb-card:hover, .ba-thumb-card.active {
  border-color: var(--ink);
  background: var(--paper);
}

.ba-thumb-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.ba-thumb-text p {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   PORTFOLIO HOLDER GALLERY
   ========================================================================== */

.portfolio-section {
  padding: 7.5rem 0;
  background: var(--paper-surface);
  border-bottom: 1px solid var(--paper-border);
}

.portfolio-filter-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-xs);
  background: var(--paper);
  border: 1px solid var(--paper-border);
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.portfolio-card[data-hide-on-all="true"] {
  display: none;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}

.portfolio-media-holder {
  position: relative;
  width: 100%;
  height: 250px;
  background: var(--paper-surface);
  overflow: hidden;
}

.portfolio-media-holder .placeholder-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ebe7df;
  color: var(--ink-muted);
  position: relative;
}

.portfolio-media-holder .placeholder-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--paper);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  color: var(--ink);
  border: 1px solid var(--paper-border);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.portfolio-info p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--paper-border);
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.portfolio-meta span i {
  color: var(--accent);
  margin-right: 0.3rem;
}

/* ==========================================================================
   OBSIDIAN POP-UP MODAL STYLES
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  max-width: 1060px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  padding: 2.5rem;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--paper-surface);
  border: 1px solid var(--paper-border);
  color: var(--ink);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
}

.modal-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-main-img-box {
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--ink);
  border: 1px solid var(--paper-border);
  overflow: hidden;
}

.modal-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}

.modal-main-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
}

.modal-thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.modal-thumb-strip::-webkit-scrollbar {
  width: 4px;
}

.modal-thumb-strip::-webkit-scrollbar-track {
  background: var(--paper-surface);
}

.modal-thumb-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.modal-thumb-item {
  height: 70px;
  border: 1px solid var(--paper-border);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.modal-thumb-item.active, .modal-thumb-item:hover {
  opacity: 1;
  border-color: var(--ink);
}

.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-narrative {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-narrative h3 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

.modal-lead {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.modal-body {
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.7;
}

.modal-body.highlight {
  font-weight: 500;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.modal-key-details {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--paper-border);
}

.detail-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.modal-action-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   PRIVACY POLICY & TERMS MODAL STYLES
   ========================================================================== */

.privacy-modal-box {
  max-width: 840px;
  padding: 2.75rem 2.5rem;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.privacy-modal-header {
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.privacy-modal-body {
  overflow-y: auto;
  padding-right: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.privacy-modal-body::-webkit-scrollbar {
  width: 6px;
}

.privacy-modal-body::-webkit-scrollbar-track {
  background: var(--paper-surface);
  border-radius: 3px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section p {
  margin-bottom: 0.75rem;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.4rem;
}

.legal-section ul li::before {
  content: '•';
  position: absolute;
  left: 0.35rem;
  color: var(--accent);
  font-weight: bold;
}

.legal-callout {
  background: var(--paper-surface);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0.85rem 0;
  font-size: 0.88rem;
  color: var(--ink);
}

.privacy-modal-footer {
  border-top: 1px solid var(--paper-border);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   WHY CHOOSE CRESTFIELD LLC
   ========================================================================== */

.why-us-section {
  padding: 7.5rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--paper-surface);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  padding: 2rem;
  transition: var(--transition-fast);
}

.why-card:hover {
  border-color: var(--ink);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.why-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.6;
}

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

.contact-section {
  padding: 7.5rem 0;
  background: var(--paper-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  padding: 2.75rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--ink);
  background: var(--paper-surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method-text h5 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-method-text p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xs);
  padding: 2.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.form-status-box {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-xs);
  margin-top: 1.25rem;
  animation: fadeInStatus 0.35s ease-in-out;
}

.form-status-box.success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.45);
}

.form-status-box.error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.45);
}

@keyframes fadeInStatus {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FLOATING ACTION & FOOTER
   ========================================================================== */

.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 58px;
  height: 66px;
  background: var(--accent);
  -webkit-clip-path: polygon(50% 0%, 100% 36%, 100% 100%, 0% 100%, 0% 36%);
  clip-path: polygon(50% 0%, 100% 36%, 100% 100%, 0% 100%, 0% 36%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  -webkit-filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none !important;
  border-radius: 0 !important;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--ink);
  -webkit-clip-path: polygon(50% 0%, 100% 36%, 100% 100%, 0% 100%, 0% 36%);
  clip-path: polygon(50% 0%, 100% 36%, 100% 100%, 0% 100%, 0% 36%);
  z-index: 1;
  transition: var(--transition-smooth);
}

.floating-whatsapp i {
  position: relative;
  z-index: 2;
  color: var(--paper);
  font-size: 1.65rem;
  margin-top: 8px;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.06);
  -webkit-filter: drop-shadow(0 8px 22px rgba(200, 109, 81, 0.5));
  filter: drop-shadow(0 8px 22px rgba(200, 109, 81, 0.5));
}

.floating-whatsapp:hover::before {
  background: var(--accent);
}

.floating-whatsapp:hover i {
  color: #ffffff;
}

.footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-border);
  padding: 4.5rem 0 2.25rem;
  color: #d4d0c8;
  font-size: 0.85rem;
}

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

.footer .brand-tagline {
  color: var(--ink-muted);
}

.footer h5 {
  color: var(--paper);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.footer p {
  font-size: 0.85rem;
  color: #cccccc;
  max-width: 320px;
  font-weight: 300;
}

.footer a {
  color: #bbbbbb;
  transition: var(--transition-fast);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #aaaaaa;
}

/* Night / Dark Mode Footer High Contrast Overrides */
[data-theme="dark"] .footer {
  background: var(--ink);
  border-top: 1px solid #e2ded6;
  color: #333333;
}

[data-theme="dark"] .footer .brand-name {
  color: #141414 !important;
}

[data-theme="dark"] .footer .brand-tagline {
  color: #555555 !important;
}

[data-theme="dark"] .footer h5 {
  color: #141414 !important;
}

[data-theme="dark"] .footer p {
  color: #333333 !important;
}

[data-theme="dark"] .footer a {
  color: #222222 !important;
}

[data-theme="dark"] .footer a:hover {
  color: var(--accent) !important;
}

[data-theme="dark"] .footer-bottom {
  border-top: 1px solid #e2ded6;
  color: #444444;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS & VIEWPORT SCALING)
   ========================================================================== */

/* Mobile & Desktop Helper Utility Classes */
.quote-text-mobile {
  display: none;
}

.mobile-drawer-cta {
  display: none;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-container {
    position: relative;
  }
  .nav-actions {
    gap: 0.65rem;
  }
  .phone-link {
    display: none;
  }
  .theme-toggle-btn {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }
  .btn-nav-quote {
    padding: 0.55rem 1rem;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--paper);
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--paper-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    gap: 1.2rem;
    z-index: 999;
  }
  .nav-links.active {
    display: flex !important;
  }
  .mobile-drawer-cta {
    display: block;
    margin-top: 0.5rem;
    width: 100%;
  }
  .nav-mobile-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }
  .mobile-toggle {
    display: block;
    padding: 0.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ba-container {
    height: 440px;
  }
  .modal-content-grid {
    grid-template-columns: 1fr;
  }
  .modal-main-img-box {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0.75rem 0;
  }
  .header.scrolled {
    padding: 0.6rem 0;
  }
  .logo-img {
    height: 34px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-tagline {
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }
  .quote-text-desktop {
    display: none;
  }
  .quote-text-mobile {
    display: inline;
  }
  .btn-nav-quote {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    border-radius: var(--radius-xs);
  }
  .theme-toggle-btn {
    width: 33px;
    height: 33px;
    font-size: 0.8rem;
  }
  .ba-container {
    height: 340px;
  }
  .ba-main-showcase {
    padding: 1.25rem;
  }
  .ba-label {
    top: 0.75rem;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .brand-tagline {
    display: none;
  }
  .brand-name {
    font-size: 0.98rem;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .btn-nav-quote {
    padding: 0.4rem 0.6rem;
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   SCROLL-DRIVEN EDITORIAL ANIMATIONS (AOS / FADE-IN UP / SLIDE-IN UP)
   Luxury Restraint: Subtle 22px displacement, fluid Apple-like easing, GPU accelerated
   ========================================================================== */

/* Base Initial State for Animated Elements */
[data-aos] {
  opacity: 0;
  will-change: opacity, transform;
  transition-property: opacity, transform;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade Up / Slide Up (Subtle 22px vertical displacement) */
[data-aos="fade-up"],
[data-aos="slide-up"],
[data-aos="fade-in-up"] {
  transform: translateY(22px);
}

/* Fade In (Pure opacity) */
[data-aos="fade-in"] {
  transform: translateY(0);
}

/* Fade Right & Left */
[data-aos="fade-right"] {
  transform: translateX(-18px);
}

[data-aos="fade-left"] {
  transform: translateX(18px);
}

/* Active State Triggered by IntersectionObserver */
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Stagger Delays for Elegant Cascade */
[data-aos-delay="50"]  { transition-delay: 0.05s; }
[data-aos-delay="80"]  { transition-delay: 0.08s; }
[data-aos-delay="100"] { transition-delay: 0.10s; }
[data-aos-delay="120"] { transition-delay: 0.12s; }
[data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos-delay="180"] { transition-delay: 0.18s; }
[data-aos-delay="200"] { transition-delay: 0.20s; }
[data-aos-delay="240"] { transition-delay: 0.24s; }
[data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos-delay="260"] { transition-delay: 0.26s; }
[data-aos-delay="300"] { transition-delay: 0.30s; }
[data-aos-delay="350"] { transition-delay: 0.35s; }
[data-aos-delay="400"] { transition-delay: 0.40s; }
[data-aos-delay="450"] { transition-delay: 0.45s; }
[data-aos-delay="500"] { transition-delay: 0.50s; }
[data-aos-delay="550"] { transition-delay: 0.55s; }
[data-aos-delay="600"] { transition-delay: 0.60s; }

/* Custom Durations */
[data-aos-duration="500"] { transition-duration: 0.5s; }
[data-aos-duration="600"] { transition-duration: 0.6s; }
[data-aos-duration="700"] { transition-duration: 0.7s; }
[data-aos-duration="850"] { transition-duration: 0.85s; }

/* Seamless Hover Interaction on Animated Cards */
.service-card.aos-animate:hover {
  transform: translateY(-3px);
}

.portfolio-card.aos-animate:hover {
  transform: translateY(-3px);
}

.why-card.aos-animate:hover {
  transform: translateY(-2px);
}

/* Accessibility: Support Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

