/* Granny Dating Australia — Shared Styles */
/* Design: Warm Editorial + Modern Dating */
/* Mobile-first responsive */

:root {
  --cream: #FFFBF7;
  --cream-warm: #FFF5EC;
  --sand: #E8DCCF;
  --sand-light: #F2EBE1;
  --coral: #C97B6F;
  --coral-hover: #B56A5E;
  --coral-light: rgba(201, 123, 111, 0.08);
  --charcoal: #2D2D2D;
  --charcoal-light: #4A4A4A;
  --bronze: #B8864E;
  --bronze-hover: #9A6F3D;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
  --max-width-content: 800px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--bronze);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.4rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: 0 1rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-logo .brand-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--charcoal);
  text-decoration: none;
}

.header-logo a:hover { color: var(--bronze); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--coral);
}

.header-cta {
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--coral);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.cta-btn:hover {
  background: var(--coral-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 123, 111, 0.3);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn-large {
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
}

.cta-btn-bronze {
  background: var(--bronze);
}

.cta-btn-bronze:hover {
  background: var(--bronze-hover);
  box-shadow: 0 4px 12px rgba(184, 134, 78, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--charcoal);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(45,45,45,0.55) 0%,
    rgba(45,45,45,0.45) 50%,
    rgba(45,45,45,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 700px;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: -0.01em;
}

.hero .cta-btn {
  font-size: 1rem;
  padding: 0.8rem 2.2rem;
}

/* Simple page header for legal pages */
.page-header {
  background: var(--cream-warm);
  border-bottom: 1px solid var(--sand);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: 3rem 1.5rem;
}

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

.content-section-sand {
  background: var(--sand-light);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--charcoal-light);
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  margin-bottom: 0;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: var(--sand-light);
}

.card-image-placeholder {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  font-size: 0.85rem;
}

/* ===== CITY CARDS ===== */
.city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.city-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--charcoal);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.city-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--coral);
  transform: translateY(-2px);
  color: var(--charcoal);
}

.city-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

.city-card .city-desc {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-bottom: 0;
}

.city-card .city-arrow {
  float: right;
  color: var(--coral);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: -1.5rem;
}

/* ===== IMAGE + TEXT SPLIT ===== */
.split-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.split-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-md);
}

.split-image img {
  width: 100%;
  border-radius: var(--radius-md);
}

.split-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--sand-light), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  font-size: 0.85rem;
}

.split-text {
  flex: 1;
}

/* ===== FAQ ===== */
.faq-list {
  margin: 1.5rem 0;
}

.faq-item {
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-question.active::after {
  content: '\2212';
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--charcoal-light);
  line-height: 1.65;
}

.faq-answer.open {
  display: block;
}

/* ===== EXAMPLE SCENARIOS ===== */
.example-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.example-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.example-card p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  margin-bottom: 0;
}

.example-disclaimer {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal) 0%, #3D3D3D 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--sand-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

/* ===== INLINE CTA LINK ===== */
.cta-inline {
  display: inline-block;
  margin: 0.5rem 0 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--sand-light);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--sand);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: var(--sand);
}

.footer-bottom a:hover {
  color: var(--coral);
}

.footer-18plus {
  display: inline-block;
  border: 1px solid var(--sand);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sand);
  margin-top: 0.5rem;
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 100;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-panel .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
  padding: 0.5rem;
}

.mobile-nav-panel ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.mobile-nav-panel li {
  margin-bottom: 0.5rem;
}

.mobile-nav-panel a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--sand-light);
}

.mobile-nav-panel a:hover {
  color: var(--coral);
}

.mobile-nav-panel .mobile-cta {
  margin-top: 1rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Content link list style */
.content-link-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.content-link-list li {
  margin-bottom: 0.5rem;
}

.content-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.content-link-list a::before {
  content: '\2192';
  color: var(--coral);
}

/* Checklist style */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding-left: 1.5rem;
  position: relative;
}

.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* Missing image fallback */
img[src*=".webp"]:not([src]),
img[src*=".webp"][src=""] {
  display: none;
}

img[src*=".webp"] {
  background: var(--sand-light);
  min-height: 60px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .content-section {
    padding: 4rem 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section {
    flex-direction: row;
    align-items: flex-start;
  }

  .split-section.reverse {
    flex-direction: row-reverse;
  }

  .split-image,
  .split-image-placeholder {
    width: 45%;
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .hero {
    min-height: 70svh;
  }

  h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .content-section {
    padding: 5rem 2rem;
  }

  .hero {
    min-height: 75svh;
  }

  .section-inner-narrow {
    max-width: 800px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-image,
  .split-image-placeholder {
    width: 42%;
  }
}

/* Mobile nav visibility */
@media (max-width: 767px) {
  .header-nav {
    display: none;
  }

  .header-cta .cta-btn {
    font-size: 0.85rem;
    padding: 0.55rem 1.2rem;
    min-width: auto;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .cta-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
  }

  .site-header {
    padding: 0 0.75rem;
  }

  .header-logo .brand-text {
    font-size: 0.9rem;
  }

  .header-logo img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 90svh;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .content-section {
    padding: 2rem 1rem;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .cta-btn,
  .mobile-menu-toggle,
  .mobile-nav-overlay,
  .mobile-nav-panel,
  .hero::before {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: none !important;
  }

  .hero h1 {
    color: var(--charcoal);
    text-shadow: none;
  }
}
