/* ============================================
   KARASUMI CHILD — Custom Styles
   Brand: Premium Bottarga · Beach Gold
   Fonts: EB Garamond (headings), Manrope (body)
   ============================================ */

:root {
  --color-dark: #0d0d0d;
  --color-dark-2: #1a1a1a;
  --color-gold: #c9a84c;
  --color-gold-light: #d4b96a;
  --color-gold-dark: #a8882a;
  --color-cream: #f5f0e8;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #6b6b6b;
  --color-border: rgba(201, 168, 76, 0.2);
  --font-heading: 'EB Garamond', 'Georgia', serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
  --font-accent: 'Playfair Display', 'Georgia', serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== RESET OVERRIDES ========== */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  overflow-x: hidden;
  background: var(--color-white);
}

/* ========== HERO VIDEO ========== */
.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.hero-logo {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s 0.3s forwards;
}

.hero-logo img {
  max-height: 80px;
  width: auto;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.8rem, 5vw, 4rem);
  color: var(--color-gold);
  letter-spacing: 6px;
  margin: 0 0 12px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s 0.6s forwards;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin: 0 0 36px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s 0.9s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s 1.2s forwards;
  cursor: pointer;
  background: transparent;
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeIn 1s 1.5s forwards;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
  max-width: none;
  padding: 100px 24px;
}

.section-cream {
  background: var(--color-cream);
  max-width: none;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.2;
}

.section-title.light { color: var(--color-white); }
.section-title.dark { color: var(--color-text); }

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
}

.section-desc.light { color: rgba(255,255,255,0.7); }

/* ========== STORY SECTION ========== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.story-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.story-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.story-image:hover img {
  transform: scale(1.03);
}

.story-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  padding: 8px 20px;
  letter-spacing: 1px;
}

.story-text h3 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}

.story-text .story-year {
  font-family: var(--font-accent);
  font-size: 4rem;
  color: var(--color-gold);
  font-style: italic;
  line-height: 1;
  margin-bottom: 24px;
}

.story-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* ========== GOLDEN CURE (6 cards) ========== */
.cure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.cure-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.cure-card:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.cure-icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: block;
}

.cure-card h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-white);
}

.cure-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ========== PRODUCTS ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  transform: translateY(-6px);
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  background: linear-gradient(135deg, #2a1f0e 0%, #1a1a1a 50%, #2a1f0e 100%);
}

.product-card:nth-child(2) .product-image {
  background: linear-gradient(135deg, #3a2a15 0%, #1a1a1a 50%, #3a2a15 100%);
}

.product-card:nth-child(3) .product-image {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1f0e 50%, #1a1a1a 100%);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 28px 24px 32px;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.product-info .product-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-gold);
  margin-bottom: 12px;
  display: block;
}

.product-info p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

.product-card .product-overlay {
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.product-overlay a:hover {
  background: var(--color-gold-dark);
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-info-card {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 48px 40px;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--color-gold);
}

.contact-info-card .contact-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

.contact-info-card .contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail .detail-icon {
  color: var(--color-gold);
  font-size: 1.1rem;
  min-width: 20px;
  margin-top: 2px;
}

.contact-detail .detail-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-detail .detail-text a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition);
}

.contact-detail .detail-text a:hover {
  color: var(--color-gold-light);
}

.contact-hours {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-hours strong {
  color: var(--color-gold);
  font-weight: 500;
}

/* ========== FOOTER TWEAKS ========== */
footer.site-footer {
  background: var(--color-dark) !important;
  color: rgba(255,255,255,0.7) !important;
}

/* ========== HEADER OVERRIDE — KILL BLUE THEME ========== */
/* Force parent FSE header to dark transparent */
.wp-block-template-part,
header.wp-block-template-part,
.wp-block-template-part > *,
.wp-block-template-part .wp-block-group,
.wp-block-template-part .header-top,
.wp-block-template-part .header-top-inner {
  background: transparent !important;
  background-color: transparent !important;
}

.wp-block-template-part {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

/* Navigation link colors in header */
.wp-block-template-part a,
.wp-block-template-part .wp-block-navigation-item__content,
.wp-block-template-part .wp-block-navigation a {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
}

.wp-block-template-part .wp-block-navigation a:hover {
  color: var(--color-gold) !important;
}

/* Header logo text color */
.wp-block-template-part .wp-block-site-title a {
  color: var(--color-gold) !important;
  font-family: var(--font-accent) !important;
}

/* Hide phone/email top bar on scroll */
.wp-block-template-part .header-top {
  max-height: 40px !important;
  overflow: hidden !important;
  transition: max-height 0.3s ease !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.wp-block-template-part.scrolled .header-top {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.wp-block-template-part.scrolled {
  background: rgba(13, 13, 13, 0.95) !important;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3) !important;
}

/* Header top bar phone/email colors */
.wp-block-template-part .header-top a {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.8rem !important;
}

/* Logo custom image */
.wp-block-template-part .custom-logo-link img {
  max-height: 50px !important;
  width: auto !important;
}

/* ========== HIDE PARENT THEME DEFAULT SECTIONS ========== */
/* Hide the parent theme's default content that shows below hero */
.wp-block-query,
.wp-block-post-template,
body.home .wp-block-post-content,
body.home .entry-content > :not(.hero-video-wrap):not(.section):not(.section-dark):not(.section-cream) {
  display: none !important;
}

/* Hide any leftover FSE blocks on homepage */
body.home .wp-block-cover,
body.home .wp-block-group.alignfull:not(.wp-block-template-part *),
body.home .entry-content > .wp-block-group {
  display: none !important;
}

/* Fix hero content being behind fixed header */
.hero-video-wrap {
  margin-top: 0;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-image img { height: 350px; }
  .cure-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 16px; }
  .section-dark, .section-cream { padding: 60px 16px; }
  .cure-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-logo img { max-height: 50px; }
  .hero-cta { padding: 12px 28px; font-size: 0.8rem; }
  .story-text h3 { font-size: 1.8rem; }
  .story-text .story-year { font-size: 3rem; }
  .contact-info-card { padding: 32px 24px; }
  .product-image { height: 240px; }
}