/* ===================================================
   Hillview Guesthouse — Modern Redesign
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #2c3e50;
  --color-accent: #8b6f47;
  --color-accent-light: #c9a96e;
  --color-bg: #faf9f7;
  --color-bg-alt: #f0ede8;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-white: #ffffff;
  --color-dark: #1a1a2e;
  --color-border: #e0dcd5;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
  --transition: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.2em;
  color: var(--color-text);
}

/* --- Layout Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

.logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  top: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-circle:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Placeholder when no logo image yet */
.logo-circle::after {
  content: '';
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  background: var(--color-bg-alt);
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 22px !important;
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  background: var(--color-accent-light) !important;
  color: var(--color-white) !important;
}

/* --- Mobile Menu Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================
   HERO SECTION (Index page only)
   =================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-image.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--color-white);
}

.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 3px solid var(--color-accent);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 28px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.3);
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(139,111,71,0.3);
}

.hero-cta:hover {
  background: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,111,71,0.4);
}

/* ===================================================
   MAIN CONTENT AREA
   =================================================== */
.page-body {
  margin-top: var(--nav-height);
}

/* Page banner for sub-pages */
.page-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.page-banner h2 {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0;
}

/* Content section */
.content-section {
  padding: 60px 0;
}

.content-section .container {
  max-width: 900px;
}

.content-section .text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
}

.content-section .text p {
  margin-bottom: 1.4em;
}

/* Section heading with decorative line */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* --- Image Grid --- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.image-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* --- Bullet List --- */
.feature-list {
  margin: 24px 0 32px;
  padding-left: 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 36px;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  text-align: center;
  color: var(--color-accent);
  font-size: 0.95rem;
}

/* --- Tables (Tariff) --- */
.tariff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tariff-table th,
.tariff-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
}

.tariff-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.tariff-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.tariff-table tr:nth-child(odd) {
  background: var(--color-white);
}

.tariff-table tr:hover td {
  background: rgba(139,111,71,0.06);
}

.tariff-table td {
  border-bottom: 1px solid var(--color-border);
}

/* --- Welcome Section (Home page) --- */
.welcome-section {
  padding: 80px 0;
  background: var(--color-white);
}

.welcome-section .container {
  max-width: 800px;
  text-align: center;
}

.welcome-section h2 {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.welcome-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.welcome-section .text {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-bg-alt);
}
.cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.cta-banner p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.cta-banner .btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.cta-banner .btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}
.cta-inline p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cta-inline .btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.cta-inline .btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .cta-inline {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Contact Cards --- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--color-text);
}
a.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.contact-card i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.contact-card-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.contact-card-value {
  font-size: 0.95rem;
  color: var(--color-text-light);
  word-break: break-word;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-info p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-info a {
  color: var(--color-accent-light);
}

.footer-info a:hover {
  color: var(--color-white);
}

.footer-info strong {
  color: rgba(255,255,255,0.9);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.footer-social a,
.footer-social span {
  display: flex;
  align-items: center;
}

.footer-social img {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
  border-radius: 4px;
}

.footer-social img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* --- Circular Logo in Footer --- */
.footer-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--color-accent);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ===================================================
   BOOKING WIDGET
   =================================================== */
#f2b-widget {
  margin: 32px 0;
  padding: 12px 14px 12px 14px !important;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  max-width: 100%;
  overflow: visible;
  height: 65px !important;
}
#f2b-widget > div,
#f2b-widget > form {
  width: 100%;
  max-width: 100%;
}
#f2b-widget table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0;
}
#f2b-widget br {
  display: none;
}
#f2b-widget div {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
#f2b-widget td,
#f2b-widget th {
  padding: 6px 8px;
  vertical-align: middle;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
}
#f2b-widget input[type="text"],
#f2b-widget input[type="number"],
#f2b-widget input[type="date"],
#f2b-widget select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
  max-width: 100%;
}
#f2b-widget input:focus,
#f2b-widget select:focus {
  border-color: var(--color-accent);
}
#f2b-widget input[type="submit"],
#f2b-widget input[type="button"],
#f2b-widget button {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
#f2b-widget input[type="submit"]:hover,
#f2b-widget input[type="button"]:hover,
#f2b-widget button:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}
#f2b-widget img {
  max-width: 100%;
  height: auto;
}
#f2b-widget a {
  color: var(--color-accent);
}
#f2b-widget font {
  font-family: var(--font-body) !important;
  color: var(--color-text) !important;
}

/* ===================================================
   LIGHTBOX
   =================================================== */
.image-grid img {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: background var(--transition);
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }

.lightbox-close:hover::before,
.lightbox-close:hover::after {
  background: #fff;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev::after,
.lightbox-next::after {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255,255,255,0.8);
  border-right: 2px solid rgba(255,255,255,0.8);
}

.lightbox-prev::after { transform: rotate(-135deg); margin-left: 4px; }
.lightbox-next::after { transform: rotate(45deg); margin-right: 4px; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 20px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius);
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 12px;
  }

  .image-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .image-grid img {
    height: 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-social {
    justify-content: center;
  }

  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .page-banner {
    height: 220px;
  }

  .welcome-section {
    padding: 50px 0;
  }

  .content-section {
    padding: 40px 0;
  }
}

@media (max-width: 600px) {
  .logo-circle {
    width: 80px;
    height: 80px;
    top: 12px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-text small {
    font-size: 0.6rem;
  }

  .hero {
    height: 60vh;
    min-height: 350px;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .tariff-table th,
  .tariff-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */

/* --- Initial hidden states --- */
[data-anim] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Fade up */
[data-anim="fade-up"] {
  transform: translateY(40px);
}

/* Fade in (no movement) */
[data-anim="fade"] {
  transform: none;
}

/* Slide in from left */
[data-anim="slide-left"] {
  transform: translateX(-60px);
}

/* Slide in from right */
[data-anim="slide-right"] {
  transform: translateX(60px);
}

/* Twist in (rotate + scale) */
[data-anim="twist"] {
  transform: rotate(-6deg) scale(0.92);
}

/* Twist from left */
[data-anim="twist-left"] {
  transform: rotate(4deg) translateX(-40px) scale(0.95);
}

/* Twist from right */
[data-anim="twist-right"] {
  transform: rotate(-4deg) translateX(40px) scale(0.95);
}

/* Scale up */
[data-anim="scale"] {
  transform: scale(0.85);
}

/* --- Visible state --- */
[data-anim].anim-visible {
  opacity: 1;
  transform: none;
}

/* --- Stagger delays --- */
[data-anim-delay="1"] { transition-delay: 0.08s; }
[data-anim-delay="2"] { transition-delay: 0.16s; }
[data-anim-delay="3"] { transition-delay: 0.24s; }
[data-anim-delay="4"] { transition-delay: 0.32s; }
[data-anim-delay="5"] { transition-delay: 0.4s; }
[data-anim-delay="6"] { transition-delay: 0.48s; }

/* --- Hero entrance (plays immediately) --- */
.hero [data-anim] {
  transition-duration: 1s;
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
