/* ============================================================
   TVR LAW — Stylesheet
   ------------------------------------------------------------
   Brand: Tineke van Rooyen Attorneys (Jeffreys Bay)
   Style: refined serif, deep navy + cream, business-card layout
   Author: M Herbst, 2026
   ------------------------------------------------------------
   Edit the variables in the :root block at the top to tweak
   the entire colour palette in one place.
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* ----- Brand palette ----- */
  --navy:             #0d2138;
  --navy-deep:        #081729;
  --logo-blue:        #1e2a6b;
  --cream:            #fbf5e6;
  --cream-bg:         #faf7f0;
  --button-blue:      #b3cee9;
  --button-blue-hover:#9bbfdf;
  --shield-gray:      #9ca3af;
  --border:           rgba(13, 33, 56, 0.08);

  /* ----- Typography ----- */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* ----- Spacing rhythm ----- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}


/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.6;
  background: var(--cream-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}


/* ============================================================
   3. SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-xs) var(--space-sm);
  background: var(--navy);
  color: var(--cream);
}


/* ============================================================
   4. HEADER  —  centred logo + wordmark + contact text
   ============================================================ */
.header {
  background: #ffffff;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--logo-blue);
}

.logo-mark {
  height: 80px;
  width: auto;
  display: block;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  color: var(--logo-blue);
  line-height: 1;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  flex-wrap: wrap;
}

.header-right a,
.header-right span {
  text-decoration: none;
  color: var(--navy);
}

.header-right .social {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
}

.header-right .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: opacity 0.2s ease;
}

.header-right .social a:hover,
.header-right .social a:focus {
  opacity: 0.7;
}

.header-right .social svg {
  width: 30px;
  height: 30px;
}


/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 5.5rem var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 255, 255, 0.04),
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.8vw, 4.2rem);
  line-height: 1.18;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.005em;
}

.hero p {
  max-width: 780px;
  margin: 0 auto var(--space-md);
  font-size: clamp(1.3rem, 1.95vw, 1.55rem);
  line-height: 1.6;
}

.hero p:last-child {
  margin-bottom: 0;
}

.hero strong {
  font-weight: 600;
  color: #ffffff;
}


/* ============================================================
   6. PORTRAIT  +  name caption
   ============================================================ */
.portrait-section {
  background: var(--cream-bg);
  padding: 5.5rem var(--space-md);
  text-align: center;
}

.portrait {
  width: clamp(240px, 34vw, 360px);
  height: clamp(240px, 34vw, 360px);
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 12px 36px rgba(13, 33, 56, 0.22);
}

.portrait-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.9vw, 2.15rem);
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-top: 2rem;
  line-height: 1.25;
}

.portrait-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  color: var(--navy);
  opacity: 0.78;
  margin-top: 0.4rem;
}


/* ============================================================
   7. TAGLINE + CTA
   ============================================================ */
.tagline-section {
  background: var(--navy);
  color: var(--cream);
  padding: 5.5rem var(--space-md);
  text-align: center;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 6.2vw, 4.5rem);
  line-height: 1.18;
  max-width: 920px;
  margin: 0 auto var(--space-xl);
  letter-spacing: -0.005em;
}

.contact-block {
  margin-bottom: var(--space-xl);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.005em;
}

.contact-block span {
  display: block;
}

.contact-block span + span {
  margin-top: 0.95rem;
}

.cta-prompt {
  margin: var(--space-lg) 0 1.5rem;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
}

.btn-testimonials {
  display: inline-block;
  background: var(--button-blue);
  color: var(--navy);
  padding: 1.15rem 3.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn-testimonials:hover,
.btn-testimonials:focus {
  background: var(--button-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   8. BRAND BLOCK  (full logo with wordmark)
   ============================================================ */
.brand-section {
  background: #ffffff;
  padding: 5.5rem var(--space-md);
  text-align: center;
}

.brand-section .logo-large {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.logo-mark-large {
  height: 170px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.brand-social {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin: 2.25rem 0 2rem;
}

.brand-social a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: opacity 0.2s ease;
}

.brand-social a:hover {
  opacity: 0.7;
}

.brand-social svg {
  width: 34px;
  height: 34px;
}

.brand-url {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1rem;
}

.copyright {
  font-size: 1.05rem;
  color: var(--navy);
  opacity: 0.7;
}


/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  background: var(--cream-bg);
  padding: var(--space-lg) var(--space-md) 2.25rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--navy);
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-meta {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--navy);
  opacity: 0.72;
  font-style: italic;
  max-width: 780px;
  margin: 0 auto;
}

.footer-meta + .footer-meta {
  margin-top: 0.6rem;
}


/* ============================================================
  10. LEGAL PAGES  (privacy / terms / disclaimer)
   ============================================================ */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem var(--space-md);
  background: var(--cream-bg);
  color: var(--navy);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-top: var(--space-lg);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.legal-page p,
.legal-page li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 var(--space-sm) 1.5rem;
}

.legal-page strong {
  font-weight: 600;
}

.legal-page .last-updated {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.legal-page .back-link {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: 1rem;
  text-decoration: none;
  color: var(--logo-blue);
  border-bottom: 1px solid var(--logo-blue);
  padding-bottom: 2px;
}

.legal-page .back-link:hover {
  opacity: 0.7;
}

.legal-page .draft-note {
  background: #fff5d6;
  border-left: 4px solid #d4a017;
  padding: 1rem 1.25rem;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5a4400;
}


/* ============================================================
  11. RESPONSIVE  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .header {
    padding: var(--space-md) 1.25rem;
    gap: 1.1rem;
  }

  .logo {
    gap: 0.8rem;
  }

  .logo-mark {
    height: 70px;
  }

  .logo-wordmark {
    font-size: 2.05rem;
  }

  .header-right {
    flex-direction: column;
    gap: 0.7rem;
    font-size: 1.2rem;
  }

  .hero {
    padding: 4.5rem 1.25rem;
  }

  .portrait-section,
  .tagline-section,
  .brand-section {
    padding: 4.5rem 1.25rem;
  }

  .portrait-name {
    margin-top: 1.6rem;
  }

  .legal-page {
    padding: 2.5rem 1.25rem;
  }
}
