:root {
  --background: #ffffff;
  --foreground: #4d504a;
  --muted: #84847c;
  --border: #e1e1e1;
  --accent: #afafa5;
  --cream: #f4f0ed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Mulish", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", serif;
  color: var(--foreground);
  margin: 0;
}

a { color: inherit; text-decoration: none; }

main { flex: 1; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.site-header .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header img { display: block; height: 66px; width: auto; }

.main-nav {
  display: flex;
  gap: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.main-nav > .nav-item { position: relative; padding: 0.5rem 0; }
.main-nav > .nav-item > a:hover { color: var(--accent); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 20;
}
.nav-item:hover > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}
.dropdown a:hover { background: var(--cream); color: var(--accent); }

.sub-item { position: relative; }
.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 13rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 30;
}
.sub-item:hover > .sub-dropdown { display: block; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--foreground); margin: 5px 0; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

/* Hero */
.page-hero {
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  text-align: center;
  padding: 4rem 1.5rem;
}
.page-hero h1 { font-size: 3rem; }
.page-hero p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); }

/* Grid cards */
.card-grid {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  display: block;
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.card:hover { border-color: var(--accent); background: var(--cream); }
.card h2 { font-size: 1.5rem; }
.card .ext { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }

/* Content */
.content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.content p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 1.25rem; }
.content .cta { text-align: center; margin-top: 2.5rem; }

.btn {
  display: inline-block;
  border: 1px solid var(--foreground);
  padding: 0.75rem 2rem;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--foreground); color: #fff; }

/* Home hero */
.home-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 6rem 1.5rem;
}
.home-hero h1 { font-size: 3.5rem; }
.home-hero p { max-width: 40rem; margin: 1.5rem auto 0; color: var(--muted); font-size: 1.15rem; }
.home-hero .actions { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.home-cta { max-width: 60rem; margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
.home-cta h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.home-cta p { color: var(--muted); margin-bottom: 2rem; }

/* Contact tiles */
.contact-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .contact-tiles { grid-template-columns: repeat(3, 1fr); }
}
.contact-tiles a {
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: block;
}
.contact-tiles a:hover { border-color: var(--accent); }
.contact-tiles .label { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.25rem; }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--cream);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.site-footer .brand { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; font-size: 0.9rem; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.site-footer .copy { margin-top: 1.5rem; font-size: 0.75rem; color: var(--muted); }
