/*
Theme Name: Inner Bloom
Theme URI: https://theinnerbloom.es
Author: Sergio Hinojosa
Description: Custom theme for Inner Bloom - emotional movement method by Laura Garcia Alcolea
Version: 1.1.0
Text Domain: innerbloom
*/

/* Self-hosted fonts */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('./assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'WindSong';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/windsong-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --color-bg: #FBF8EF;
  --color-earth: #A8784E;
  --color-water: #4F6A73;
  --color-fire: #8B4B32;
  --color-air: #9CA88C;
  --color-dark: #543C2C;
  --color-sand: #E4D1B6;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-accent: 'WindSong', cursive;
  --max-width: 1200px;
  --max-text: 720px;
  --max-form: 480px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-dark); }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

.accent-text { font-family: var(--font-accent); }

/* Section accent label (WindSong) */
.section-accent {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-earth);
  margin-bottom: 8px;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

@media (min-width: 768px) {
  .section { padding: 120px 0; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(251,248,239,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,209,182,0.5);
  z-index: 100;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .nav { height: 64px; }
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-mark {
  height: 36px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.nav__cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-dark);
  color: var(--color-bg);
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav__cta:hover { opacity: 0.85; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 56px;
}

@media (min-width: 768px) {
  .hero { margin-top: 64px; min-height: 90vh; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(84,60,44,0.7) 0%, rgba(84,60,44,0.15) 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  color: var(--color-bg);
  padding: 40px 0;
}

.hero__accent {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.95;
}

.hero__title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.5;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-top: 16px;
  opacity: 0.75;
  line-height: 1.6;
}

.hero__ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-bg);
  color: var(--color-dark);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(84,60,44,0.2);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--color-bg);
  border: 1.5px solid rgba(251,248,239,0.6);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--color-bg);
  color: var(--color-dark);
  border-color: var(--color-bg);
}

/* Logo banner */
.logo-banner {
  background: var(--color-sand);
  padding: 48px 0;
  text-align: center;
}

.logo-banner__mark {
  height: 120px;
  width: auto;
  opacity: 0.7;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .logo-banner__mark { height: 180px; }
}

/* Recognition */
.recognition {
  background: var(--color-bg);
  text-align: center;
}

.recognition__items {
  max-width: var(--max-text);
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recognition__item {
  font-size: 1.05rem;
  color: var(--color-dark);
  opacity: 0.8;
  line-height: 1.7;
  padding: 0 16px;
  border-left: 2px solid var(--color-sand);
  text-align: left;
}

/* Reframe */
.reframe {
  background: var(--color-bg);
}

.reframe__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .reframe__inner { flex-direction: row; gap: 64px; }
}

.reframe__photo {
  flex-shrink: 0;
  width: 100%;
  max-width: 280px;
  border-radius: 200px 200px 16px 16px;
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .reframe__photo { max-width: 360px; margin: 0; }
}

.reframe__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.reframe__text {
  max-width: 520px;
}

.reframe__text h2 { margin-bottom: 20px; }

.reframe__sub {
  font-size: 1.15rem;
  opacity: 0.7;
  margin-top: 16px;
}

/* 4 Elements */
.elements { background: var(--color-sand); }

.elements__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .elements__grid { grid-template-columns: 1fr 1fr; }
}

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

.element-card {
  border-radius: 20px;
  text-align: center;
  background: var(--color-bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.element-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(84,60,44,0.1);
}

.element-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.element-card--earth .element-card__icon { color: var(--color-earth); }
.element-card--water .element-card__icon { color: var(--color-water); }
.element-card--fire .element-card__icon { color: var(--color-fire); }
.element-card--air .element-card__icon { color: var(--color-air); }

.element-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.element-card--earth .element-card__name { color: var(--color-earth); }
.element-card--water .element-card__name { color: var(--color-water); }
.element-card--fire .element-card__name { color: var(--color-fire); }
.element-card--air .element-card__name { color: var(--color-air); }

.element-card__need {
  font-size: 1.1rem;
  color: var(--color-dark);
  opacity: 0.7;
  margin-bottom: 8px;
}

.element-card__desc {
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.4;
  color: var(--color-dark);
}

/* Nature Elements Banner */
.nature-banner {
  width: 100%;
  overflow: hidden;
}

.nature-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .nature-banner__grid { grid-template-columns: repeat(4, 1fr); }
}

.nature-banner__item {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.nature-banner__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .nature-banner__item img { height: 280px; }
}

.nature-banner__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.nature-banner__icon--earth { color: var(--color-bg); }
.nature-banner__icon--water { color: var(--color-bg); }
.nature-banner__icon--fire { color: var(--color-bg); }
.nature-banner__icon--air { color: var(--color-bg); }

/* About Laura */
.about { background: var(--color-bg); }

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about__inner { flex-direction: row; gap: 64px; }
}

.about__photo {
  flex-shrink: 0;
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  overflow: hidden;
}

.about__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about__text { max-width: 520px; }

.about__greeting {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-earth);
  margin-bottom: 16px;
  line-height: 1;
}

.about__text p { margin-bottom: 16px; line-height: 1.8; }

.about__experience {
  font-size: 0.85rem;
  opacity: 0.5;
  letter-spacing: 0.03em;
  margin-top: 24px;
}

/* Photo break */
.photo-break {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  line-height: 0;
}

.photo-break img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 40%;
}

/* Testimonials */
.testimonials {
  background: var(--color-bg);
  text-align: center;
}

.testimonial-anchor {
  max-width: var(--max-text);
  margin: 40px auto 0;
}

.testimonial-anchor p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-earth);
  font-style: italic;
  line-height: 1.3;
}

.testimonials__list {
  max-width: var(--max-text);
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-item {
  border: none;
  padding: 0;
}

.testimonial-item p {
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.8;
}

.testimonial-item footer {
  margin-top: 8px;
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.5;
}

/* Email capture */
.capture { background: var(--color-sand); }

.capture__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .capture__inner { flex-direction: row; gap: 64px; }
}

.capture__photo {
  flex-shrink: 0;
  width: 100%;
  max-width: 240px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .capture__photo { max-width: 340px; margin: 0; }
}

.capture__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.capture__form-wrapper {
  max-width: var(--max-form);
  width: 100%;
}

.capture__sub {
  opacity: 0.7;
  margin-bottom: 28px;
}

.capture-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.capture-form input[type="text"],
.capture-form input[type="email"] {
  padding: 14px 20px;
  border: 1.5px solid rgba(84,60,44,0.3);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-dark);
  outline: none;
  transition: border-color 0.2s;
}

.capture-form input:focus { border-color: var(--color-earth); }

.capture-form .privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 0.82rem;
  opacity: 0.7;
}

.capture-form .privacy-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-dark);
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.capture-form .privacy-check a { text-decoration: underline; }

.capture-form .btn-primary {
  width: 100%;
  background: var(--color-dark);
  color: var(--color-bg);
}

.form-success {
  display: none;
  padding: 32px 0;
  text-align: center;
}

.form-success h3 {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--color-earth);
  margin-bottom: 8px;
}

.form-error {
  display: none;
  color: var(--color-fire);
  font-size: 0.9rem;
  text-align: center;
}

/* Video section */
.video-section { background: var(--color-bg); }

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Terracota button (brand CTA style) */
.btn-terracota {
  display: inline-block;
  background-color: #8B4B32;
  color: #FBF8EF;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
}

.btn-terracota:hover {
  background-color: #7a3f28;
  color: #FBF8EF;
}

/* Video Page */
.video-page {
  margin-top: 56px;
  padding: 48px 0 64px;
}

@media (min-width: 768px) {
  .video-page { margin-top: 64px; padding: 64px 0 80px; }
}

.video-page__header {
  text-align: center;
  margin-bottom: 32px;
}

.video-page__sub {
  max-width: var(--max-text);
  margin: 12px auto 0;
  opacity: 0.7;
}

.video-page__video {
  margin-bottom: 48px;
}

.video-page__bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .video-page__bottom { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.video-page__feedback {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.video-page__feedback h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.video-page__feedback p { opacity: 0.7; }

.video-page__feedback .btn-terracota {
  margin-top: 8px;
}

.video-page__newsletter h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 8px; }

.video-page__newsletter-sub {
  opacity: 0.7;
  margin-bottom: 20px;
}

.video-page__newsletter .capture-form input[type="text"],
.video-page__newsletter .capture-form input[type="email"] {
  background: var(--color-sand);
}

.video-page__newsletter .btn-terracota {
  width: 100%;
}

.video-page__bottom {
  margin-bottom: 48px;
}

/* CTA Final */
.cta-final {
  background: var(--color-dark);
  color: var(--color-bg);
  text-align: center;
  padding: 100px 0;
}

.cta-final__accent {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  opacity: 0.6;
  margin-bottom: 12px;
}

.cta-final h2 {
  max-width: var(--max-text);
  margin: 0 auto 36px;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-bg);
  padding: 48px 0;
  text-align: center;
}

.footer__brand {
  font-size: 2rem;
  opacity: 0.4;
  margin-bottom: 16px;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer__social a {
  color: var(--color-bg);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer__social a:hover { opacity: 1; }

.footer p { font-size: 0.85rem; opacity: 0.6; }
.footer a { color: var(--color-bg); text-decoration: none; opacity: 0.7; }
.footer a:hover { opacity: 1; }
.footer__links { margin-top: 12px; }
.footer__links a { margin: 0 12px; font-size: 0.85rem; padding: 8px 0; display: inline-block; min-height: 44px; line-height: 28px; }

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }
