@import url('https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #000000;
  --accent: #0044FF;
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --text: #000000;
  --muted: #666666;
  --radius: 4px;
  --header-height: 72px;
  --container-max: 1200px;
  --section-padding: 4rem 1.5rem;
  --border-color: #E0E0E0;
  --transition-speed: 0.25s;
}

*,
*::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: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

.header.scrolled {
  background: var(--bg);
  border-bottom-color: var(--primary);
}

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

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

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

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

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
  transition: transform var(--transition-speed) ease,
              opacity var(--transition-speed) ease;
}

.mobile-menu-toggle span + span {
  margin-top: 4px;
}

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

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

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

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

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

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

/* ============================================
   PHOTO BACKGROUND OVERLAY PATTERN
   ============================================ */

.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;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

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

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

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

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

/* ============================================
   FEATURES SECTION
   ============================================ */

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

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

.services-section {
  background: var(--surface);
}

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

.service-card {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--transition-speed) ease;
}

.service-card:hover {
  border-color: var(--accent);
}

.service-card .service-number {
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.service-card p {
  font-size: 0.95rem;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

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

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

.stats-section {
  background: var(--primary);
  color: var(--bg);
}

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

.stat-item h2 {
  color: var(--accent);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

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

.testimonial-section {
  position: relative;
  isolation: isolate;
  padding: var(--section-padding);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.testimonial-section > * {
  position: relative;
  z-index: 1;
}

.testimonial-section .section-header h2 {
  color: var(--bg);
}

.testimonial-section .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.testimonial-card .quote::before {
  content: "\201C";
  font-size: 2rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

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

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

.cta-section {
  background: var(--surface);
  text-align: center;
  padding: 5rem 1.5rem;
}

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

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

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

.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition-speed) ease,
              color var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

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

.btn-secondary {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--primary);
}

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

.cta-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

.form-submit {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  width: 100%;
}

.form-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:active,
.btn-secondary:active,
.cta-button:active,
.form-submit:active {
  transform: scale(0.98);
}

/* ============================================
   FORMS
   ============================================ */

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

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

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

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

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

.contact-row .details strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-row .details span,
.contact-row .details a {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-row .details a:hover {
  color: var(--accent);
}

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

.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 1.5rem 2rem;
}

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

.footer-col h4 {
  color: var(--bg);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

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

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

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links 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(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  z-index: 9999;
  transition: opacity var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.cookie-popup.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
}

.cookie-popup h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

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

.cookie-popup-actions .btn-primary {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
}

.cookie-popup-actions .btn-secondary {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text);
  border-color: var(--muted);
}

.cookie-popup-actions .btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
}

/* ============================================
   POLICY PAGES
   ============================================ */

.policy-page {
  padding: 4rem 1.5rem;
}

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

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

.policy-page .last-updated {
  font-size: 0.9rem;
  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 var(--border-color);
}

.policy-page h3 {
  font-size: 1.2rem;
  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 {
  list-style: disc;
  margin-bottom: 0.5rem;
}

/* ============================================
   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; }

.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;
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   TABLET BREAKPOINT (768px+)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --section-padding: 5rem 2rem;
  }

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

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

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

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

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

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

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

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-popup {
    left: auto;
  }
}

/* ============================================
   DESKTOP BREAKPOINT (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  :root {
    --section-padding: 6rem 2rem;
  }

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

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

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

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

/* ============================================
   MOBILE HAMBURGER MENU (max-width: 767px)
   ============================================ */

@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);
  }

  .nav-menu.open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.open a:last-child {
    border-bottom: none;
  }

  .hero-section {
    min-height: 60vh;
    padding: 4rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   PREFERS 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;
  }

  .card:hover {
    transform: none;
  }

  .btn-primary:active,
  .btn-secondary:active,
  .cta-button:active,
  .form-submit:active {
    transform: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .header,
  .footer,
  .cookie-popup,
  .mobile-menu-toggle,
  .cta-section {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 2rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}