/*
Theme Name: Chestatee River
Theme URI: https://chestateeriver.com
Author: Gold Peach Realty
Author URI: https://goldpeachrealty.com
Description: The definitive guide to the Chestatee River — fly fishing, tubing, kayaking, history, and riverfront real estate in Dahlonega, North Georgia.
Version: 1.0.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: chestatee-river
*/

/* ================================================
   GOOGLE FONTS
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=Montserrat:wght@400;600;700&display=swap');

/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
  /* Colors */
  --color-forest:      #1B3A2D;
  --color-river:       #2E6B7A;
  --color-gold:        #C5951A;
  --color-gold-dark:   #9A7010;
  --color-gold-light:  #E8B84B;
  --color-stone:       #3D3832;
  --color-stone-light: #6B635A;
  --color-cream:       #F5F0E8;
  --color-cream-dark:  #E8E0D0;
  --color-sky:         #7AAECC;
  --color-mist:        #E8EFE8;
  --color-white:       #FFFFFF;
  --color-error:       #8B2020;

  /* Typography */
  --font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui:       'Montserrat', system-ui, -apple-system, sans-serif;

  /* Scale */
  --size-xs:   0.75rem;
  --size-sm:   0.875rem;
  --size-base: 1rem;
  --size-lg:   1.25rem;
  --size-xl:   1.75rem;
  --size-2xl:  2.5rem;
  --size-3xl:  clamp(2.5rem, 5vw, 4rem);
  --size-hero: clamp(3rem, 8vw, 8rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.25);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.35);

  /* Z-index scale */
  --z-base:    1;
  --z-overlay: 50;
  --z-nav:     100;
  --z-modal:   200;

  /* Transitions */
  --ease-fast:   0.15s ease;
  --ease-base:   0.25s ease;
  --ease-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-pill: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-stone);
  background-color: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-stone);
}

/* ================================================
   TYPOGRAPHY BASE
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 { font-size: var(--size-hero);  font-weight: 700; }
h2 { font-size: var(--size-3xl);   font-weight: 700; }
h3 { font-size: var(--size-2xl);   font-weight: 700; }
h4 { font-size: var(--size-xl);    font-weight: 600; }
h5 { font-size: var(--size-lg);    font-weight: 600; }
h6 { font-size: var(--size-base);  font-weight: 600; }

p {
  font-size: var(--size-base);
  line-height: 1.75;
  max-width: 68ch;
}

a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease-fast);
}

a:hover { color: var(--color-gold-dark); }

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

/* ================================================
   WORDPRESS BLOCK CORE OVERRIDES
   ================================================ */
.wp-block-cover {
  min-height: 100vh;
}

.wp-block-buttons .wp-block-button__link {
  font-family: var(--font-ui);
  font-size: var(--size-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.875rem 2rem;
  transition: all var(--ease-base);
  cursor: pointer;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--color-cream);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.1);
}

.wp-block-separator {
  border-color: var(--color-gold);
  opacity: 1;
  width: 60px;
  margin: var(--sp-4) 0;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.cr-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.cr-divider-gold {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--sp-4) 0;
}

.cr-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;
}
