/*
Theme Name: Global Pets Group
Theme URI: https://globalpetsgroup.com
Author: Global Pets, LLC
Author URI: https://globalpetsgroup.com
Description: A sophisticated, luxury editorial WordPress theme for Global Pets, LLC — featuring an Editorial Parchment Revival design with Cormorant Garamond, EB Garamond, Great Vibes, and Jost typography. Single-viewport hero with modal-based content architecture.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: global-pets
Tags: one-column, custom-background, custom-logo, featured-images, full-width-template
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

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

:root {
  /* Brand Colors */
  --gp-cream: #F7F1E8;
  --gp-surface: #EDE5D5;
  --gp-surface-2: #E5DAC5;
  --gp-text: #2A2018;
  --gp-text-secondary: #6B5744;
  --gp-text-muted: #9A8A6A;
  --gp-gold: #96752A;
  --gp-gold-bright: #D4AF37;
  --gp-gold-light: rgba(212, 175, 55, 0.15);
  --gp-border: rgba(42, 32, 24, 0.1);
  --gp-border-gold: rgba(150, 117, 42, 0.3);
}

html, body {
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--gp-cream);
  color: var(--gp-text);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ===== FONT UTILITY CLASSES ===== */
.font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-script {
  font-family: 'Great Vibes', cursive;
}

.font-label {
  font-family: 'Jost', sans-serif;
}

.font-body {
  font-family: 'EB Garamond', Georgia, serif;
}

/* ===== GOLD ACCENT LINE ===== */
.gold-rule {
  width: 40px;
  height: 2px;
  background: var(--gp-gold-bright);
  border: none;
  display: block;
}

/* ===== DROP CAP ===== */
.dropcap::first-letter {
  font-family: 'Great Vibes', cursive;
  float: left;
  font-size: 4.2em;
  line-height: 0.72;
  padding-right: 0.1em;
  padding-top: 0.05em;
  color: var(--gp-text);
}

/* ===== PULL QUOTE ===== */
.pullquote {
  border-left: 3px solid var(--gp-gold-bright);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Fade-up animation utility */
.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Initially hidden for animation */
.opacity-0-init {
  opacity: 0;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--gp-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--gp-border-gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gp-gold);
}

/* Modal scrollbar */
.modal-scroll::-webkit-scrollbar { width: 4px; }
.modal-scroll::-webkit-scrollbar-track { background: transparent; }
.modal-scroll::-webkit-scrollbar-thumb { background: var(--gp-border-gold); border-radius: 2px; }

/* ===== PORTRAIT FRAME ===== */
.portrait-frame {
  position: relative;
  display: inline-block;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--gp-border-gold);
  pointer-events: none;
  z-index: 1;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none;
  z-index: 1;
}

/* ===== GOLD BUTTONS ===== */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gp-gold-bright);
  color: var(--gp-text);
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gp-gold-bright);
  border-radius: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.4s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  background: #C9A230;
  border-color: #C9A230;
}

/* Outline gold button */
.btn-gold-outline {
  background: transparent;
  color: var(--gp-text);
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gp-gold);
  border-radius: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-gold-outline:hover {
  background: var(--gp-gold-light);
  border-color: var(--gp-gold-bright);
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gp-gold);
  margin-bottom: 0.25rem;
}

/* ===== FOUNDERS GLOW DIVIDER ===== */
.founders-divider {
  width: 3px;
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 280px;
}

.founders-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 5%,
    rgba(205, 127, 50, 0.5) 20%,
    rgba(255, 255, 255, 0.8) 35%,
    rgba(212, 175, 55, 0.9) 50%,
    rgba(255, 255, 255, 0.8) 65%,
    rgba(205, 127, 50, 0.5) 80%,
    transparent 95%
  );
  border-radius: 2px;
  animation: glowPulse 3s ease-in-out infinite;
}

.founders-divider::after {
  content: '';
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: -10px;
  right: -10px;
  background: linear-gradient(
    to bottom,
    transparent 5%,
    rgba(212, 175, 55, 0.2) 30%,
    rgba(212, 175, 55, 0.35) 50%,
    rgba(212, 175, 55, 0.2) 70%,
    transparent 95%
  );
  filter: blur(12px);
  border-radius: 6px;
  animation: glowPulse 3s ease-in-out infinite;
}

/* ===== MAIN LAYOUT ===== */
.gp-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--gp-cream);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.gp-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(247,241,232,0.15);
}

/* ===== NAV BAR ===== */
.gp-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  flex-shrink: 0;
  background: rgba(247,241,232,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gp-border);
}

@media (min-width: 768px) {
  .gp-nav {
    padding: 0 2.5rem;
  }
}

.gp-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gp-nav__logo {
  height: 28px;
  width: auto;
}

.gp-nav__name {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gp-text);
  display: none;
}

@media (min-width: 640px) {
  .gp-nav__name {
    display: block;
  }
}

.gp-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gp-nav__actions .btn-gold,
.gp-nav__actions .btn-gold-outline {
  font-size: 0.58rem;
  padding: 0.45rem 1rem;
}

/* ===== HERO / MAIN CONTENT ===== */
.gp-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.gp-hero-logo {
  width: clamp(90px, 12vw, 180px);
  height: auto;
  margin-bottom: clamp(0.6rem, 1.5vh, 1.2rem);
  filter: drop-shadow(0 4px 12px rgba(42,32,24,0.15));
}

.gp-hero-rule {
  width: 40px;
  height: 2px;
  background: var(--gp-gold-bright);
  margin: 0 auto clamp(0.5rem, 1.2vh, 1rem);
}

.gp-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gp-text);
  line-height: 1.1;
  margin-bottom: clamp(0.5rem, 1.2vh, 1rem);
}

.gp-hero-tagline {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  color: var(--gp-text);
  line-height: 1.5;
  margin-bottom: clamp(0.4rem, 1vh, 0.8rem);
  max-width: 640px;
}

.gp-hero-body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: var(--gp-text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: clamp(1rem, 2.5vh, 2rem);
}

.gp-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gp-hero-ctas {
    flex-direction: row;
  }
}

/* ===== FOOTER BAR ===== */
.gp-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 1.5rem;
  height: 40px;
  background: rgba(235,227,214,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--gp-border);
}

.gp-footer__text {
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  color: var(--gp-text-muted);
  letter-spacing: 0.08em;
}

/* ===== MODAL OVERLAY ===== */
.gp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 32, 24, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.gp-modal-overlay.active {
  display: flex;
}

.gp-modal {
  position: relative;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border: none;
  box-shadow: 0 25px 50px rgba(42,32,24,0.25);
  border-radius: 0;
  background-color: var(--gp-cream);
  background-image: url('assets/images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  animation: fadeUp 0.35s ease;
}

.gp-modal--wide {
  max-width: 56rem;
}

.gp-modal--narrow {
  max-width: 48rem;
}

.gp-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gp-border);
  color: var(--gp-text-secondary);
  background: transparent;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  line-height: 1;
}

.gp-modal__close:hover {
  border-color: var(--gp-gold);
  color: var(--gp-gold);
}

.gp-modal__body {
  padding: 2rem;
}

@media (min-width: 768px) {
  .gp-modal__body {
    padding: 3.5rem;
  }
}

/* ===== MODAL FOUNDERS PORTRAITS ===== */
.gp-founders-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .gp-founders-row {
    flex-direction: row;
    gap: 0;
  }
}

.gp-founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.gp-founder__img {
  width: clamp(160px, 16vw, 240px);
  height: auto;
}

.gp-founder__name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--gp-text);
  line-height: 1.2;
  margin-top: 1.25rem;
  text-align: center;
}

/* Divider between founders (desktop) */
.gp-founders-divider-wrap {
  display: none;
  margin: 0 2rem;
}

@media (min-width: 640px) {
  .gp-founders-divider-wrap {
    display: block;
  }
}

@media (min-width: 768px) {
  .gp-founders-divider-wrap {
    margin: 0 3.5rem;
  }
}

/* ===== ORNAMENT DIVIDER ===== */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
}

.ornament-divider__line {
  flex: 1;
  height: 1px;
}

.ornament-divider__line--left {
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.4));
}

.ornament-divider__line--right {
  background: linear-gradient(to left, transparent, rgba(212,175,55,0.4));
}

.ornament-divider__img {
  margin: 0 1rem;
  height: 2rem;
  width: auto;
  opacity: 0.8;
}

/* ===== CHAPTER HEADINGS ===== */
.chapter-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: var(--gp-text);
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.chapter-body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.9;
  color: var(--gp-text-secondary);
  margin-bottom: 1rem;
}

.chapter-body:last-child {
  margin-bottom: 0;
}

.pullquote-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--gp-text);
  font-weight: 500;
  line-height: 1.6;
}

.modal-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--gp-text);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* ===== CLOSING SCRIPT ===== */
.closing-script {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gp-border);
}

.closing-script .gold-rule {
  margin: 0 auto 1.5rem;
}

.closing-script p {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--gp-text);
  line-height: 1.4;
}

/* ===== MOBILE FOUNDERS DIVIDER ===== */
@media (max-width: 639px) {
  .founders-divider {
    width: 60%;
    height: 3px;
    min-height: 3px;
    align-self: auto;
  }
  .founders-divider::before {
    background: linear-gradient(
      to right,
      transparent 5%,
      rgba(205, 127, 50, 0.5) 20%,
      rgba(255, 255, 255, 0.8) 35%,
      rgba(212, 175, 55, 0.9) 50%,
      rgba(255, 255, 255, 0.8) 65%,
      rgba(205, 127, 50, 0.5) 80%,
      transparent 95%
    );
  }
  .founders-divider::after {
    top: -10px;
    bottom: -10px;
    left: 5%;
    right: 5%;
    background: linear-gradient(
      to right,
      transparent 5%,
      rgba(212, 175, 55, 0.2) 30%,
      rgba(212, 175, 55, 0.35) 50%,
      rgba(212, 175, 55, 0.2) 70%,
      transparent 95%
    );
  }
}

/* ===== WORDPRESS ADMIN BAR COMPAT ===== */
body.admin-bar .gp-page {
  top: 32px;
  height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .gp-page {
    top: 46px;
    height: calc(100% - 46px);
  }
}
