/*
Theme Name: Personal Portfolio
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A refined, academic-style personal theme for authors, podcasters, and golf enthusiasts. Features sections for bio, golf courses, podcast, writing/books, photo gallery, and contact.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: personal-theme
*/

/* ── VARIABLES ── */
:root {
  --cream: #F7F4EE;
  --dark-green: #1B3A2D;
  --forest: #2C5F4A;
  --sage: #7A9E8E;
  --gold: #B8965A;
  --gold-light: #D4B87A;
  --charcoal: #2A2A2A;
  --warm-gray: #6B6560;
  --light-border: #DDD6CA;
  --white: #FFFFFF;
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Libre Franklin', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,244,238,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-border);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-green);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--dark-green); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .current-menu-item a,
.nav-links .current_page_item a { color: var(--dark-green); }
.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--dark-green);
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--dark-green) 0%, #1a4535 40%, #234f3d 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(184,150,90,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(122,158,142,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  max-width: 820px;
  animation: fadeUp 1.2s ease-out;
}
.hero-eyebrow {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.4s;
}
.hero-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ── SECTIONS ── */
.theme-section { padding: 120px 40px; }

.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--dark-green);
  line-height: 1.2;
}
.section-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto 0;
}

/* ── ABOUT / BIO ── */
.about { background: var(--cream); }
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo .photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--sage) 0%, var(--forest) 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-placeholder {
  color: rgba(255,255,255,0.6);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  padding: 20px;
}
.about-photo .photo-accent {
  position: absolute;
  top: -12px; left: -12px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  border-radius: 2px;
  z-index: -1;
}
.about-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--dark-green);
  margin-bottom: 24px;
}
.about-text p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.85;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.about-tags span {
  padding: 6px 18px;
  border: 1px solid var(--light-border);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-radius: 2px;
  transition: all 0.3s;
}
.about-tags span:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

/* ── GOLF ── */
.golf { background: var(--white); }
.golf-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.golf-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.golf-card .card-img {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--forest), var(--dark-green));
  position: relative;
  transition: transform 0.6s ease;
  overflow: hidden;
}
.golf-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.golf-card:hover .card-img img { transform: scale(1.05); }
.golf-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,58,45,0.9) 0%, transparent 50%);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s;
  z-index: 2;
}
.golf-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(27,58,45,0.95) 0%, rgba(27,58,45,0.2) 60%);
}
.golf-card .card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.15);
  position: absolute;
  top: 20px; left: 24px;
}
.golf-card .card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}
.golf-card .card-location {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.golf-card .card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.golf-card:hover .card-desc { max-height: 120px; }

/* ── PODCAST ── */
.podcast { background: var(--dark-green); color: var(--white); }
.podcast .section-label { color: var(--gold-light); }
.podcast .section-title { color: var(--white); }
.podcast .section-rule { background: var(--gold-light); }
.podcast-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.podcast-art {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(184,150,90,0.2) 0%, rgba(44,95,74,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.podcast-art::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: conic-gradient(from 45deg, transparent 0%, rgba(184,150,90,0.08) 25%, transparent 50%);
  animation: slowRotate 20s linear infinite;
}
.podcast-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.podcast-art-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.podcast-mic {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.9;
}
.podcast-art-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-light);
}
.podcast-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--white);
}
.podcast-info p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 16px;
}
.podcast-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(184,150,90,0.15);
  border: 1px solid rgba(184,150,90,0.3);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-top: 12px;
}

/* ── BOOKS / WRITING ── */
.writing { background: var(--cream); }
.writing-content {
  max-width: 900px;
  margin: 0 auto;
}
.writing-featured {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 2px;
  margin-bottom: 40px;
}
.book-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--dark-green), #0e2a1f);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 24px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}
.book-cover::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover-text {
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  padding: 20px;
  line-height: 1.5;
}
.writing-details h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--dark-green);
  margin-bottom: 8px;
}
.writing-details .writing-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.writing-details p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.85;
  margin-bottom: 16px;
}
.writing-quote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--forest);
  line-height: 1.6;
}
.writing-quote cite {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-style: normal;
  display: block;
  margin-top: 8px;
}

/* ── GALLERY ── */
.gallery-section { background: var(--white); }
.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--sage), var(--forest));
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover { transform: scale(0.97); }
.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gallery-item .gallery-label {
  color: rgba(255,255,255,0.5);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  padding: 16px;
  position: relative;
  z-index: 2;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27,58,45,0);
  transition: background 0.4s;
  z-index: 1;
}
.gallery-item:hover::after {
  background: rgba(27,58,45,0.15);
}

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(160deg, var(--dark-green) 0%, #1a4535 100%);
  color: var(--white);
  text-align: center;
}
.contact-section .section-label { color: var(--gold-light); }
.contact-section .section-title { color: var(--white); }
.contact-section .section-rule { background: var(--gold-light); }
.contact-text {
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}
.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(184,150,90,0.3);
  padding-bottom: 4px;
  transition: all 0.3s;
}
.contact-email:hover {
  color: var(--white);
  border-color: var(--white);
}
.contact-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.contact-social a {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s;
}
.contact-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ── FOOTER ── */
.site-footer {
  background: #0e2a1f;
  padding: 40px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WORDPRESS SPECIFIC ── */
.wp-block-image img { border-radius: 2px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 500px;
  }
  .golf-grid { grid-template-columns: 1fr 1fr; }
  .podcast-content {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 500px;
  }
  .writing-featured {
    grid-template-columns: 140px 1fr;
    gap: 32px;
    padding: 32px;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .theme-section { padding: 80px 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(247,244,238,0.98);
    backdrop-filter: blur(12px);
    padding: 24px 40px;
    gap: 20px;
    border-bottom: 1px solid var(--light-border);
  }
  .hamburger { display: flex; }
  .golf-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .writing-featured {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .book-cover { max-width: 160px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 1; }
}
