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

:root {
  --color-cream: #FFF8F0;
  --color-beige: #F5EDE4;
  --color-terracotta: #8B5E3C;
  --color-terracotta-light: #A8745A;
  --color-sage: #7A9E7E;
  --color-sage-dark: #5C7E5F;
  --color-text: #3D2E1F;
  --color-text-light: #6B5B4E;
  --color-white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, sans-serif;
  --max-width: 1140px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
}

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0.5rem; }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-terracotta); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--color-terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-sage-dark); }

/* === Utility === */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section { padding: 5rem 0; }
.section--alt { background: var(--color-beige); }
.text-center { text-align: center; }
.subtitle { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 2rem; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(139,94,60,0.2); }
.btn--primary { background: var(--color-terracotta); color: var(--color-white); }
.btn--primary:hover { background: var(--color-terracotta-light); color: var(--color-white); }
.btn--secondary { background: var(--color-sage); color: var(--color-white); }
.btn--secondary:hover { background: var(--color-sage-dark); color: var(--color-white); }
.btn--outline { border: 2px solid var(--color-terracotta); color: var(--color-terracotta); background: transparent; }
.btn--outline:hover { background: var(--color-terracotta); color: var(--color-white); }
.btn--whatsapp { background: #25D366; color: var(--color-white); }
.btn--whatsapp:hover { background: #1EBE57; color: var(--color-white); }

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: transform 0.3s, background 0.3s;
}
.nav--scrolled { background: rgba(255,248,240,0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav--hidden { transform: translateY(-100%); }
.nav__brand { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-terracotta); }
.nav__menu { display: flex; gap: 1.5rem; list-style: none; }
.nav__link { font-size: 0.9rem; font-weight: 600; color: var(--color-text-light); transition: color 0.2s; }
.nav__link--active, .nav__link:hover { color: var(--color-terracotta); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-terracotta); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; align-items: center;
    background: rgba(255,248,240,0.98); backdrop-filter: blur(10px);
    padding: 2rem 0;
    transform: translateY(-120%); transition: transform 0.3s;
  }
  .nav__menu--open { transform: translateY(0); }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 533px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 5% 4rem;
  background: linear-gradient(135deg, #D4A574 0%, #8B5E3C 40%, #5C7E5F 100%);
  background-attachment: fixed;
  background-size: cover;
}
.hero__content { position: relative; z-index: 2; }
.hero__title { color: var(--color-white); text-shadow: 0 2px 20px rgba(0,0,0,0.3); margin-bottom: 0.5rem; }
.hero__subtitle { color: var(--color-cream); font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 300; letter-spacing: 0.05em; }
.hero__overlay { position: absolute; inset: 0; background: rgba(61,46,31,0.3); }

@media (max-width: 768px) {
  .hero { min-height: 533px; background-attachment: scroll; }
}

/* === Intro === */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.intro__highlights { list-style: none; margin: 1.5rem 0; }
.intro__highlights li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.intro__highlights li::before { content: '✦'; position: absolute; left: 0; color: var(--color-sage); }
.intro__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

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

/* === Img Placeholder === */
.img-placeholder {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-beige) 0%, #D4A574 100%);
}
.img-placeholder--portrait { aspect-ratio: 3/4; }
.img-placeholder--landscape { aspect-ratio: 16/9; }
.img-placeholder--square { aspect-ratio: 1/1; }
.img-placeholder--hero { aspect-ratio: 1440/533; }

/* === Story === */
.story__content { max-width: 720px; margin: 0 auto; }
.story__content p { font-size: 1.05rem; }

/* === Approach === */
.approach__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.approach__card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.approach__card h3 { color: var(--color-sage-dark); }

/* === Tags / Focus === */
.focus__tags { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.5rem; }
.tag {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: var(--color-white);
  border: 1px solid var(--color-terracotta-light);
  color: var(--color-terracotta);
  font-size: 0.9rem;
  font-weight: 600;
}

/* === Services === */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* === Media === */
.media__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.media-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.media-card__logo { font-size: 1.4rem; font-weight: 700; color: var(--color-terracotta); margin-bottom: 0.5rem; }

/* === Formation === */
.formation__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.formation__col h3 { margin-bottom: 1rem; color: var(--color-sage-dark); }
.formation__col ul { list-style: none; }
.formation__col li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-beige); font-size: 0.95rem; }

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

/* === Locations === */
.locations__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.location-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.location-card__icon { font-size: 2rem; margin-bottom: 0.5rem; }

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

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--color-terracotta) 0%, #A8745A 100%);
  color: var(--color-white);
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: var(--color-white); }
.cta-section p { color: var(--color-cream); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }

/* === Contact === */
.contact__form {
  max-width: 540px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--color-terracotta); box-shadow: 0 0 0 3px rgba(139,94,60,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* === Footer === */
.footer {
  background: var(--color-text);
  color: var(--color-cream);
  padding: 3rem 0 1.5rem;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer__brand { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-white); margin-bottom: 0.5rem; }
.footer__nav { list-style: none; }
.footer__nav li { margin-bottom: 0.4rem; }
.footer__nav a { color: var(--color-cream); font-size: 0.9rem; }
.footer__nav a:hover { color: var(--color-white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: rgba(255,248,240,0.6); }

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

/* === WhatsApp Bar (mobile) === */
.whatsapp-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #25D366;
  padding: 0.8rem;
  text-align: center;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.whatsapp-bar a { color: var(--color-white); font-weight: 700; font-size: 1rem; }
@media (max-width: 768px) { .whatsapp-bar { display: block; } body { padding-bottom: 56px; } }

/* === Fade-in Animation === */
.fade-in { opacity: 0; transform: translateY(20px); 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; }
}

/* === Error Page === */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page__title { font-size: 6rem; color: var(--color-terracotta); margin-bottom: 0.5rem; }
.error-page__text { font-size: 1.2rem; color: var(--color-text-light); margin-bottom: 2rem; }
