/* ── Variables ── */
:root {
  --ink: #0f0f0f;
  --cream: #faf8f4;
  --warm: #f5f0e8;
  --accent: #c8451a;
  --accent-light: #e8572a;
  --gold: #d4a843;
  --mid: #6b6560;
  --light: #c4bfb8;
  --white: #ffffff;
}

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 700; }

/* Services dropdown */
.nav-dropdown { position: relative; }

/* Trigger button styled like a nav link */
.nav-dropdown-trigger {
  background: none;
  border: none;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-dropdown-trigger::after { content: ' ↓'; font-size: 11px; }
.nav-dropdown-trigger:hover { color: var(--ink); }

.dropdown-menu {
  position: absolute;
  /* Start flush with the bottom of the nav item, use padding-top for visual gap */
  top: 100%;
  left: -20px;
  padding-top: 16px; /* visual spacing — but hover area is continuous */
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  min-width: 300px;
}

/* The visible card sits inside dropdown-menu */
.dropdown-menu-inner {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--cream); }

.dropdown-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.dropdown-item-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--mid);
}

.dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 4px 0;
}

.dropdown-coming {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  opacity: 0.5;
  cursor: default;
}

.nav-cta {
  background: var(--ink) !important;
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; }

/* ── Common Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 4px;
  border: 2px solid rgba(0,0,0,0.15);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-accent:hover { background: var(--accent-light); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: white; }

/* ── Form errors ── */
.form-error {
  display: none;
  color: #c8451a;
  font-size: 13px;
  font-weight: 500;
  background: rgba(200,69,26,0.07);
  border: 1px solid rgba(200,69,26,0.2);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.form-error.visible { display: block; }
.input-error { border-color: #c8451a !important; }

/* ── Footer ── */
footer {
  background: #080808;
  padding: 60px 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}

.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--accent); }

.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent); }

/* ── Mobile — nav + footer ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  footer { padding: 48px 24px 32px; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}
