/* ============================================================
   The Rameys — Global Stylesheet
   Beach chic: warm, airy, editorial, coastal
   ============================================================ */

/* ===== CSS Custom Properties ===== */
:root {
  /* Brand Palette */
  --linen:        #FAF7F2;
  --sandy-blush:  #E8D5BF;
  --driftwood:    #C4A882;
  --terracotta:   #C47A5A;
  --ocean-blue:   #4A8FA8;
  --navy:         #1C3A4A;
  --sage:         #8AAF9A;

  /* Derived tints */
  --linen-mid:    #F0EBE3;
  --blush-deep:   #EDD5C5;
  --blush-sand:   #EDE0D0;
  --teal-deep:    #2A7A8A;
  --teal-light:   #6AAFB8;
  --seafoam:      #A8CABB;
  --navy-mid:     #2A5060;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-height: 72px;
  --content-max: 1320px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);

  /* Motion */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--linen);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== Noise / Grain Texture ===== */
.grain-overlay {
  position: relative;
}
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.45s var(--ease-smooth),
              box-shadow 0.45s var(--ease-smooth);
}

.nav--transparent {
  background: transparent;
  box-shadow: none;
}

.nav--solid {
  background: var(--linen);
  box-shadow: 0 2px 24px rgba(28, 58, 74, 0.07);
}

.nav__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}
.nav__logo:hover { opacity: 0.75; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.35s var(--ease-smooth);
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 2px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transform-origin: center;
  transition: transform 0.35s var(--ease-smooth), opacity 0.35s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile drawer */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--linen);
  padding: 0 var(--pad-x);
  box-shadow: 0 12px 30px rgba(28, 58, 74, 0.1);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}
.nav__mobile.open {
  max-height: 480px;
  padding: 1rem var(--pad-x) 2rem;
}
.nav__mobile a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(196, 168, 130, 0.25);
  transition: color 0.3s ease;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--terracotta); }

/* ===== Hero ===== */
.hero {
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  background: linear-gradient(155deg,
    #FAF7F2 0%,
    #F2E8D5 28%,
    #E8D5BF 58%,
    #DBBF9C 85%,
    #D0AF88 100%);
  position: relative;
  overflow: hidden;
}

/* Linen texture on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

/* Soft ambient orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 122, 90, 0.08) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.8rem, 11vw, 8rem);
  color: var(--navy);
  line-height: 1.0;
  margin-bottom: 1.6rem;
  letter-spacing: -0.015em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--navy);
  opacity: 0.65;
  margin-bottom: 3rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  border: 1.5px solid currentColor;
  transition: background 0.35s var(--ease-smooth),
              color 0.35s var(--ease-smooth),
              transform 0.25s var(--ease-smooth);
}
.btn:hover { transform: translateY(-1px); }

.btn--terracotta {
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn--terracotta:hover {
  background: var(--terracotta);
  color: var(--linen);
}

.btn--ocean {
  color: var(--ocean-blue);
  border-color: var(--ocean-blue);
}
.btn--ocean:hover {
  background: var(--ocean-blue);
  color: white;
}

.btn--navy {
  color: var(--navy);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy);
  color: var(--linen);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--driftwood);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2.8s ease-in-out infinite;
  z-index: 2;
}
.scroll-indicator::before {
  content: '';
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--driftwood));
}

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

/* ===== Sections Intro ===== */
.section-intro {
  background: var(--sandy-blush);
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

/* ===== Typography Atoms ===== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: rgba(250, 247, 242, 0.65);
}

.heading-display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
}

.section-intro .heading-display {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
}

.section-intro p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--navy);
  opacity: 0.72;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.section-intro .eyebrow { position: relative; z-index: 1; }
.section-intro .heading-display { position: relative; z-index: 1; }

/* ===== Feature Blocks ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.feature-block--reverse { direction: rtl; }
.feature-block--reverse > * { direction: ltr; }

/* Decorative panels */
.feature-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 380px;
}

.feature-panel__watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Panel gradients */
.panel--travel    { background: linear-gradient(145deg, #4A8FA8 0%, #5AA8BC 50%, #6AAFB8 100%); }
.panel--sailing   { background: linear-gradient(145deg, #8AAF9A 0%, #98BFAB 50%, #A8CABB 100%); }
.panel--dashboard { background: linear-gradient(145deg, #C4A882 0%, #CCB090 50%, #D4BFA0 100%); }
.panel--stocks    { background: linear-gradient(145deg, #2A7A8A 0%, #328898 50%, #3A9AAA 100%); }
.panel--favorites { background: linear-gradient(145deg, #C47A5A 0%, #CC8868 50%, #D4977A 100%); }
.panel--consulting{ background: linear-gradient(145deg, #1C3A4A 0%, #224555 50%, #2A5060 100%); }

/* Content panels */
.feature-content {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content--travel    { background: #EDE0D0; }
.content--sailing   { background: var(--linen); }
.content--dashboard { background: #EDD5C5; }
.content--stocks    { background: var(--linen); }
.content--favorites { background: #EDE0D0; }
.content--consulting{ background: var(--linen); }

.feature-content .heading-display {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin-bottom: 1rem;
  max-width: 380px;
}

.feature-content p {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--navy);
  opacity: 0.72;
  line-height: 1.85;
  margin-bottom: 1.6rem;
  max-width: 420px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
}

.tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  background: rgba(28, 58, 74, 0.07);
  color: var(--navy);
  border: 1px solid rgba(28, 58, 74, 0.1);
}

/* Arrow link */
.arrow-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: gap 0.35s var(--ease-smooth), opacity 0.3s ease;
}
.arrow-link:hover { gap: 0.9rem; }
.arrow-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-smooth);
}
.arrow-link:hover svg { transform: translateX(3px); }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
}

.footer__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--sandy-blush);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  display: block;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer__nav a {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.4);
  transition: color 0.3s ease;
}
.footer__nav a:hover { color: var(--sandy-blush); }

.footer__divider {
  width: 48px;
  height: 1px;
  background: rgba(196, 168, 130, 0.25);
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.25);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

/* ===== Scroll Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out),
              transform 0.85s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up--d1 { transition-delay: 0.1s; }
.fade-up--d2 { transition-delay: 0.22s; }
.fade-up--d3 { transition-delay: 0.36s; }
.fade-up--d4 { transition-delay: 0.5s; }
.fade-up--d5 { transition-delay: 0.64s; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .feature-block {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .feature-block--reverse { direction: ltr; }

  .feature-panel { min-height: 260px; }
  .feature-content { padding: 3rem var(--pad-x); }
  .feature-content p { max-width: 100%; }
  .feature-content .heading-display { max-width: 100%; }
}

@media (max-width: 540px) {
  .hero__title { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero__subtitle { font-size: 0.95rem; }
  .section-intro { padding: 4rem var(--pad-x); }
  .footer__nav { gap: 1.2rem; }
}
