@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #1a1a1a;
  --accent: #c9a876;
  --bg: #0b0b0b;
  --surface: #161616;
  --text: #f2f2f5;
  --muted: #8a8a90;
  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-glow: 0 0 40px rgba(201, 168, 118, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6);
  --transition-base: 0.3s ease;
  --container-max: 1200px;
  --header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  height: var(--header-height);
}

.header.scrolled {
  background: rgba(11, 11, 11, 0.97);
  border-bottom-color: var(--primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

/* ============================================
   NAVIGATION
   ============================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem;
    border-top: 1px solid var(--muted);
  }
}

/* ============================================
   PHOTO BACKGROUND OVERLAY (CRITICAL)
   ============================================ */
.has-photo-bg {
  position: relative;
  isolation: isolate;
}

.has-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85));
  z-index: 0;
}

.has-photo-bg > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 4rem 1.25rem;
}

.hero-section .hero-content {
  max-width: 720px;
}

.hero-section h1 {
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-section p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: #d4b88a;
  color: var(--bg);
  box-shadow: 0 0 60px rgba(201, 168, 118, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--muted);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.cta-button {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-glow);
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.cta-button:hover {
  background: #d4b88a;
  color: var(--bg);
  box-shadow: 0 0 60px rgba(201, 168, 118, 0.5);
  transform: translateY(-2px);
}

.form-submit {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-glow);
  width: 100%;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: #d4b88a;
  color: var(--bg);
  box-shadow: 0 0 60px rgba(201, 168, 118, 0.5);
}

/* ============================================
   SECTIONS - GENERAL
   ============================================ */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ============================================
   CARD SYSTEM
   ============================================ */
.card {
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card-glow {
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-glow:hover {
  box-shadow: var(--shadow-card-hover), 0 0 60px rgba(201, 168, 118, 0.4);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  padding: 2rem;
  transition: all var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover), 0 0 60px rgba(201, 168, 118, 0.45);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 118, 0.1);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 0.925rem;
  margin-bottom: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.service-card {
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  border-left: 3px solid var(--accent);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  flex-grow: 1;
  font-size: 0.925rem;
}

.service-card .service-link {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border-radius: 0;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.75;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

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

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonial-section {
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-quote::before {
  content: "\201C";
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(138, 138, 144, 0.2);
  padding-top: 1.25rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: cover;
  background: var(--primary);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section .card {
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-row .contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--accent);
  line-height: 1.4;
}

.contact-row .contact-text {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-row .contact-text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ============================================
   FORMS
   ============================================ */
.contact-form {
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 118, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

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

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

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   POLICY PAGES
   ============================================ */
.policy-page {
  padding: 4rem 0;
}

.policy-page .container {
  max-width: 800px;
}

.policy-page h1 {
  margin-bottom: 0.5rem;
}

.policy-page .policy-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.policy-page h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(138, 138, 144, 0.2);
}

.policy-page h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-page p,
.policy-page li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.policy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-page ul li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  list-style: disc;
}

.policy-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  border-top: 1px solid rgba(138, 138, 144, 0.15);
  padding: 4rem 0 2rem;
  color: var(--muted);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  border-top: 1px solid rgba(138, 138, 144, 0.15);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--muted);
  font-size: 1.2rem;
  transition: color var(--transition-base);
}

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

/* ============================================
   COOKIE POPUP
   ============================================ */
.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 420px;
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  z-index: 9999;
  border: 1px solid rgba(138, 138, 144, 0.2);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 768px) {
  .cookie-popup {
    left: auto;
  }
}

.cookie-popup.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  visibility: hidden;
}

.cookie-popup h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cookie-popup p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-buttons .btn-primary,
.cookie-buttons .btn-secondary {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 1px solid var(--muted);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(201, 168, 118, 0.3);
  color: var(--text);
}

/* ============================================
   ADDITIONAL RESPONSIVE REFINEMENTS
   ============================================ */
@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }

  .hero-section {
    padding: 6rem 2rem;
  }

  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 7rem 0;
  }

  .hero-section {
    min-height: 85vh;
    padding: 8rem 2rem;
  }
}