/* ============================================
   THE SILK ADVISORY — DESIGN SYSTEM STYLES
   ============================================ */

/* ============================================
   CSS RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2b2e2d;
  background-color: #f7f8f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
  /* Colors */
  --deep-teal: #0f4c5c;
  --champagne-gold: #c6aa76;
  --soft-off-white: #f7f8f6;
  --warm-grey: #6f7573;
  --charcoal: #2b2e2d;
  --border-light: rgba(111, 117, 115, 0.15);
  --white: #ffffff;

  /* Typography */
  --font-serif: "Libre Baskerville", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --text-hero: 3.5rem;
  --text-h1: 2.5rem;
  --text-h2: 1.875rem;
  --text-h3: 1.375rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-body-sm: 0.875rem;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --content-max-width: 1200px;
  --content-narrow: 800px;
  --section-padding-y: 8rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--charcoal);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: var(--content-narrow);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(
      rgba(15, 76, 92, 0.85),
      rgba(15, 76, 92, 0.85)
    ),
    url("images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--soft-off-white);
}

.section--teal {
  background-color: var(--deep-teal);
  color: var(--soft-off-white);
}

.section--white {
  background-color: var(--soft-off-white);
}

.section--off-white {
  background-color: var(--white);
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-col {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-col {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 500;
  padding: 1rem 2rem;
  border: 2px solid var(--champagne-gold);
  background-color: transparent;
  color: var(--champagne-gold);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background-color: var(--champagne-gold);
  color: var(--white);
  border-color: var(--champagne-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 170, 118, 0.3);
}

.btn-primary--on-dark {
  background-color: var(--champagne-gold);
  color: var(--white);
  border-color: var(--champagne-gold);
}

.btn-primary--on-dark:hover {
  background-color: transparent;
  color: var(--champagne-gold);
  border-color: var(--champagne-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 170, 118, 0.2);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--champagne-gold);
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  color: var(--champagne-gold);
  border-bottom-color: var(--charcoal);
}

.btn-secondary--on-dark {
  color: var(--soft-off-white);
  border-bottom-color: var(--champagne-gold);
}

.btn-secondary--on-dark:hover {
  color: var(--champagne-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-content {
  max-width: 900px;
  animation: floatingDrift 10s ease-in-out infinite;
}

@keyframes floatingDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);

  /* Silk Liquid Shine Animation */
  background: linear-gradient(
    to right,
    #f7f8f6 0%,
    #f7f8f6 10%,
    var(--champagne-gold) 20%,
    var(--champagne-gold) 30%,
    #f7f8f6 40%,
    #f7f8f6 100%
  );
  background-size: 250% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textLiquidShine 6s linear infinite;
}

@keyframes textLiquidShine {
  0% {
    background-position: 100% center;
  }
  100% {
    background-position: -150% center;
  }
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--soft-off-white);
  margin-bottom: var(--space-xl);
  max-width: 65ch;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

/* ============================================
   SECTION TITLES & CONTENT
   ============================================ */

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--charcoal);
  margin-bottom: var(--space-xl);
}

.section-title--centered {
  text-align: center;
}

.section--teal .section-title {
  color: var(--soft-off-white);
}

.section-intro {
  font-size: var(--text-body-lg);
  color: var(--warm-grey);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.section-content {
  max-width: 70ch;
}

.lead-paragraph {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.body-paragraph {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.closing-paragraph {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-normal);
  color: var(--charcoal);
  margin-top: var(--space-lg);
}

.tagline {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: 500;
  line-height: var(--leading-normal);
  color: var(--charcoal);
  margin-top: var(--space-lg);
  font-style: italic;
}

/* ============================================
   PROBLEM LIST
   ============================================ */

/* ============================================
   RISK GRID
   ============================================ */

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.risk-card {
  padding: var(--space-xl);
  background: var(--white);
  border-left: 3px solid var(--champagne-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.risk-card:hover {
  transform: translateX(5px);
}

.risk-card__icon {
  font-family: var(--font-serif);
  font-size: var(--text-body-sm);
  color: var(--champagne-gold);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.2em;
}

.risk-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--charcoal);
}

.risk-card__text {
  font-size: var(--text-body);
  color: var(--warm-grey);
  line-height: var(--leading-normal);
  margin-bottom: 0;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
  padding: var(--space-xl);
  background-color: var(--white);
  border-top: 1px solid var(--champagne-gold);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__list-item {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: var(--space-md);
  color: var(--charcoal);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  opacity: 0.9;
}

.service-card__list-item:last-child {
  margin-bottom: 0;
}

.service-card__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 2px;
  background-color: var(--champagne-gold);
}

.key-message {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: 500;
  text-align: center;
  margin-top: var(--space-2xl);
  color: var(--deep-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   IMAGE TEXT LAYOUTS
   ============================================ */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.split-layout--packages {
  grid-template-columns: 0.8fr 1.2fr;
}

.image-container {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-accent {
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  border-left: 2px solid var(--champagne-gold);
}

/* ============================================
   NAV & LOGO
   ============================================ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-lg) 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-frame {
  background-color: var(--white);
  padding: 0.8rem 1.6rem;
  border: 1px solid rgba(198, 170, 118, 0.1);
  border-top: 4px solid var(--champagne-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.logo-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 1.5s infinite linear;
}

.logo-frame:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  border-top-width: 6px;
}

@keyframes shimmer {
  100% {
    left: 250%;
  }
}

.logo-img {
  height: 55px; /* Refined for better proportions */
  width: auto;
  object-fit: contain;
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 0.8s ease forwards;
}

.reveal--delay-1 {
  animation-delay: 0.2s;
}
.reveal--delay-2 {
  animation-delay: 0.4s;
}

/* ============================================
   SECTION-SPECIFIC STYLES
   ============================================ */

.package-card {
  padding: var(--space-xl);
  background-color: var(--white);
  border: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.package-card:hover {
  border-color: var(--champagne-gold);
}

.package-card__name {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.package-card__description {
  font-size: var(--text-body);
  color: var(--warm-grey);
  line-height: var(--leading-normal);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-steps {
  max-width: 600px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step__number {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 400;
  color: var(--champagne-gold);
  opacity: 0.6;
  flex-shrink: 0;
  width: 3rem;
}

.process-step__content {
  flex: 1;
}

.process-step__title {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: 600;
  color: var(--charcoal);
  line-height: var(--leading-normal);
}

/* ============================================
   WHY US LIST
   ============================================ */

.why-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) auto 0;
  max-width: 500px;
}

.why-list__item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
  font-size: var(--text-body-lg);
  line-height: var(--leading-normal);
  color: var(--charcoal);
}

.why-list__item:last-child {
  margin-bottom: 0;
}

.why-list__item::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--champagne-gold);
  font-weight: 500;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  text-align: center;
}

.final-cta__headline {
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--soft-off-white);
  margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--deep-teal);
  padding: var(--space-2xl) 0;
  color: var(--soft-off-white);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--soft-off-white);
  margin-bottom: var(--space-sm);
}

.footer-contact {
  margin-bottom: var(--space-sm);
}

.footer-link {
  color: var(--soft-off-white);
  text-decoration: none;
  border-bottom: 1px solid var(--champagne-gold);
  padding-bottom: 0.125rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--champagne-gold);
  border-bottom-color: var(--soft-off-white);
}

.footer-copyright {
  font-size: var(--text-body-sm);
  color: var(--soft-off-white);
  opacity: 0.7;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
  outline: 2px solid var(--champagne-gold);
  outline-offset: 4px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .grid--4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-hero: 2.5rem;
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --section-padding-y: 4rem;
  }

  .grid--2-col,
  .grid--3-col,
  .grid--4-col,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .split-layout,
  .split-layout--packages {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .image-accent {
    height: auto;
    min-height: 250px;
    max-height: 400px;
    width: 100%;
  }

  .header {
    padding: var(--space-sm) 0;
  }

  .logo-frame {
    padding: 0.6rem 1.2rem;
  }

  .logo-img {
    height: 40px;
  }

  .hero-content {
    padding-top: var(
      --space-4xl
    ); /* Pushes down text from the absolute header */
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 400px;
    text-align: center;
  }

  .section-title {
    margin-bottom: var(--space-lg);
  }

  .service-card,
  .package-card {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --text-hero: 2rem;
    --text-h1: 1.75rem;
  }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .logo-img {
    height: 35px;
  }

  .logo-frame {
    padding: 0.4rem 1rem;
  }

  .section--hero {
    align-items: flex-start; /* Stop centering to give more top room */
    padding-top: var(--space-4xl);
  }
}
