/*
 Theme Name:       The CDavids Child Theme
 Theme URI:        https://thecdavids.com
 Description:      Custom child theme for The CDavids - Family Travel, SoCal Local & Lifestyle
 Author:           The CDavids
 Author URI:       https://thecdavids.com
 Template:         kadence
 Version:          1.0.0
 License:          GPL v2 or later
 License URI:      http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:      thecdavids-child
 Domain Path:      /languages
*/

/* ============================================================
   IMPORT GOOGLE FONTS
   ============================================================ */
@import 
/* FORCE FULL WIDTH - OVERRIDE KADENCE */
.entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.post, .page {
  width: 100% !important;
}

main#main-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.section {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  padding: 60px 24px !important;
}

.section-inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

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

/* ============================================================
   CSS VARIABLES - BRAND COLOR SYSTEM
   ============================================================ */
:root {
  /* Brand Colors */
  --green-dark:   #1e4a1e;
  --green-mid:    #3a7a3a;
  --green-light:  #7ec96b;
  --green-pale:   #f0f7f0;
  --sand:         #fef3da;
  --sand-dark:    #f0e5c8;
  --teal:         #5bbcd4;
  --teal-dark:    #0a6080;
  --teal-pale:    #ddf0f8;
  --amber:        #c87800;
  --coral:        #e8a87c;
  --pink:         #e87c9a;
  --pink-pale:    #fce8f2;
  --white:        #ffffff;
  --off-white:    #fdfaf5;
  --border:       #d8d3cb;
  --text-dark:    #0d2d0d;
  --text-body:    #2a3a2a;
  --text-muted:   #5a6a5a;

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Lato', Arial, Helvetica, sans-serif;

  /* Spacing */
  --section-pad:  60px 24px;
  --card-radius:  12px;
  --btn-radius:   24px;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.7;
}

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

a { 
  color: var(--teal-dark); 
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute; 
  width: 1px; 
  height: 1px;
  padding: 0; 
  margin: -1px; 
  overflow: hidden;
  clip: rect(0,0,0,0); 
  white-space: nowrap; 
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

a:focus-visible, 
button:focus-visible { 
  outline: 3px solid var(--amber); 
  outline-offset: 3px; 
}

/* ============================================================
   AFFILIATE DISCLOSURE BAR
   ============================================================ */
.aff-bar {
  background: var(--green-pale);
  border-bottom: 1px solid #c8dcc8;
  padding: 6px 24px;
  text-align: center;
  font-size: 12px;
  color: #2a4a2a;
}

.aff-bar a { 
  color: var(--green-dark); 
  font-weight: 700; 
}

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

.nav-logo .logo-the { 
  font-family: var(--font-serif); 
  font-style: italic; 
  font-size: 12px; 
  color: var(--green-dark); 
  line-height: 1; 
}

.nav-logo .logo-main { 
  font-family: var(--font-sans); 
  font-weight: 700; 
  font-size: 20px; 
  color: var(--green-dark); 
  letter-spacing: 2px; 
  line-height: 1; 
}

.nav-logo .logo-sub { 
  font-size: 8px; 
  color: var(--green-dark); 
  letter-spacing: 2px; 
  margin-top: 2px; 
}

.nav-links { 
  display: flex; 
  gap: 20px; 
  list-style: none; 
}

.nav-links a { 
  color: var(--green-dark); 
  font-size: 13px; 
  font-weight: 700; 
  text-decoration: none; 
  letter-spacing: 0.3px; 
}

.nav-links a:hover { 
  text-decoration: underline; 
}

.nav-cta {
  background-color: var(--green-dark);
  color: var(--white);
  border: 2px solid var(--green-dark);
  padding: 9px 18px;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover { 
  background-color: var(--green-mid); 
  border-color: var(--green-mid); 
  color: var(--white); 
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary { 
  background-color: var(--green-dark); 
  color: var(--white); 
  border-color: var(--green-dark); 
}

.btn-primary:hover { 
  background-color: var(--green-mid); 
  border-color: var(--green-mid); 
  color: var(--white); 
}

.btn-secondary { 
  background-color: var(--green-mid); 
  color: var(--white); 
  border-color: var(--green-mid); 
}

.btn-secondary:hover { 
  background-color: var(--green-dark); 
  border-color: var(--green-dark); 
  color: var(--white); 
}

.btn-outline { 
  background-color: transparent; 
  color: var(--green-dark); 
  border-color: var(--green-dark); 
}

.btn-outline:hover { 
  background-color: var(--green-dark); 
  color: var(--white); 
}

.btn-white { 
  background-color: var(--white); 
  color: var(--green-dark); 
  border-color: var(--white); 
}

.btn-white:hover { 
  background-color: var(--green-pale); 
}

/* ============================================================
   SECTIONS & LAYOUTS
   ============================================================ */
.section { 
  padding: var(--section-pad); 
}

.section-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
}

.section-label { 
  font-size: 11px; 
  color: var(--teal-dark); 
  letter-spacing: 2.5px; 
  text-transform: uppercase; 
  font-weight: 700; 
  margin-bottom: 8px; 
}

.section-title { 
  font-family: var(--font-serif); 
  font-size: 36px; 
  font-weight: 400; 
  color: var(--text-dark); 
  margin-bottom: 12px; 
  line-height: 1.2; 
}

.section-sub { 
  font-size: 15px; 
  color: var(--text-muted); 
  max-width: 560px; 
}

.section-header { 
  margin-bottom: 36px; 
}

/* Section background variants */
.section--sand { 
  background: var(--sand); 
}

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

.section--green-dark { 
  background: var(--green-dark); 
}

.section--green-pale { 
  background: var(--green-pale); 
}

.section--pink-pale { 
  background: var(--pink-pale); 
}

.section--teal-pale { 
  background: var(--teal-pale); 
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
}

.blog-card__img { 
  aspect-ratio: 16/9; 
  background: var(--teal-pale); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 48px; 
  overflow: hidden; 
}

.blog-card__img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.blog-card__body { 
  padding: 20px; 
}

.blog-card__cat { 
  font-size: 10px; 
  color: var(--teal-dark); 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
  font-weight: 700; 
  margin-bottom: 6px; 
}

.blog-card__title { 
  font-family: var(--font-serif); 
  font-size: 18px; 
  color: var(--text-dark); 
  line-height: 1.35; 
  margin-bottom: 8px; 
}

.blog-card__title a { 
  text-decoration: none; 
  color: inherit; 
}

.blog-card__title a:hover { 
  text-decoration: underline; 
}

.blog-card__excerpt { 
  font-size: 13px; 
  color: var(--text-muted); 
  line-height: 1.6; 
  margin-bottom: 12px; 
}

.blog-card__meta { 
  font-size: 11px; 
  color: var(--text-muted); 
}

/* Blog grid layouts */
.blog-grid-3 { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

.blog-grid-2 { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { 
  font-size: 12px; 
  color: var(--text-muted); 
  padding: 12px 24px; 
  background: var(--white); 
  border-bottom: 1px solid var(--border); 
}

.breadcrumb a { 
  color: var(--teal-dark); 
  text-decoration: none; 
}

.breadcrumb a:hover { 
  text-decoration: underline; 
}

.breadcrumb span { 
  margin: 0 6px; 
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { 
  background: var(--green-dark); 
  padding: 48px 24px 20px; 
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1fr; 
  gap: 32px; 
  max-width: 1100px; 
  margin: 0 auto 32px; 
}

.footer-logo .logo-the { 
  font-family: var(--font-serif); 
  font-style: italic; 
  font-size: 12px; 
  color: #8aaa8a; 
}

.footer-logo .logo-main { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--white); 
  letter-spacing: 2px; 
}

.footer-logo .logo-sub { 
  font-size: 8px; 
  color: var(--green-light); 
  letter-spacing: 2px; 
  margin-top: 3px; 
  font-weight: 700; 
}

.footer-logo p { 
  font-size: 12px; 
  color: #7a9a7a; 
  line-height: 1.6; 
  margin-top: 12px; 
}

.footer-col h4 { 
  font-size: 10px; 
  font-weight: 700; 
  color: #a8c8a8; 
  letter-spacing: 1.5px; 
  text-transform: uppercase; 
  margin-bottom: 12px; 
}

.footer-col a { 
  display: block; 
  font-size: 12px; 
  color: #8aaa8a; 
  text-decoration: none; 
  margin-bottom: 6px; 
}

.footer-col a:hover { 
  color: #c8e8c8; 
  text-decoration: underline; 
}

.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.1); 
  padding-top: 16px; 
  max-width: 1100px; 
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 8px; 
}

.footer-copy { 
  font-size: 11px; 
  color: #4a6a4a; 
}

.footer-socials { 
  display: flex; 
  gap: 16px; 
}

.footer-socials a { 
  color: #6a8a6a; 
  font-size: 18px; 
  text-decoration: none; 
}

.footer-socials a:hover { 
  color: var(--green-light); 
}

.footer-legal { 
  max-width: 1100px; 
  margin: 20px auto 0; 
  padding-top: 16px; 
  border-top: 1px solid rgba(255,255,255,0.08); 
}

.footer-legal p { 
  font-size: 11px; 
  color: #4a6a4a; 
  line-height: 1.65; 
  margin-bottom: 4px; 
}

.footer-legal strong { 
  color: #6a9a6a; 
}

.footer-legal a { 
  color: #6a9a6a; 
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  .section-title { 
    font-size: 28px; 
  }
  .blog-grid-3 { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 600px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
  }
  .nav-links { 
    display: none; 
  }
  .blog-grid-3, 
  .blog-grid-2 { 
    grid-template-columns: 1fr; 
  }
  .section-title { 
    font-size: 24px; 
  }
}
