/* ============================================================
   Ardent Vale Holdings — Main Stylesheet
   Fonts loaded via Google Fonts in head.php
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --background:        #ffffff;
  --foreground:        #1a1a1a;
  --primary:           #171717;
  --primary-fg:        #fafafa;
  --secondary:         #f5f5f5;
  --secondary-fg:      #1a1a1a;
  --muted-foreground:  #595959;
  --border:            #e5e5e5;
  --card:              #ffffff;
  --card-fg:           #1a1a1a;
  --destructive:       #dc2626;
  --radius:            0.5rem;
  --shadow-sm:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:         0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:         0 10px 28px rgba(0,0,0,.12);
  --transition:        all 0.3s ease;
  --nav-height:        80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  font-weight: 600;
  color: var(--foreground);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { color: var(--foreground); }

/* ── Layout Utilities ───────────────────────────────────────── */
.container-custom {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px)  { .container-custom { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container-custom { padding-inline: 3rem; } }

.section-padding {
  padding-block: 4rem;
}
@media (min-width: 768px)  { .section-padding { padding-block: 5rem; } }
@media (min-width: 1024px) { .section-padding { padding-block: 6rem; } }

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.min-h-screen { min-height: 100vh; }
.text-center  { text-align: center; }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }

@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Spacing helpers ────────────────────────────────────────── */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

.pt-8  { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-20 { padding-top: calc(var(--nav-height) + 1rem); } /* clear fixed header */
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mx-auto { margin-inline: auto; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* ── Typography helpers ─────────────────────────────────────── */
.text-muted    { color: var(--muted-foreground); }
.text-sm       { font-size: 0.875rem; }
.text-xs       { font-size: 0.75rem; }
.text-lg       { font-size: 1.125rem; }
.text-xl       { font-size: 1.25rem; }
.text-2xl      { font-size: 1.5rem; }
.font-light    { font-weight: 300; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.tracking-wide { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.75; }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--foreground);
  white-space: nowrap;
}
.site-logo:hover { color: var(--primary); }

/* Desktop nav links */
.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.5rem;
  transition: color 0.2s;
}
.nav-toggle:hover { color: var(--primary); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  background: var(--background);
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  padding-inline: 1.5rem;
  padding-block: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); font-weight: 600; }

/* ── Page wrapper ───────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

/* ── Sections & Backgrounds ─────────────────────────────────── */
.bg-white     { background: var(--background); }
.bg-secondary { background: var(--secondary); }
.bg-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ebebeb 100%);
  position: relative;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 8rem 4rem;
  text-align: center;
}

.hero-section h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--muted-foreground);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.principles-grid {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
}
@media (min-width: 768px) { .principles-grid { grid-template-columns: repeat(3, 1fr); } }

.principle-item {
  text-align: center;
}
.principle-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.principle-item p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 2.5rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover {
  background: #111;
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--secondary);
}
.btn svg { width: 1.2rem; height: 1.2rem; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted-foreground); line-height: 1.7; }

/* ── Section headings ───────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Page header band ───────────────────────────────────────── */
.page-header {
  padding-block: 5rem;
  text-align: center;
  background: var(--background);
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p  { color: var(--muted-foreground); font-size: 1.2rem; }

/* ── Contact form ───────────────────────────────────────────── */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
@media (min-width: 768px) { .form-card { padding: 3rem; } }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  font-size: 0.9rem;
}
.req { color: var(--destructive); }

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--foreground);
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,23,23,.08);
}
.form-control.error { border-color: var(--destructive); }

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

.field-error {
  color: var(--destructive);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.contact-alt p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.contact-alt a {
  color: var(--primary);
  text-decoration: underline;
}

/* Success panel */
.success-panel {
  text-align: center;
  padding: 4rem 2rem;
}
.success-panel svg {
  width: 4rem; height: 4rem;
  color: #16a34a;
  margin: 0 auto 1.5rem;
}
.success-panel h2 { margin-bottom: 1rem; }
.success-panel p  { color: var(--muted-foreground); font-size: 1.1rem; margin-bottom: 2rem; }

/* ── Policy / Terms pages ───────────────────────────────────── */
.policy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
@media (min-width: 768px) { .policy-card { padding: 3rem; } }

.policy-section + .policy-section { margin-top: 2rem; }
.policy-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.policy-section p  { color: var(--muted-foreground); line-height: 1.75; }

.policy-intro {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* ── About page philosophy prose ────────────────────────────── */
.philosophy-prose p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  max-width: 56rem;
}
.philosophy-prose p + p { margin-top: 1.25rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  text-align: center;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--foreground); }
.footer-links .sep { color: var(--border); }
.footer-copy {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ── AOS overrides ──────────────────────────────────────────── */
[data-aos] { will-change: transform, opacity; }
