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

:root {
  --color-bg: #f8f7f5;
  --color-surface: #fff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #c9a227;
  --color-accent-dark: #a8841a;
  --color-border: #e8e6e3;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.1);
  --glow: 0 0 24px rgba(0, 0, 0, 0.06);
  --glow-hover: 0 0 32px rgba(0, 0, 0, 0.1);
  --glow-accent: 0 0 28px rgba(201, 162, 39, 0.25);
  --glow-accent-hover: 0 0 40px rgba(201, 162, 39, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: url("images/background.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 1rem 2.5rem;
  padding-top: 3.25rem;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(248, 247, 245, 0.78);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: linear-gradient(180deg, rgba(248, 247, 245, 0.92) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav--scrolled {
  background: rgba(248, 247, 245, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
}

.nav-toggle::before {
  width: 1.25rem;
  margin-bottom: 6px;
}

.nav-toggle::after {
  width: 1rem;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 2.75rem;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .nav--open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links li:last-child {
    border-bottom: 0;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background-image: linear-gradient(to bottom, rgba(248, 247, 245, 0.88), rgba(248, 247, 245, 0.82)), url("https://images.unsplash.com/photo-1637502875124-eb4a9843a2fa?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
}

.hero-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.btn--hero {
  margin-top: 1rem;
}

.tagline {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.stat {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.stat strong {
  font-weight: 500;
  color: var(--color-text);
}

/* Sections */
.section {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--color-border);
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section--alt {
  background: rgba(255, 255, 255, 0.5);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.service-item {
  text-align: center;
  padding: 1rem 0.5rem;
}

.service-icon {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.service-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.service-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.45;
}

.section-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
  justify-content: center;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm), var(--glow);
  touch-action: manipulation;
}

.card:hover {
  border-color: #ddd;
  box-shadow: var(--shadow-md), var(--glow-hover);
}

.card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm), var(--glow);
}

/* Testimonials */
.testimonials-list {
  max-width: 40rem;
  margin: 0 auto;
}

.testimonial-item {
  margin: 0 0 0.5rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--color-border);
  font-style: normal;
}

.testimonial-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0 0 0.4rem;
  font-style: italic;
}

.testimonial-attribution {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* Pricing cards */
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  max-width: 42rem;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md), var(--glow-accent), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.pricing-card--featured:hover {
  box-shadow: var(--shadow-lg), var(--glow-accent-hover), 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.badge {
  position: absolute;
  top: -0.5rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}

.plan-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.plan-price {
  margin: 0 0 1rem;
}

.plan-price-amount {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.pricing-card--featured .plan-price-amount {
  color: var(--color-accent-dark);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.plan-features li {
  padding: 0.3rem 0;
  padding-left: 1.35rem;
  position: relative;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-text);
  border-radius: 50%;
}

.pricing-card--featured .plan-features li::before {
  background: var(--color-accent);
}

.btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-surface);
}

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

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

/* Contact section */
.section--contact {
  text-align: center;
}

.contact-block {
  max-width: 20rem;
  margin: 0 auto;
}

.contact-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.contact-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  transition: color 0.15s ease;
}

.contact-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.contact-link:last-child {
  margin-bottom: 0;
}
