/* ==========================================================================
   SoloHer — Modern editorial blog theme
   Single-page layout · Inter throughout · soft depth · smooth interactions
   ========================================================================== */

:root {
  /* Color palette */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f8;
  --color-bg-tint: #eef6f5;
  --color-text: #15171c;
  --color-text-muted: #5b6470;
  --color-accent: #0d9488;
  --color-accent-strong: #0b7d73;
  --color-accent-light: rgba(13, 148, 136, 0.1);
  --color-border: #e7eaee;
  --color-white: #ffffff;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-hero: clamp(2.4rem, 6vw, 4.25rem);
  --font-size-h2: clamp(1.7rem, 3.5vw, 2.6rem);
  --font-size-h3: 1.3rem;
  --font-size-body: 1.1875rem;
  --font-size-small: 0.875rem;
  --line-height-body: 1.8;
  --line-height-heading: 1.12;
  --max-width-content: 720px;
  --max-width-wide: 1120px;

  /* System */
  --nav-height: 68px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(21, 23, 28, 0.04), 0 4px 12px rgba(21, 23, 28, 0.05);
  --shadow-md: 0 10px 30px rgba(21, 23, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(21, 23, 28, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-accent-strong);
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ----- Reading progress bar ----- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), #2dd4bf);
  z-index: 1100;
  transition: width 0.08s linear;
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.nav__brand span {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.975rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__links a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-strong);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
}

.btn:hover {
  color: var(--color-white);
  background: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.32);
}

/* ----- Eyebrow label ----- */
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  text-align: center;
  padding: calc(var(--nav-height) + 72px) 28px 96px;
  background:
    radial-gradient(60% 80% at 50% -10%, var(--color-bg-tint), transparent 70%),
    var(--color-bg);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #15171c, #2a3340);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Hero image placeholder */
.hero__image {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 8;
  margin: 48px auto 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--color-bg-tint), #ffffff 60%),
    var(--color-bg-alt);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-accent);
  object-fit: cover;
}

.hero__image svg {
  width: 44px;
  height: 44px;
  opacity: 0.8;
}

.hero__image span {
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.scroll-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
}

.scroll-prompt::after {
  content: '↓';
  display: inline-block;
  animation: nudge 1.8s var(--ease) infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ----- Content sections ----- */
.section {
  padding: 96px 28px;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.section h2 {
  font-size: var(--font-size-h2);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.section h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}

.section p {
  margin-bottom: 22px;
}

.section strong {
  font-weight: 700;
  color: var(--color-text);
}

.lead {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-text);
  font-weight: 500;
}

/* Plain bullet lists */
.section ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.section ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}

.section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Numbered destination lists — accent badge counters */
.section ol {
  list-style: none;
  counter-reset: item;
  margin: 8px 0 24px;
  padding: 0;
}

.section ol li {
  counter-increment: item;
  position: relative;
  padding: 18px 20px 18px 64px;
  margin-bottom: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.section ol li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.35);
}

.section ol li::before {
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent-strong);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
}

.section--alt ol li {
  background: var(--color-white);
}

/* ----- Callout / pull quote ----- */
.callout {
  position: relative;
  margin: 40px 0;
  padding: 28px 30px 28px 34px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
}

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

.callout p {
  margin: 0;
}

/* ----- Inline stats ----- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0 8px;
}

.stat {
  flex: 1;
  min-width: 160px;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.stat__number {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent), #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 10px;
}

/* ----- FAQ accordion ----- */
.faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.faq__item.is-open {
  border-color: rgba(13, 148, 136, 0.4);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 26px;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq__icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq__answer p {
  padding: 0 26px 24px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ----- Footer ----- */
.footer {
  background: #0f1115;
  color: var(--color-white);
  padding: 80px 28px 36px;
}

.footer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer__brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.footer__brand span {
  color: var(--color-accent);
}

.footer__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 22px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer__mail svg {
  width: 20px;
  height: 20px;
}

.footer__mail:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.975rem;
}

.footer a:hover {
  color: #2dd4bf;
}

.footer__bottom {
  max-width: var(--max-width-wide);
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--font-size-small);
}

.footer__bottom p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.footer__legal {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__legal-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.footer__legal-link:hover {
  color: #2dd4bf;
}

/* ----- Legal modals ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -20px -16px 0 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.modal__close:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  transform: rotate(90deg);
}

.modal__content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.modal__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 26px 0 10px;
}

.modal__content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.modal__content ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.modal__content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.modal__content ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.modal__content strong {
  color: var(--color-text);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal__dialog {
    padding: 36px 24px;
  }
}

/* ----- Scroll-in animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .section {
    padding: 72px 24px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    min-height: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats {
    flex-direction: column;
  }

  .hero {
    padding-bottom: 72px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 20px;
  }

  .section ol li {
    padding: 16px 16px 16px 58px;
  }

  .callout {
    font-size: 1.1rem;
    padding: 22px 22px 22px 26px;
  }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
