/* ==========================================================================
   Genealogy With Rhonda — Shared Stylesheet
   Plain CSS, no frameworks. Victorian / antique navy + gold aesthetic.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --navy-deep:    #102A3D;  /* main dark navy ground */
  --navy-darker:  #07192A;  /* near-black navy — borders, edges */
  --navy-surface: #15384F;  /* lifted navy for cards on dark areas */
  --gold:         #C8A24C;  /* antique gold — ornaments, rules, buttons */
  --gold-light:   #EBD27E;  /* pale cream-gold — headings */
  --cream:        #F4ECD6;  /* warm parchment — light reading sections */
  --ink:          #1C2B36;  /* dark navy text on light sections */
  --muted:        #5B6B77;  /* secondary text */

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  --max-width: 1100px;
  --radius: 4px;
}

/* ----- Reset / base ----- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Visible focus states everywhere, for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link for keyboard / screen reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-darker);
  padding: 0.6em 1em;
  z-index: 1000;
  font-family: var(--font-body);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ----- Diamond lattice texture (navy areas only) ----- */
.texture-navy {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(45deg, rgba(200, 162, 76, 0.06) 25%, transparent 25%, transparent 75%, rgba(200, 162, 76, 0.06) 75%),
    linear-gradient(45deg, rgba(200, 162, 76, 0.06) 25%, transparent 25%, transparent 75%, rgba(200, 162, 76, 0.06) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* ----- Diamond divider ----- */
.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0;
}

.diamond-divider::before,
.diamond-divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--gold);
  opacity: 0.6;
}

.diamond-divider span {
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--navy-darker);
  border-bottom: 1px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--gold-light);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  text-decoration: none;
}

.brand-name:hover,
.brand-name:focus-visible {
  text-decoration: none;
  color: var(--gold);
}

.brand-motto {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.1rem;
}

/* Nav toggle (mobile hamburger) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-light);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold-light);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-darker);
    border-bottom: 1px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }

  .main-nav li {
    border-top: 1px solid rgba(200, 162, 76, 0.2);
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0.1rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: var(--cream);
  padding: 5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin: 0 0 1.25rem;
}

.ribbon {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-darker);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.4rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--cream);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-darker);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-light);
  color: var(--navy-darker);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(200, 162, 76, 0.12);
  color: var(--gold-light);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 4rem 0;
}

.section-navy {
  color: var(--cream);
}

.section-navy h2 {
  color: var(--gold-light);
}

.section-cream {
  background: var(--cream);
}

.section-cream h2 {
  color: var(--navy-deep);
}

.section-surface {
  background: var(--navy-surface);
  color: var(--cream);
}

.section-surface h2 {
  color: var(--gold-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--muted);
}

.section-navy .section-header p,
.section-surface .section-header p {
  color: var(--cream);
  opacity: 0.85;
}

/* ----- Card grid ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(200, 162, 76, 0.4);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(7, 25, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--navy-deep);
}

.card .price {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink);
}

.card ul li {
  margin-bottom: 0.5rem;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Card variant on navy ground */
.card-navy {
  background: var(--navy-surface);
  border: 1px solid var(--gold);
  color: var(--cream);
}

.card-navy h3 {
  color: var(--gold-light);
}

.card-navy .price {
  color: var(--gold-light);
}

.card-navy ul {
  color: var(--cream);
}

.card-navy blockquote {
  color: var(--cream);
}

.card-navy blockquote footer {
  color: var(--gold-light);
  opacity: 0.85;
}

/* Placeholder testimonial badge */
.placeholder-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-darker);
  background: var(--gold-light);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.9rem;
}

blockquote {
  font-style: italic;
  margin: 0 0 1rem;
  color: var(--ink);
}

blockquote footer {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
  padding: 3.5rem 0;
  color: var(--cream);
}

.cta-band h2 {
  color: var(--gold-light);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(200, 162, 76, 0.4);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(7, 25, 42, 0.08);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy-deep);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  resize: none;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

.contact-details {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-details p {
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--navy-deep);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* ==========================================================================
   About page extras
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 760px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.photo-placeholder {
  background: var(--navy-surface);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  color: var(--gold-light);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.95rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 1rem;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-darker);
  border-top: 1px solid var(--gold);
  color: var(--cream);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand h2 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.footer-motto {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact a {
  color: var(--cream);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--gold-light);
}

.footer-service-area {
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.85;
  margin-top: 0.6rem;
}

.service-area {
  color: var(--muted);
  font-size: 0.95rem;
}

.phone-coming-soon {
  font-style: italic;
  opacity: 0.75;
}

.footer-contact .phone-coming-soon {
  color: var(--cream);
}

.contact-details .phone-coming-soon {
  color: var(--navy-deep);
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 162, 76, 0.25);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
