/* =========================================================
   BLUE EYED JEWELLS — HOMEPAGE EDITING PANEL
   Edit THIS FILE for homepage design changes.
   Loaded AFTER css/style.css so these controls take priority.
   ========================================================= */

/* 01 — HEADER (all pages) */
.site-header { min-height: 110px; padding: 14px 5%; gap: 24px; }
.site-header .logo { width: 90px; height: 90px; flex: 0 0 90px; }
.site-header .brand-link { gap: 12px; }
.site-header .brand-name { font-size: 55px; }
.site-header .brand-subtitle { font-size: 11px; letter-spacing: 3px; }
.site-header .nav-links { gap: 25px; }
.site-header .nav-links a { font-size: 16px; }

/* 02 — HERO / FIRST PHOTO */
.hero { min-height: 650px; background-position: center center; }
.hero-overlay { top: 45%; left: 22%; width: 500px; max-width: 40%; }
.hero-overlay h1 { font-size: clamp(48px, 5vw, 76px); margin-bottom: 15px; }
.hero-description { margin-bottom: 15px; }

/* 03 — INTRO: A SMALL HOME-BASED RAGDOLL CATTERY */
.home-intro { max-width: 850px; padding: 30px 16px 35px; }
.home-intro h2 { font-size: clamp(38px, 4vw, 58px); margin-bottom: 22px; }
.home-intro .intro-copy { max-width: 600px; font-size: 16px; line-height: 1.8; }
.home-intro .ornament { margin-bottom: 18px; }

/* 04 — SHARED HOMEPAGE PHOTO + TEXT SECTIONS */
.home-feature, .home-kittens { min-height: 540px; }
.home-feature-image, .home-kittens-image { min-height: 540px; }
.home-feature-text, .home-kittens-card { padding: clamp(42px, 5vw, 90px); }
.home-feature-text h2, .home-kittens-card h2 { font-size: clamp(44px, 4.5vw, 70px); }
.home-feature-text p:not(.eyebrow), .home-kittens-card p:not(.eyebrow) { max-width: 430px; }

/* 05 — KING: PHOTO LEFT, TEXT RIGHT */
.home-king { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); }
.home-king .home-feature-image img { object-position: 50% 40%; }

/* 06 — QUEENS: TEXT LEFT, PHOTO RIGHT */
.home-queens { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); }
.home-queens .home-feature-image img { object-position: 50% 43%; }

/* 07 — AVAILABLE KITTENS: PHOTO LEFT, TEXT RIGHT */
.home-kittens { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); }
.home-kittens .home-kittens-image img { object-position: 50% 43%; }

/* 08 — RAISED WITH LOVE: TEXT LEFT, PHOTO RIGHT */
.home-raised { grid-template-columns: minmax(0, .82fr) minmax(0, 1.48fr); }
.home-raised .home-feature-image img { object-position: 50% 42%; }

/* 09 — ABOUT / STORY INTRO AT BOTTOM */
.home-about { max-width: 760px; padding: 105px 28px 115px; }
.home-about h2 { font-size: clamp(40px, 4vw, 60px); }

/* 10 — JEWEL ORNAMENTS (requires images/decor SVG files) */
.home-intro .ornament, .home-feature .ornament,
.home-kittens .ornament, .home-about .ornament {
  width: 164px; height: 37px;
  background-image: url('../images/decor/sapphire-divider.svg');
}
.home-king .ornament { height: 48px; background-image: url('../images/decor/crown-divider.svg'); }

/* 11 — TABLET: 800px and below */
@media (max-width: 800px) {
  .home-intro { padding: 45px 24px 50px; }
  .hero { min-height: 540px; }
  .hero-overlay { left: 7%; top: 50%; width: 86%; max-width: 440px; }
  .home-king, .home-queens, .home-kittens, .home-raised { grid-template-columns: minmax(0, 1fr); }
  .home-feature, .home-kittens { min-height: 0; }
  .home-feature-image, .home-kittens-image { grid-column: 1; grid-row: auto; min-height: 0; height: 390px; order: 1; }
  .home-feature-text, .home-kittens-card { grid-column: 1; grid-row: auto; padding: 52px 8%; order: 2; }
  .site-header .brand-name { font-size: 38px; }
  .site-header .logo { width: 65px; height: 65px; flex-basis: 65px; }
}

/* 12 — PHONE: 500px and below */
@media (max-width: 500px) {
  .home-intro { padding: 30px 18px 35px; }
  .home-intro h2 { font-size: 38px; }
  .hero { min-height: 480px; }
  .hero-overlay { left: 6%; width: 88%; }
  .home-feature-image, .home-kittens-image { height: 280px; }
  .home-feature-text, .home-kittens-card { padding: 35px 20px; }
  .site-header .brand-name { font-size: 29px; }
  .site-header .logo { width: 48px; height: 48px; flex-basis: 48px; }
  .site-header .nav-links a { font-size: 10px; }
}
/* =====================================
   TRANSPARENT HEADER OVER HERO
===================================== */

/* Only on the homepage */

/* =====================================
   HOMEPAGE HEADER
===================================== */

/* Keep the header visible while scrolling */
body:has(.hero) #site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1000;
}

/* Transparent header over the hero */
body:has(.hero) .site-header {
    position: relative;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* White navigation and brand text */
body:has(.hero) .site-header .nav-links a,
body:has(.hero) .site-header .brand-name,
body:has(.hero) .site-header .brand-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease;
}

/* =====================================
   HEADER AFTER SCROLLING PAST HERO
===================================== */

body:has(.hero) #site-header.header-scrolled .site-header {
    background: #fafaf8;
    box-shadow: 0 2px 12px rgba(23, 44, 66, 0.12);
}

body:has(.hero) #site-header.header-scrolled .nav-links a,
body:has(.hero) #site-header.header-scrolled .brand-name {
    color: #172c42;
    text-shadow: none;
}

body:has(.hero) #site-header.header-scrolled .brand-subtitle {
    color: #516d89;
    text-shadow: none;
}

/* =====================================
   FULL-SCREEN HERO
===================================== */

body:has(.hero) .hero {
    position: relative;

    min-height: 100svh;
    width: 100%;

    margin: 0;
    padding: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* =====================================
   HERO PHOTO OVERLAY
===================================== */

body:has(.hero) .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(10, 22, 38, 0.48) 0%,
        rgba(10, 22, 38, 0.12) 35%,
        transparent 65%
    );

    pointer-events: none;
}