/* ===== Custom Properties ===== */
:root {
  --color-bg: #FDF5E7;
  --color-bg-hero: #F5EDDB;
  --color-text: #2D2A26;
  --color-text-muted: #6B6560;
  --color-heading: #2E5E3E;
  --color-btn: #3A7D4A;
  --color-btn-hover: #2E6A3D;
  --color-accent-soft: #E8F5E9;
  --color-link: #3A7D4A;
  --font-logo: 'Markazi Text', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, var(--color-accent-soft) 0%, transparent 70%),
    var(--color-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="0.03"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-owl-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  margin-bottom: 0;
  margin-left: -50px;
}

.hero-logo {
  font-family: "Markazi Text", serif;
  font-size: clamp(5.4rem, 10vw, 11rem);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
}

.cta-button {
  display: inline-block;
  align-self: center;
  margin-top: 50px;
  padding: 16px 40px;
  background: var(--color-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(58, 125, 74, 0.3);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  background: var(--color-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46, 106, 61, 0.4);
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 520px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12));
}

/* Staggered hero entrance */
.hero-copy .fade-in:nth-child(1) { transition-delay: 0s; }
.hero-copy .fade-in:nth-child(2) { transition-delay: 0.08s; }
.hero-copy .fade-in:nth-child(3) { transition-delay: 0.16s; }
.hero-copy .fade-in:nth-child(4) { transition-delay: 0.24s; }
.hero-image-wrapper .fade-in { transition-delay: 0.15s; }

/* ===== Section Divider ===== */
.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(to right, transparent, rgba(45, 42, 38, 0.12), transparent);
  margin: 0;
}

/* ===== Feature Sections ===== */
.feature-section {
  padding: 100px 0;
  background: #FEF9F0;
}

.feature-section:nth-of-type(odd) {
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, var(--color-accent-soft) 0%, transparent 70%),
    #FEF9F0;
}

.feature-section:nth-of-type(even) {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, var(--color-accent-soft) 0%, transparent 70%),
    #FEF9F0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-phone {
  display: flex;
  justify-content: center;
}

/* CSS Phone Frame */
.phone-frame {
  display: flex;
  justify-content: center;
}

.phone-frame img {
  width: 260px;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.12));
}

.phone-frame-lg img {
  width: 340px;
  border-radius: 16px;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-copy h2 {
  font-family: var(--font-logo);
  font-size: clamp(3.6rem, 4vw, 5rem);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

.feature-copy p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  text-align: justify;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0 80px;
  text-align: center;
}

.contact-title {
  font-family: var(--font-logo);
  font-size: clamp(3.6rem, 4vw, 5rem);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-link {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 2px solid rgba(58, 125, 74, 0.3);
  transition: border-bottom-color 0.2s ease;
}

.contact-link:hover {
  border-bottom-color: var(--color-link);
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  background: var(--color-bg);
  text-align: center;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-link {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(107, 101, 96, 0.3);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.footer-divider {
  color: rgba(107, 101, 96, 0.4);
  margin: 0 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* ===== Policy Header ===== */
.policy-header {
  background: var(--color-heading);
  padding: 16px 0;
}

.policy-header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
}

.policy-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* ===== Policy Page ===== */
.policy-page {
  padding: 48px 0 80px;
  background: var(--color-bg);
}

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

.policy-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.policy-page h1 {
  font-family: var(--font-logo);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.policy-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.policy-page h2 {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 36px;
  margin-bottom: 12px;
}

.policy-page p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.policy-page ul {
  margin: 0 0 16px 24px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.policy-page li {
  margin-bottom: 6px;
}

.policy-page a {
  color: var(--color-link);
}

.policy-page details {
  border-bottom: 1px solid rgba(45, 42, 38, 0.08);
  padding-bottom: 8px;
}

.policy-page summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-page summary::-webkit-details-marker {
  display: none;
}

.policy-page summary::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E5E3E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.policy-page details[open] > summary::before {
  transform: rotate(90deg);
  background-color: var(--color-heading);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.policy-page summary h2 {
  margin-top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 24px 60px;
    gap: 40px;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-owl-logo {
    margin-left: 0;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .cta-button {
    align-self: center;
  }

  .hero-image {
    max-width: 320px;
  }

  .feature-section {
    padding: 60px 0;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
    text-align: center;
  }

  .feature-phone {
    order: -1;
  }

  .feature-copy {
    align-items: center;
  }

  .feature-copy h2 {
    font-size: 1.7rem;
  }

  .feature-copy p {
    max-width: 100%;
  }

  .phone-frame img {
    width: 220px;
  }

  .phone-frame-lg img {
    width: 90vw;
  }

  .contact {
    padding: 60px 0;
  }

  .contact-title {
    font-size: 1.6rem;
  }
}
