/* ==========================================================================
           DESIGN TOKENS & SYSTEM VARIABLES
           ========================================================================== */
:root {
  --bg-warm: #faf9f6;
  --bg-card: #ffffff;
  --bg-subtle: #f3f1ec;
  --bg-dark: #121212;

  --text-main: #1c1b1a;
  --text-muted: #66635b;
  --text-light: #949085;
  --text-dark-bg: #eae8e3;

  --border-subtle: #e6e3db;
  --border-dark: #2a2927;

  --accent-blue: #1e40af;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-subtle: #eff6ff;

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Reset & Global Base Styles */
body {
  background-color: var(--bg-warm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-warm);
}
::-webkit-scrollbar-thumb {
  background: #d4d0c5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8b3a5;
}

/* Focus Style for Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* Section Layout Wrappers */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 992px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.hairline-divider {
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Buttons & CTAs */
.btn-editorial-primary {
  background-color: var(--text-main);
  color: #ffffff;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.btn-editorial-primary:hover {
  background-color: #33312e;
  color: #ffffff;
  border-color: #33312e;
  transform: translateY(-2px);
}

.btn-editorial-secondary {
  background-color: transparent;
  color: var(--text-main);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.btn-editorial-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #c8c4b8;
  color: var(--text-main);
}

.btn-editorial-accent {
  background-color: var(--accent-blue);
  color: #ffffff;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.btn-editorial-accent:hover {
  background-color: var(--accent-blue-hover);
  color: #ffffff;
  border-color: var(--accent-blue-hover);
  transform: translateY(-2px);
}

/* Header Navigation */
.navbar-editorial {
  background-color: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 227, 219, 0.7);
  transition: var(--transition-smooth);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* Hero Visual Preview Artwork */
.hero-mockup-wrapper {
  position: relative;
  padding: 1rem;
}
.mockup-window {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px -15px rgba(28, 27, 26, 0.08);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.mockup-header {
  background: #f4f2eb;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0ccc0;
}
.dot-red {
  background: #ed6a5e;
}
.dot-yellow {
  background: #f4bf4f;
}
.dot-green {
  background: #61c554;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #f0f7ed;
  border: 1px solid #d1e7cd;
  border-radius: 50px;
  font-size: 0.8125rem;
  color: #276720;
  font-weight: 500;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Project Showcase Cards & Layouts */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.06);
}

.project-img-container {
  position: relative;
  background: var(--bg-subtle);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  backdrop-filter: blur(4px);
}

/* Custom Vector Mockups inside Project Previews */
.mockup-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}
.project-card:hover .mockup-canvas {
  transform: scale(1.03);
}

/* Services Cards */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  height: 100%;
}
.service-card:hover {
  border-color: var(--accent-blue);
  background: #ffffff;
  transform: translateY(-3px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon {
  background: var(--accent-blue-subtle);
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border: 2px solid var(--accent-blue);
  box-shadow: 0 12px 30px -10px rgba(30, 64, 175, 0.12);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
}
.price-val {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--text-main);
}

/* Process Numbers */
.process-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: #d6d2c4;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* FAQ Accordion Styling */
.accordion-editorial .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
}
.accordion-editorial .accordion-button {
  background: transparent;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 1.5rem 0;
  box-shadow: none;
}
.accordion-editorial .accordion-button:not(.collapsed) {
  color: var(--accent-blue);
  background: transparent;
}
.accordion-editorial .accordion-button::after {
  filter: grayscale(1);
}
.accordion-editorial .accordion-body {
  padding: 0 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Dark Closing Contact Block */
.contact-section-dark {
  background-color: var(--bg-dark);
  color: var(--text-dark-bg);
  border-radius: var(--radius-lg);
}
.contact-section-dark .form-control,
.contact-section-dark .form-select {
  background-color: #1a1918;
  border: 1px solid #33312e;
  color: #ffffff;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
}
.contact-section-dark .form-control:focus,
.contact-section-dark .form-select:focus {
  background-color: #22201d;
  border-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: none;
}
.contact-section-dark .form-label {
  color: #b8b3a8;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Footer Styling */
footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-warm);
}

/* Modal Customizations */
.modal-content {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-warm);
}

/* Print and Accessibility Adjustments */
@media (prefers-reduced-motion: reduce) {
  *,
  ::after,
  ::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.section-lead {
  max-width: 40rem;
}

/* Dark Closing Contact Block */
.contact-section-dark {
  position: relative;
  background:
    radial-gradient(
      600px circle at 0% 0%,
      rgba(30, 64, 175, 0.28),
      transparent 60%
    ),
    radial-gradient(
      500px circle at 100% 100%,
      rgba(14, 165, 233, 0.12),
      transparent 60%
    ),
    var(--bg-dark);
  color: var(--text-dark-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.contact-lead {
  color: #a8a398;
  font-size: 1.125rem;
  max-width: 28rem;
}

/* Dark variant of the availability badge */
.status-badge-dark {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* Contact info rows */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.contact-item small {
  display: block;
  color: #7d786d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.contact-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}
a.contact-item:hover .contact-icon {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Form panel */
.form-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}

.contact-section-dark .form-label {
  color: #cfcabe;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.contact-section-dark .form-control,
.contact-section-dark .form-select {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid #3a3835;
  color: #fff;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}
.contact-section-dark .form-control:hover,
.contact-section-dark .form-select:hover {
  border-color: #55524c;
}
.contact-section-dark .form-control:focus,
.contact-section-dark .form-select:focus {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

/* Readable placeholders (fixes the invisible text) */
.contact-section-dark .form-control::placeholder {
  color: #8a867b;
  opacity: 1;
}
/* Select placeholder shown while nothing is chosen */
.contact-section-dark .form-select:has(option[value=""]:checked) {
  color: #8a867b;
}
.contact-section-dark .form-select option {
  background: #1a1918;
  color: #fff;
}
.contact-section-dark .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a8a398' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Submit button */
.btn-send i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-send:hover i {
  transform: translateX(4px);
}
.btn-send:hover {
  box-shadow: 0 10px 25px -8px rgba(59, 130, 246, 0.55);
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: #7d786d;
}

@media (max-width: 575.98px) {
  .form-panel {
    padding: 1.25rem;
  }
}

.nl-wrap {
  display: none !important;
}

#nl-badge-frame {
  display: none !important;
}

.form-select,
.form-select option {
  cursor: pointer;
}

.g-recaptcha {
  transform-origin: left top;
}
@media (max-width: 360px) {
  .g-recaptcha {
    transform: scale(0.85);
  }
}
