/*
Theme Name: Peebles
Description: Custom WordPress theme for R. Donahue Peebles Jr.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=Montserrat:wght@300;400;500;600&display=swap');

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

:root {
  --gold: #B8964A;
  --gold-light: #d4af6e;
  --dark: #0d0d0d;
  --white: #ffffff;
  --off-white: #f5f3ef;
  --text-mid: #888;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  overflow-x: hidden;
}

/* NAV */
nav#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 60px;
  transition: background 0.4s, padding 0.4s;
}
nav#main-nav.scrolled {
  background: rgba(13,13,13,0.96);
  padding: 16px 60px;
  backdrop-filter: blur(8px);
}
/* Force dark nav on non-hero pages */
body.page-news nav#main-nav,
body.single nav#main-nav,
body.page-template-page-about-php nav#main-nav,
body.page-template-page-speaking-php nav#main-nav {
  background: rgba(13,13,13,0.96);
  padding: 16px 60px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* HAMBURGER TOGGLE - hidden on desktop */
#nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 101;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
#nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
#nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HERO */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.72);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.65) 80%,
    rgba(0,0,0,0.80) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 100px;
  left: 60px;
  right: 60px;
  max-width: 780px;
}
.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 24px;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-name em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* SECTION SHARED */
section { scroll-margin-top: 70px; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 60px;
}
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 48px;
}

/* ABOUT */
#about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 24px;
  font-weight: 300;
}
.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.stat-box {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* NEWS (homepage preview + full news page) */
#news { background: var(--dark); }
#news .section-title { color: var(--white); }
#news .section-label { color: var(--gold); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.news-card {
  background: #161616;
  padding: 40px;
  transition: background 0.3s;
  cursor: default;
}
.news-card:hover { background: #1e1e1e; }
.news-card-date {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.news-card-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
}
.news-card-excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}
.news-card-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.news-card:hover .news-card-link { border-color: var(--gold); }

/* NEWS PAGE */
.news-page-wrap {
  background: var(--dark);
  padding-top: 80px;
  min-height: 100vh;
}
.news-page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 60px 40px;
}
.news-page-header .section-title { color: var(--white); }
.news-page-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* SINGLE POST */
.single-post-wrap {
  background: var(--off-white);
  padding-top: 120px;
  min-height: 100vh;
}
.single-post-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
}
.single-post-date {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.single-post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 48px;
}
.single-post-content {
  font-size: 16px;
  line-height: 1.85;
  color: #444;
  font-weight: 300;
}
.single-post-content p { margin-bottom: 24px; }
.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.back-link:hover { border-color: var(--gold); }

/* CONTACT */
#contact { background: var(--off-white); }

/* WPFORMS OVERRIDES */
.wpforms-container-full .wpforms-submit {
  background: var(--dark) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 16px 40px !important;
  font-size: 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.wpforms-container-full .wpforms-submit:hover {
  background: var(--gold) !important;
}
.wpforms-container-full input[type=text],
.wpforms-container-full input[type=email],
.wpforms-container-full textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 0 !important;
  font-size: 14px !important;
  font-family: 'Montserrat', sans-serif !important;
  color: var(--dark) !important;
  outline: none !important;
}
.wpforms-container-full input[type=text]:focus,
.wpforms-container-full input[type=email]:focus,
.wpforms-container-full textarea:focus {
  border-bottom-color: var(--gold) !important;
  box-shadow: none !important;
}
.wpforms-container-full .wpforms-field-label {
  font-size: 9px !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: var(--text-mid) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
}

/* FOOTER */
footer.site-footer {
  background: var(--dark);
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}
footer.site-footer .footer-social {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
footer.site-footer .footer-social a,
footer.site-footer .footer-social a:link,
footer.site-footer .footer-social a:visited,
footer.site-footer .footer-social a:hover,
footer.site-footer .footer-social a:active,
footer.site-footer .footer-social a:focus {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  border: none !important;
  background: none !important;
  transition: color 0.3s !important;
}
footer.site-footer .footer-social a:hover,
footer.site-footer .footer-social a:hover span,
footer.site-footer .footer-social a:hover i {
  color: rgba(255,255,255,0.8) !important;
}
footer.site-footer .footer-social a span,
footer.site-footer .footer-social a i {
  color: rgba(255,255,255,0.4) !important;
}
footer.site-footer .footer-social i {
  font-size: 14px !important;
}
.footer-copy {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
}

/* FADE-IN */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* INTERIOR PAGES (About, Speaking) */
.interior-page-wrap {
  background: var(--off-white);
  padding-top: 120px;
  min-height: 100vh;
}
.interior-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px;
}
.interior-content {
  font-size: 16px;
  line-height: 1.85;
  color: #444;
  font-weight: 300;
}
.interior-content p { margin-bottom: 24px; }
.interior-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--dark);
  margin: 40px 0 20px;
}

/* MOBILE */
@media (max-width: 768px) {
  nav#main-nav {
    padding: 16px 24px;
    justify-content: flex-end;
    background: rgba(13,13,13,0.96);
  }
  nav#main-nav.scrolled { padding: 12px 24px; }
  #nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 100;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .hero-content { left: 24px; right: 24px; bottom: 80px; }
  .hero-scroll { right: 24px; }
  .section-inner { padding: 60px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-page-grid { grid-template-columns: 1fr; padding: 0 24px 60px; }
  .news-page-header { padding: 40px 24px 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  footer.site-footer { flex-direction: column; gap: 16px; padding: 24px; text-align: center; }
  footer.site-footer .footer-social { gap: 20px; }
  .single-post-inner { padding: 40px 24px; }
}