/*
Theme Name: Sherry On Shore
Theme URI: https://sherryonshore.com
Author: Custom Theme Generator
Author URI: https://sherryonshore.com
Description: A bespoke, luxury travel and lifestyle storytelling WordPress theme crafted for Sherry On Shore. Features elegant serif typography, coastal color palette, responsive hero sections, and custom blog layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sherry-on-shore
Tags: travel, luxury, blog, bespoke, responsive-layout, grid-layout, custom-menu, featured-images, two-columns
*/

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color Palette derived from Sherry On Shore */
  --color-ocean-dark: #1b3846;      /* Deep navy/teal header & dark text */
  --color-ocean-medium: #3a6878;    /* Muted teal for accents & secondary text */
  --color-ocean-light: #98c1cd;     /* Soft seafoam blue hero overlay & accents */
  --color-ocean-bg: #d7e8ec;        /* Very light seafoam section backgrounds */
  --color-cream: #fbf9f4;           /* Warm off-white hero cards & section background */
  --color-sand-gold: #c59b27;       /* Gold/compass star accent color */
  --color-sand-hover: #a37f1e;      /* Hover state for gold elements */
  --color-text-primary: #212b31;    /* Primary dark body text */
  --color-text-muted: #5a6973;      /* Muted gray text */
  --color-white: #ffffff;
  --color-border: #e2ded4;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Montserrat', 'Helvetica Neue', sans-serif;

  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Layout */
  --container-max-width: 1280px;
  --header-height: 90px;
  --border-radius: 4px;
  --transition: all 0.3s ease-in-out;
  --box-shadow: 0 10px 30px rgba(27, 56, 70, 0.08);

  /* Header-Hero Divider Customization */
  --header-hero-divider-height: 3px;
  --header-hero-divider-color: var(--color-sand-gold);
  --header-hero-divider-gradient-start: var(--color-sand-gold);
  --header-hero-divider-gradient-end: var(--color-ocean-medium);
  --header-hero-divider-spacing: 2rem;
  --header-hero-divider-style: solid;
  --header-hero-divider-width: 85%;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-ocean-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--color-sand-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-ocean-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
}

blockquote {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  text-align: center;
  color: var(--color-ocean-dark);
  margin: 2.5rem 0;
  padding: 0 2rem;
  border: none;
}

/* ==========================================================================
   3. LAYOUT & CONTAINER
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: var(--spacing-xl) 0;
}

.site-main {
  min-height: 60vh;
}

/* ==========================================================================
   4. HEADER & SPLIT NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-cream);
  border-bottom: 1px solid rgba(27, 56, 70, 0.08);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container.header-split-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-header .site-branding {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.site-title a {
  color: var(--color-ocean-dark);
}

.site-header .main-navigation {
  flex: 1 1 0%;
}

.site-header .main-navigation.nav-left {
  display: flex;
  justify-content: flex-end;
}

.site-header .main-navigation.nav-right {
  display: flex;
  justify-content: flex-start;
}

.site-header .main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-header .main-navigation a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-ocean-dark);
  padding: 0.5rem 0;
  white-space: nowrap;
}

/* ==========================================================================
   MOBILE MENU TOGGLE BUTTON
   ========================================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-ocean-dark);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 1px;
}

.home .menu-toggle .hamburger-line {
  background-color: #003366;
}

/* X transformation when active */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Screen Reader Text Helper Class */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   5. BUTTONS & UTILITIES
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1rem 2.2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-ocean-dark);
  color: var(--color-white);
  border: 1px solid var(--color-ocean-dark);
}

.btn-primary:hover {
  background-color: var(--color-sand-gold);
  border-color: var(--color-sand-gold);
  color: var(--color-white);
}

.btn-link {
  background: transparent;
  color: var(--color-ocean-dark);
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--color-ocean-dark);
  border-radius: 0;
}

.btn-link:hover {
  color: var(--color-sand-gold);
  border-color: var(--color-sand-gold);
}

.text-center { text-align: center; }

/* ==========================================================================
   6. FOOTER STYLES
   ========================================================================== */
.site-footer {
  background-color: var(--color-cream);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-info {
  border-top: 1px solid rgba(27, 56, 70, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --header-height: auto;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .site-header {
    background-color: var(--color-cream);
    border-bottom: 1px solid rgba(27, 56, 70, 0.08);
  }

  .home .site-header {
    position: relative;
    background: var(--color-cream);
    border-bottom: 1px solid rgba(27, 56, 70, 0.08);
    padding: 0.5rem 0;
  }

  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }

  /* Keep logo centered */
  .site-branding {
    margin: 0 auto;
    padding: 0 4rem;
  }

  /* Hide navigation by default on mobile */
  .site-header .main-navigation {
    display: none;
    width: 100%;
    order: 10;
    padding: 0 1rem;
  }

  .site-header .main-navigation.toggled {
    display: block;
  }

  .site-header .main-navigation.nav-left,
  .site-header .main-navigation.nav-right {
    justify-content: center;
  }

  .site-header .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
  }

  .site-header .main-navigation li {
    width: 100%;
    text-align: center;
  }

  .site-header .main-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
  }

  .site-header .container.header-split-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
  }

  /* Ensure navs stack below logo */
  .site-header .main-navigation.nav-left,
  .site-header .main-navigation.nav-right {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   8. HOMEPAGE-SPECIFIC STYLES
   ========================================================================== */
.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 1000;
  padding: 1rem 0;
}

.home .site-header .site-branding,
.home .site-header .main-navigation a {
  color: #003366;
}

.home .site-header .site-description {
  color: rgba(255, 255, 255, 0.8);
}

.home .site-header .main-navigation ul {
  gap: 1.5rem;
}

.home .site-header .main-navigation a:hover,
.home .site-header .main-navigation a:focus {
  color: #f9d9a6;
}

.homepage-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(27, 56, 70, 0.05) 0%, rgba(152, 193, 205, 0.08) 100%);
  padding: 0;
  overflow: visible;
}

.hero-banner-wrapper {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(27, 56, 70, 0.05) 0%, rgba(152, 193, 205, 0.08) 100%);
  padding: 2.5rem 0;
}

.hero-banner-background {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;

  background:
    linear-gradient(
      rgba(152, 193, 205, 0.7),
      rgba(152, 193, 205, 0.7)
    ),
    url("https://theothersideofmae.com/wp-content/uploads/2026/07/Banner-tropical-beach-getaway.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(27, 56, 70, 0.15);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content-section {
  position: relative;
  padding: 4rem 0;
  background: var(--color-white);
}

.hero-content-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-cream);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 20px 50px rgba(27, 56, 70, 0.08);
  border: 1px solid rgba(27, 56, 70, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.homepage-hero:hover .hero-image-inner {
  transform: scale(1.02);
  box-shadow: 0 40px 80px rgba(27, 56, 70, 0.25);
}

.homepage-hero:hover .hero-content-card {
  box-shadow: 0 30px 70px rgba(27, 56, 70, 0.15);
  transform: translateY(-3px);
}

.hero-eyebrow {
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-ocean-medium);
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.1;
  color: var(--color-ocean-dark);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .button-primary,
.hero-cta .button-secondary {
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .hero-banner-background {
    padding: 1.25rem;
  }

  .hero-image-inner {
    aspect-ratio: 16 / 10;
  }

  .hero-content-card {
    padding: 2.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-banner-wrapper {
    padding: 1.5rem 0;
  }

  .hero-banner-background {
    width: 95%;
    padding: 1rem;
  }

  .hero-image-inner {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .hero-content-section {
    padding: 2.5rem 0;
  }

  .hero-content-card {
    max-width: 100%;
    width: 95%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-banner-wrapper {
    padding: 1rem 0;
  }

  .hero-banner-background {
    width: 95%;
    padding: 0.75rem;
  }

  .hero-image-inner {
    aspect-ratio: 1 / 1;
  }

  .hero-content-card {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero-eyebrow {
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .menu-toggle {
    right: 0.75rem;
  }

  .site-branding {
    padding: 0 3.5rem;
  }

  .site-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   HEADER-HERO DIVIDER
   ========================================================================== */
.header-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--header-hero-divider-width);
  max-width: var(--container-max-width);
  height: var(--header-hero-divider-height);
  margin: var(--header-hero-divider-spacing) auto;
  position: relative;
}

/* Solid Style */
.header-hero-divider.style-solid {
  background-color: var(--header-hero-divider-color);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.2);
}

/* Gradient Style */
.header-hero-divider.style-gradient {
  background: linear-gradient(
    90deg,
    var(--header-hero-divider-gradient-start) 0%,
    var(--header-hero-divider-gradient-end) 100%
  );
  border-radius: 2px;
}

/* Decorative Style with Center Accent */
.header-hero-divider.style-decorative {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--header-hero-divider-color) 20%,
    var(--header-hero-divider-color) 80%,
    transparent 100%
  );
  height: 1px;
}

.header-hero-divider.style-decorative::before {
  content: '◆';
  position: absolute;
  color: var(--header-hero-divider-color);
  font-size: calc(var(--header-hero-divider-height) * 2);
  line-height: 1;
  background: var(--color-cream);
  padding: 0 0.5rem;
}

/* Default to solid if no style specified */
.header-hero-divider:not([class*="style-"]) {
  background-color: var(--header-hero-divider-color);
  border-radius: 2px;
}

@media (max-width: 992px) {
  .header-hero-divider {
    --header-hero-divider-spacing: 1.5rem;
    --header-hero-divider-height: 2px;
  }
}

@media (max-width: 768px) {
  .header-hero-divider {
    --header-hero-divider-spacing: 1.25rem;
    --header-hero-divider-width: 90%;
  }

  .header-hero-divider.style-decorative::before {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-hero-divider {
    --header-hero-divider-spacing: 1rem;
    --header-hero-divider-height: 2px;
  }
}

/* ==========================================================================
   SECTION DIVIDERS
   ========================================================================== */
.section-divider {
  height: 4px;
  background-color: #1B3846;
  margin: 3rem auto;
  width: 90%;
  max-width: var(--container-max-width);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .section-divider {
    margin: 2rem auto;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .section-divider {
    margin: 1.5rem auto;
    height: 2px;
  }
}


.homepage-quote {
  padding: 4rem 0;
  background-color: var(--color-cream);
}

/* Quote Carousel Container */
.quote-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

/* Quote Slides */
.quote-slides {
  position: relative;
  width: 100%;
}

.quote-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  text-align: center;
}

.quote-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.quote-slide blockquote {
  margin: 0 auto 1.5rem;
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  color: var(--color-ocean-dark);
  font-family: var(--font-heading);
  text-align: center;
  font-style: italic;
}

.quote-author {
  margin: 0;
  color: var(--color-ocean-medium);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Carousel Controls */
.quote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.quote-prev,
.quote-next {
  background: transparent;
  border: 1px solid var(--color-ocean-medium);
  color: var(--color-ocean-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.quote-prev:hover,
.quote-next:hover {
  background-color: var(--color-ocean-dark);
  color: var(--color-white);
  border-color: var(--color-ocean-dark);
}

.quote-prev:focus,
.quote-next:focus {
  outline: 2px solid var(--color-sand-gold);
  outline-offset: 2px;
}

/* Quote Dots Navigation */
.quote-dots {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(27, 56, 70, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.quote-dot.active {
  background-color: var(--color-sand-gold);
  width: 28px;
  border-radius: 5px;
}

.quote-dot:hover {
  background-color: rgba(27, 56, 70, 0.4);
}

.quote-dot.active:hover {
  background-color: var(--color-sand-gold);
}

.quote-dot:focus {
  outline: 2px solid var(--color-sand-gold);
  outline-offset: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .quote-carousel {
    max-width: 100%;
    padding: 0 1rem;
  }

  .quote-slide blockquote {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
  }

  .quote-author {
    font-size: 0.9rem;
  }

  .quote-controls {
    gap: 1rem;
    margin-top: 2rem;
  }

  .quote-prev,
  .quote-next {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .quote-dots {
    gap: 0.5rem;
  }

  .quote-dot {
    width: 8px;
    height: 8px;
  }

  .quote-dot.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .homepage-quote {
    padding: 3rem 0;
  }

  .quote-slide blockquote {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  .quote-author {
    font-size: 0.85rem;
  }

  .quote-controls {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .quote-prev,
  .quote-next {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  .quote-dot {
    width: 7px;
    height: 7px;
  }

  .quote-dot.active {
    width: 20px;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .quote-slide {
    transition: none;
  }
}

.homepage-intro,
.homepage-book {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 6rem 0;
}

/* ==========================================================================
   INTRO IMAGE 3D EFFECT
   ========================================================================== */
.intro-image-wrapper {
  perspective: 1000px;
  overflow: visible;
}

.intro-image-3d {
  position: relative;
  transform-style: preserve-3d;
  animation: float3D 8s ease-in-out infinite;
  will-change: transform;
}

.intro-image-3d img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: var(--box-shadow);
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

/* Layered shadows for 3D depth */
.intro-image-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
}

.intro-image-shadow:nth-child(1) {
  background: rgba(27, 56, 70, 0.08);
  transform: translateZ(0) translateY(8px);
  box-shadow: 0 8px 16px rgba(27, 56, 70, 0.12);
}

.intro-image-shadow:nth-child(2) {
  background: rgba(27, 56, 70, 0.05);
  transform: translateZ(-10px) translateY(16px);
  box-shadow: 0 16px 32px rgba(27, 56, 70, 0.15);
}

.intro-image-shadow:nth-child(3) {
  background: rgba(27, 56, 70, 0.03);
  transform: translateZ(-20px) translateY(24px);
  box-shadow: 0 24px 48px rgba(27, 56, 70, 0.18);
}

/* Subtle gradient overlay for premium effect */
.intro-image-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(27, 56, 70, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Scroll-driven animation for modern browsers */
@keyframes float3D {
  0% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) scale(1.02);
  }
  50% {
    transform: translateY(-12px) rotateX(5deg) rotateY(0deg) scale(1.03);
  }
  75% {
    transform: translateY(-8px) rotateX(3deg) rotateY(3deg) scale(1.02);
  }
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

/* Fallback entrance animation */
.intro-image-3d {
  opacity: 0;
  animation: fadeInFloat 1.2s ease-out forwards, float3D 8s ease-in-out 1.2s infinite;
}

@keyframes fadeInFloat {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hover interaction for desktop */
@media (hover: hover) {
  .intro-image-3d:hover {
    animation-play-state: paused;
    transform: translateY(-12px) rotateX(5deg) rotateY(-3deg) scale(1.03);
    transition: transform 0.4s ease;
  }

  .intro-image-3d:hover img {
    transform: translateZ(30px);
    box-shadow: 0 30px 60px rgba(27, 56, 70, 0.2);
  }
}

.homepage-intro .intro-image img,
.homepage-book .book-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.homepage-intro .intro-content h2,
.homepage-book .book-copy h2 {
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
}

.homepage-intro .intro-content p,
.homepage-book .book-copy p,
.service-copy {
  color: var(--color-text-primary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.button-secondary,
.button-primary {
  display: inline-block;
  border-radius: 999px;
  padding: 1rem 2.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}

.button-secondary {
  border: 1px solid var(--color-ocean-dark);
  color: var(--color-ocean-dark);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--color-ocean-dark);
  color: var(--color-white);
}

.button-primary {
  background: var(--color-ocean-dark);
  color: var(--color-white);
  border: 1px solid var(--color-ocean-dark);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--color-sand-gold);
  border-color: var(--color-sand-gold);
}

.service-intro {
  max-width: 940px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid rgba(27, 56, 70, 0.08);
  border-radius: 28px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card h3 a,
.service-link {
  color: var(--color-ocean-dark);
  text-decoration: none;
}

.service-card h3 a:hover,
.service-link:hover {
  color: var(--color-sand-gold);
}

.homepage-book .book-cover {
  max-width: 420px;
  margin: 0 auto;
}

.homepage-book .book-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--color-ocean-medium);
}

.homepage-blog {
  background: linear-gradient(180deg, rgba(115, 196, 186, 0.15) 0%, rgba(243, 236, 221, 0.4) 100%);
  padding: 6rem 0 8rem;
}

.homepage-blog .container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.homepage-blog .section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.homepage-blog .section-heading .eyebrow {
  margin-bottom: 1rem;
}

.homepage-blog .section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(27, 56, 70, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.320, 1);
  border: 1px solid rgba(27, 56, 70, 0.04);
}

.blog-card-link:hover .blog-card {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(27, 56, 70, 0.15);
  border-color: rgba(27, 56, 70, 0.1);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-ocean-light) 0%, var(--color-ocean-bg) 100%);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.blog-card-link:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-ocean-light) 0%, var(--color-ocean-medium) 100%);
  opacity: 0.7;
}

.blog-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.blog-card-meta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--color-ocean-medium);
  font-weight: 500;
  opacity: 0.85;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--color-ocean-dark);
  margin: 0;
  font-weight: 400;
  transition: color 0.3s ease;
}

.blog-card-link:hover .blog-card-title {
  color: var(--color-sand-gold);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}

.blog-card-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ocean-dark);
  transition: color 0.3s ease;
}

.blog-card-link:hover .blog-card-cta {
  color: var(--color-sand-gold);
}

.blog-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.blog-empty-message {
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .blog-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .blog-card-body {
    padding: 1.5rem;
  }

  .blog-card-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .homepage-blog {
    padding: 4rem 0 5rem;
  }

  .blog-preview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card-body {
    padding: 1.5rem;
  }

  .blog-card-title {
    font-size: 1.15rem;
  }

  .blog-card-excerpt {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-card-image {
    height: 180px;
  }

  .blog-card-body {
    padding: 1.25rem;
  }

  .blog-card-title {
    font-size: 1rem;
  }

  .blog-card-excerpt {
    font-size: 0.85rem;
  }
}


.homepage-gallery {
  padding: 6rem 0;
}

.homepage-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.homepage-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.homepage-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.homepage-gallery .gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Gallery Item 3D Effect */
.gallery-item-3d {
  position: relative;
  transform-style: preserve-3d;
  animation: galleryFloat3D 6s ease-in-out infinite;
  will-change: transform;
}

.gallery-item-3d img {
  position: relative;
  box-shadow: 0 15px 35px rgba(27, 56, 70, 0.12);
  transform: translateZ(15px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Layered shadows for gallery depth */
.gallery-item-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
}

.gallery-item-shadow:nth-child(1) {
  background: rgba(27, 56, 70, 0.06);
  transform: translateZ(0) translateY(5px);
  box-shadow: 0 6px 12px rgba(27, 56, 70, 0.1);
}

.gallery-item-shadow:nth-child(2) {
  background: rgba(27, 56, 70, 0.03);
  transform: translateZ(-8px) translateY(10px);
  box-shadow: 0 12px 24px rgba(27, 56, 70, 0.12);
}

/* Subtle gradient overlay for premium effect */
.gallery-item-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 50%,
    rgba(27, 56, 70, 0.04) 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Staggered animation delays for gallery grid */
.gallery-item-3d:nth-child(1) { animation-delay: 0s; }
.gallery-item-3d:nth-child(2) { animation-delay: 0.5s; }
.gallery-item-3d:nth-child(3) { animation-delay: 1s; }
.gallery-item-3d:nth-child(4) { animation-delay: 1.5s; }

/* Gallery floating animation */
@keyframes galleryFloat3D {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }
  25% {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg) scale(1.01);
  }
  50% {
    transform: translateY(-10px) rotateX(3deg) rotateY(0deg) scale(1.02);
  }
  75% {
    transform: translateY(-6px) rotateX(2deg) rotateY(2deg) scale(1.01);
  }
}

/* Fallback entrance animation */
.gallery-item-3d {
  opacity: 0;
  animation: galleryFadeIn 1s ease-out forwards, galleryFloat3D 6s ease-in-out infinite;
}

.gallery-item-3d:nth-child(1) { animation-delay: 0s, 0s; }
.gallery-item-3d:nth-child(2) { animation-delay: 0.15s, 0.15s; }
.gallery-item-3d:nth-child(3) { animation-delay: 0.3s, 0.3s; }
.gallery-item-3d:nth-child(4) { animation-delay: 0.45s, 0.45s; }

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hover interaction for desktop */
@media (hover: hover) {
  .gallery-item-3d:hover {
    animation-play-state: paused;
    transform: translateY(-10px) rotateX(3deg) rotateY(-2deg) scale(1.02);
    z-index: 10;
  }

  .gallery-item-3d:hover img {
    transform: translateZ(25px);
    box-shadow: 0 25px 50px rgba(27, 56, 70, 0.2);
  }
}

/* Gallery Item 3D Effect */
.gallery-item-3d {
  position: relative;
  transform-style: preserve-3d;
  animation: galleryFloat3D 6s ease-in-out infinite;
  will-change: transform;
}

.gallery-item-3d img {
  position: relative;
  box-shadow: 0 15px 35px rgba(27, 56, 70, 0.12);
  transform: translateZ(15px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Layered shadows for gallery depth */
.gallery-item-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
}

.gallery-item-shadow:nth-child(1) {
  background: rgba(27, 56, 70, 0.06);
  transform: translateZ(0) translateY(5px);
  box-shadow: 0 6px 12px rgba(27, 56, 70, 0.1);
}

.gallery-item-shadow:nth-child(2) {
  background: rgba(27, 56, 70, 0.03);
  transform: translateZ(-8px) translateY(10px);
  box-shadow: 0 12px 24px rgba(27, 56, 70, 0.12);
}

/* Subtle gradient overlay for premium effect */
.gallery-item-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 50%,
    rgba(27, 56, 70, 0.04) 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Staggered animation delays for gallery grid */
.gallery-item-3d:nth-child(1) { animation-delay: 0s; }
.gallery-item-3d:nth-child(2) { animation-delay: 0.5s; }
.gallery-item-3d:nth-child(3) { animation-delay: 1s; }
.gallery-item-3d:nth-child(4) { animation-delay: 1.5s; }

/* Gallery floating animation */
@keyframes galleryFloat3D {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }
  25% {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg) scale(1.01);
  }
  50% {
    transform: translateY(-10px) rotateX(3deg) rotateY(0deg) scale(1.02);
  }
  75% {
    transform: translateY(-6px) rotateX(2deg) rotateY(2deg) scale(1.01);
  }
}

/* Fallback entrance animation */
.gallery-item-3d {
  opacity: 0;
  animation: galleryFadeIn 1s ease-out forwards, galleryFloat3D 6s ease-in-out infinite;
}

.gallery-item-3d:nth-child(1) { animation-delay: 0s, 0s; }
.gallery-item-3d:nth-child(2) { animation-delay: 0.15s, 0.15s; }
.gallery-item-3d:nth-child(3) { animation-delay: 0.3s, 0.3s; }
.gallery-item-3d:nth-child(4) { animation-delay: 0.45s, 0.45s; }

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hover interaction for desktop */
@media (hover: hover) {
  .gallery-item-3d:hover {
    animation-play-state: paused;
    transform: translateY(-10px) rotateX(3deg) rotateY(-2deg) scale(1.02);
    z-index: 10;
  }

  .gallery-item-3d:hover img {
    transform: translateZ(25px);
    box-shadow: 0 25px 50px rgba(27, 56, 70, 0.2);
  }
}

.homepage-ig {
  padding: 6rem 0 8rem;
  background: linear-gradient(180deg, rgba(244, 227, 197, 0.4) 0%, rgba(248, 244, 236, 0.95) 100%);
}

.homepage-ig .ig-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.homepage-ig .ig-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

@media (max-width: 992px) {
  .homepage-intro,
  .homepage-book {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: auto;
  }

  .homepage-gallery .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-ig .ig-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .homepage-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }

  .homepage-ig .ig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-book {
    padding: 4rem 0;
  }

  .homepage-intro {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .homepage-ig .ig-grid {
    grid-template-columns: 1fr;
  }

  /* Intro Image 3D - Mobile Optimization */
  .intro-image-wrapper {
    perspective: 800px;
  }

  .intro-image-3d {
    animation-duration: 10s;
  }

  .intro-image-3d img {
    transform: translateZ(10px);
    border-radius: 16px;
  }

  .intro-image-shadow:nth-child(1) {
    transform: translateZ(0) translateY(6px);
    box-shadow: 0 6px 12px rgba(27, 56, 70, 0.1);
  }

  .intro-image-shadow:nth-child(2) {
    transform: translateZ(-8px) translateY(12px);
    box-shadow: 0 12px 24px rgba(27, 56, 70, 0.12);
  }

  .intro-image-shadow:nth-child(3) {
    transform: translateZ(-16px) translateY(18px);
    box-shadow: 0 18px 36px rgba(27, 56, 70, 0.15);
  }

  .intro-image-shadow {
    border-radius: 16px;
  }

  .intro-image-3d::after {
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  /* Intro Image 3D - Tablet Optimization */
  .intro-image-wrapper {
    perspective: 1000px;
  }

  .intro-image-3d img {
    transform: translateZ(15px);
    border-radius: 20px;
  }

  .intro-image-shadow:nth-child(1) {
    transform: translateZ(0) translateY(7px);
    box-shadow: 0 7px 14px rgba(27, 56, 70, 0.11);
  }

  .intro-image-shadow:nth-child(2) {
    transform: translateZ(-10px) translateY(14px);
    box-shadow: 0 14px 28px rgba(27, 56, 70, 0.14);
  }

  .intro-image-shadow:nth-child(3) {
    transform: translateZ(-20px) translateY(21px);
    box-shadow: 0 21px 42px rgba(27, 56, 70, 0.16);
  }

  .intro-image-shadow {
    border-radius: 20px;
  }

  .intro-image-3d::after {
    border-radius: 20px;
  }
}

/* Performance optimization for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .intro-image-3d {
    animation: fadeInFloat 0.8s ease-out forwards;
  }

  .intro-image-3d:hover {
    animation-play-state: paused;
    transform: none;
  }

  .intro-image-3d:hover img {
    transform: translateZ(20px);
  }
}

/* ==========================================================================
   9. HOMEPAGE WIDGET AREAS
   ========================================================================== */
.homepage-top-widgets-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.homepage-middle-widgets-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-cream);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.homepage-bottom-widgets-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.homepage-widget {
  margin-bottom: var(--spacing-md);
}

.homepage-widget:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .homepage-top-widgets-section,
  .homepage-middle-widgets-section,
  .homepage-bottom-widgets-section {
    padding: var(--spacing-md) 0;
  }
}

