/* ClariFree — style.css */

/* ===== VARIABLES ===== */
:root {
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --black: #111111;
  --grey: #6B6B6B;
  --grey-light: #D0CECA;
  --grey-border: #E4E2DD;
  --azure: #004B79;
  --azure-light: #E8F0F7;

  --font-serif: 'Libre Baskerville', serif;
  --font-garamond: 'Cormorant Garamond', serif;

  --nav-h: 64px;
  --max-w: 1280px;
  --max-narrow: 760px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-garamond);
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== SAFE AREA ===== */
.safe {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}
.safe-narrow { max-width: var(--max-narrow); }

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-border);
  height: var(--nav-h);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-family: var(--font-garamond);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--azure);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--azure); }
.nav-link.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.section-alt { background: var(--off-white); }
body > section:first-of-type { padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem)); }
.section-home { padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem)); min-height: 100svh; display: flex; align-items: center; }

/* ===== TYPOGRAPHY HELPERS ===== */
.eyebrow {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ===== HOME ===== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.home-text { display: flex; flex-direction: column; gap: 1.5rem; }
.home-tagline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}
.home-body {
  font-family: var(--font-garamond);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: #000000;
  line-height: 1.8;
}
.home-pillars {
  font-family: var(--font-garamond);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  padding-top: 0.5rem;
}
.home-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-logo {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 0 32px rgba(160,160,160,0.38)) drop-shadow(0 0 8px rgba(180,180,180,0.18));
}

/* ===== TOOLS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 2rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.tool-card:hover {
  border-color: var(--azure);
  box-shadow: 0 12px 40px rgba(0,75,121,0.1);
  transform: translateY(-4px);
}
.tool-card-img-wrap {
  position: relative;
  background: var(--off-white);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-card-img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  filter: drop-shadow(0 0 24px rgba(180,180,180,0.55));
}
.tool-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.tool-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.04em;
}
.tool-card-desc {
  font-family: var(--font-garamond);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--black);
  line-height: 1.7;
}
.tool-card-cta {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ===== ABOUT ===== */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.about-text p {
  font-family: var(--font-garamond);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  color: #000000;
  line-height: 1.85;
}
.about-highlight {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  font-style: normal !important;
}
.about-closing {
  font-family: var(--font-garamond) !important;
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
  font-style: italic !important;
  color: var(--azure) !important;
  font-weight: 400 !important;
}

/* ===== STORIES — index.html section ===== */

.stories-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.story-moment {
  display: flex;
  width: 100%;
}

.story-left  { justify-content: flex-start; }
.story-right { justify-content: flex-end; }

.story-glass {
  /* frosted glass — same spirit as tool-card-img-wrap */
  background: rgba(248, 247, 244, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 210, 205, 0.6);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.story-quote-mark {
  font-family: var(--font-garamond);
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--azure);
  opacity: 0.18;
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  pointer-events: none;
  user-select: none;
}

.story-quote {
  font-family: var(--font-garamond);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  line-height: 1.75;
  letter-spacing: 0.01em;
  border: none;
  margin: 0;
  padding: 0;
}

/* CTA below the flow */
.stories-cta {
  display: flex;
  justify-content: center;
  padding-top: clamp(1rem, 3vw, 2rem);
}

.btn-stories {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure);
  border-bottom: 1px solid var(--azure);
  padding-bottom: 3px;
  transition: opacity 0.25s, letter-spacing 0.25s;
}
.btn-stories:hover {
  opacity: 0.7;
  letter-spacing: 0.14em;
}

/* ===== CONTACT ===== */
.contact-sub {
  font-family: var(--font-garamond);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 300;
  color: var(--grey);
  margin-bottom: 2.5rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  font-family: var(--font-garamond);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.contact-item:hover {
  border-color: var(--azure);
  color: var(--azure);
  background: var(--azure-light);
}
.contact-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--grey);
}
.contact-item:hover .contact-icon { color: var(--azure); }
.contact-label { flex: 1; }
.contact-arrow {
  color: var(--grey-light);
  font-size: 1rem;
  transition: color 0.25s, transform 0.25s;
}
.contact-item:hover .contact-arrow {
  color: var(--azure);
  transform: translateX(4px);
}
.contact-book { margin-bottom: 1.5rem; }
.btn-book {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--azure);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2.25rem;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
}
.btn-book:hover { opacity: 0.88; transform: translateY(-2px); }
.contact-feedback { text-align: left; }
.btn-feedback {
  font-family: var(--font-garamond);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--grey);
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.btn-feedback:hover { color: var(--azure); border-color: var(--azure); }

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-garamond);
  font-size: clamp(1.2rem, 1.8vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  opacity: 0.75;
  max-width: 600px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: var(--font-garamond);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-family: var(--font-garamond);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: slideUp 0.35s ease;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--grey);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--black); }
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
}
.modal-sub {
  font-family: var(--font-garamond);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--grey);
  margin-bottom: 1.75rem;
}
.modal-options { display: flex; flex-direction: column; gap: 0.875rem; }
.modal-opt {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  font-family: var(--font-garamond);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.modal-opt:hover {
  border-color: var(--azure);
  color: var(--azure);
  background: var(--azure-light);
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-logo-wrap { order: -1; }
  .home-logo { max-width: 240px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link {
    display: block;
    padding: 0.875rem clamp(1.25rem, 5vw, 4rem);
  }
  .nav-link::after { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 1.25rem; }

  /* Stories flow — full width on mobile */
  .story-left,
  .story-right { justify-content: center; }
  .story-glass { max-width: 100%; }
}

@media (max-width: 480px) {
  .home-pillars { font-size: 0.95rem; }
  .section-title { margin-bottom: 1.5rem; }
  .contact-item { padding: 1rem 1.25rem; }
}