/* ============================================
   SITE-WIDE STYLES — coaching.robromano.com
   Converted from Abacus AI Next.js/Tailwind
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #F7F5EF;
  color: #1B3326;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --- */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #1B3326;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 640px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

/* --- Grain Texture Overlay --- */
.grain {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url('data:image/svg+xml,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.5"/></svg>');
}

/* --- Glassmorphism --- */
.glass {
  background: rgba(247, 245, 239, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(247, 245, 239, 0.3);
  border-radius: 12px;
  padding: 24px;
}
@media (min-width: 640px) {
  .glass { padding: 32px; }
}
.glass-dark {
  background: rgba(27, 51, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(90, 158, 122, 0.2);
}


/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 14px 0;
  background: rgba(27, 51, 38, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.header.scrolled {
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px -2px rgba(27, 51, 38, 0.08);
  padding: 10px 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .header-inner { padding: 0 24px; }
}

/* Brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.header-brand svg {
  display: none;
}
.header-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #F7F5EF;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.header.scrolled .header-brand span {
  color: #1B3326;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a {
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(247, 245, 239, 0.8);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.nav-desktop a:hover {
  color: #F7F5EF;
  background: rgba(247, 245, 239, 0.1);
}
.nav-desktop a.active {
  color: #F7F5EF;
  background: rgba(247, 245, 239, 0.15);
}
.header.scrolled .nav-desktop a {
  color: rgba(27, 51, 38, 0.7);
}
.header.scrolled .nav-desktop a:hover {
  color: #1B3326;
  background: rgba(27, 51, 38, 0.05);
}
.header.scrolled .nav-desktop a.active {
  color: #2B6B4F;
  background: rgba(43, 107, 79, 0.1);
}

/* Hamburger Button */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(27, 51, 38, 0.05); }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle svg {
  width: 24px; height: 24px;
  color: #F7F5EF;
  transition: color 0.3s ease;
}
.header.scrolled .nav-toggle svg {
  color: #1B3326;
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(27, 51, 38, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Mobile Menu Panel */
.mobile-menu {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 288px;
  background: #F7F5EF;
  box-shadow: -12px 0 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-overlay.open .mobile-menu {
  transform: translateX(0);
}
.mobile-menu a {
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(27, 51, 38, 0.7);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.mobile-menu a:hover {
  color: #1B3326;
  background: rgba(27, 51, 38, 0.05);
}
.mobile-menu a.active {
  color: #2B6B4F;
  background: rgba(43, 107, 79, 0.1);
}


/* ============================================
   CTA BUTTON
   ============================================ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-cta svg {
  width: 16px; height: 16px;
  transition: transform 0.2s;
}
.btn-cta:hover svg { transform: translateX(4px); }

/* Primary: emerald bg, cream text */
.btn-cta--primary {
  background: #2B6B4F;
  color: #F7F5EF;
  box-shadow: 0 4px 12px -2px rgba(27, 51, 38, 0.08);
}
.btn-cta--primary:hover {
  background: #1B3326;
  box-shadow: 0 12px 24px -4px rgba(27, 51, 38, 0.12);
}

/* Secondary: gold tint bg, forest text */
.btn-cta--secondary {
  background: rgba(212, 168, 83, 0.2);
  color: #1B3326;
  border: 1px solid rgba(212, 168, 83, 0.3);
}
.btn-cta--secondary:hover {
  background: rgba(212, 168, 83, 0.3);
}

/* Outline: emerald border */
.btn-cta--outline {
  background: transparent;
  color: #2B6B4F;
  border: 1px solid rgba(43, 107, 79, 0.3);
}
.btn-cta--outline:hover {
  background: rgba(43, 107, 79, 0.05);
}


/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #D4A853;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #1B3326;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .section-title { font-size: 36px; }
}
@media (min-width: 768px) {
  .section-title { font-size: 42px; }
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1B3326;
  color: rgba(247, 245, 239, 0.8);
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 640px) {
  .footer-inner { padding: 0 24px; }
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}

/* Footer Brand */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-brand svg {
  width: 20px; height: 20px;
  color: #D4A853;
}
.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #F7F5EF;
}
.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(247, 245, 239, 0.6);
  line-height: 1.6;
}

/* Footer Nav */
.footer-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: #D4A853;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(247, 245, 239, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #F7F5EF; }

/* Footer Contact */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(247, 245, 239, 0.6);
  margin-bottom: 12px;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 32px 16px 0;
  border-top: 1px solid rgba(247, 245, 239, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 32px 24px 0;
  }
}
.footer-bottom p,
.footer-bottom a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(247, 245, 239, 0.4);
  text-decoration: none;
  margin: 0;
}
.footer-bottom a:hover {
  color: rgba(247, 245, 239, 0.7);
}


/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.faq-question:hover { background: rgba(27, 51, 38, 0.02); }
.faq-q-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-q-icon {
  width: 20px; height: 20px;
  color: #2B6B4F;
  flex-shrink: 0;
}
.faq-q-text {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
  color: #1B3326;
  padding-right: 16px;
}
.faq-chevron {
  width: 20px; height: 20px;
  color: rgba(27, 51, 38, 0.4);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}
.faq-answer-inner {
  padding: 0 20px 14px 52px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(27, 51, 38, 0.65);
  line-height: 1.7;
}


/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1B3326;
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1B3326;
  background: rgba(247, 245, 239, 0.6);
  border: 1px solid rgba(27, 51, 38, 0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #2B6B4F;
  box-shadow: 0 0 0 3px rgba(43, 107, 79, 0.1);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(27, 51, 38, 0.5);
  font-style: italic;
  margin-top: 16px;
}


/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card-v2 {
  background: #FFFFFF;
  border: 1px solid rgba(27, 51, 38, 0.08);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}
.testimonial-card-v2:hover {
  box-shadow: 0 12px 24px -4px rgba(27, 51, 38, 0.12);
  transform: translateY(-3px);
}
.testimonial-card-v2 .quote-icon-v2 {
  width: 32px;
  height: 32px;
  color: rgba(212, 168, 83, 0.2);
  transition: color 0.3s ease;
}
.testimonial-card-v2:hover .quote-icon-v2 {
  color: rgba(212, 168, 83, 0.4);
}
.testimonial-card-v2 .quote-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #1B3326;
  line-height: 1.7;
  flex: 1;
}
.testimonial-card-v2 .quote-divider {
  border: none;
  border-top: 1px solid rgba(27, 51, 38, 0.08);
  margin: 0;
}
.testimonial-card-v2 .quote-author {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #D4A853;
}


/* ============================================
   RESOURCE CARDS + TABS
   ============================================ */
.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: rgba(27, 51, 38, 0.03);
  border-radius: 12px;
  margin-bottom: 32px;
}
.resource-tab {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1B3326;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.resource-tab:hover {
  color: #1B3326;
  background: rgba(247, 245, 239, 0.8);
}
.resource-tab--active {
  background: #2B6B4F;
  color: #F7F5EF;
}
.resource-tab--active:hover {
  background: #1B3326;
  color: #F7F5EF;
}
.resource-tab-count {
  font-size: 12px;
  opacity: 0.7;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
}
.resource-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(27, 51, 38, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}
.resource-card:hover {
  box-shadow: 0 12px 24px -4px rgba(27, 51, 38, 0.12);
  transform: translateY(-2px);
}
.resource-card-img {
  height: 192px;
  overflow: hidden;
  background: rgba(27, 51, 38, 0.05);
}
.resource-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.resource-card:hover .resource-card-img img {
  transform: scale(1.05);
}
.resource-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.resource-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1B3326;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card-author {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(27, 51, 38, 0.5);
  font-weight: 500;
  margin-bottom: 12px;
}
.resource-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(27, 51, 38, 0.6);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 51, 38, 0.08);
}
.resource-card-type {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #F7F5EF;
  background: #2B6B4F;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Landing page category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
.category-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(27, 51, 38, 0.08);
  border-radius: 12px;
  padding: 24px 20px;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}
.category-card:hover {
  box-shadow: 0 8px 24px -4px rgba(27, 51, 38, 0.1);
  transform: translateY(-2px);
}
.category-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.category-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1B3326;
  margin-bottom: 8px;
  line-height: 1.3;
}
.category-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(27, 51, 38, 0.6);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}
.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.category-card-count {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(27, 51, 38, 0.4);
}
.category-card-explore {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #D4A853;
  font-weight: 500;
}
.resource-card-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #2B6B4F;
  font-weight: 500;
}
.resource-card:hover .resource-card-link {
  color: #1B3326;
}
.back-to-resources {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #2B6B4F;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.back-to-resources:hover { color: #1B3326; }


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Glass card hover lift */
.glass-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(27, 51, 38, 0.15);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-fade-up,
  .anim-fade-left,
  .anim-fade-right {
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}
