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

:root {
  --navy: #1a3a52;
  --navy-light: #234a66;
  --accent: #c9986a;
  --accent-hover: #b8854f;
  --bg: #faf7f2;
  --text: #2a2a2a;
  --text-secondary: #6b6b6b;
  --white: #f9f6f1;
  --rule: #e2ddd5;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 1.5rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: -4px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.2;
}

.wordmark span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0;
}

.header-contact {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  color: var(--navy);
  transition: color 0.2s ease;
}

.header-contact a:hover {
  color: var(--accent);
}

.header-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Language switcher ── */

.lang-inline {
  display: flex;
  gap: 0.35rem;
}

.lang-inline a {
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background-color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lang-inline a:hover {
  background-color: var(--rule);
}

/* ── Section shared ── */

section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

p + p {
  margin-top: 1rem;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #e8e4de;
  padding: 0 1.5rem;
}

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

.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sketch layer */
.hero-sketch {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero.phase-sketch .hero-sketch {
  opacity: 1;
}

/* Before layer */
.hero-before {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero.phase-before .hero-before {
  opacity: 1;
}

/* After layer */
.hero-after {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero.phase-after .hero-after {
  opacity: 1;
}

/* Content panel */
.hero-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  max-width: 520px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-h2 {
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.cta-reassurance {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.cta-secondary {
  font-size: 1rem;
  color: var(--text-secondary);
}

.cta-secondary a {
  color: var(--navy);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

.cta-secondary a:hover {
  border-color: var(--accent);
}

/* ── Services ── */

.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  gap: 2.5rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background-color: var(--bg);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── About ── */

.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.about-photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-text p {
  max-width: 640px;
}

.about-text p + p {
  margin-top: 1.25rem;
}

/* ── Ela (dog photo) ── */

.about-photos {
  position: relative;
  flex-shrink: 0;
}

.ela-wrap {
  position: absolute;
  bottom: -78px;
  right: 0;
  text-align: center;
}

.ela-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.ela-ears {
  position: absolute;
  top: -16px;
  left: -4px;
  width: 108px;
  height: 50px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.ela-wrap:hover .ela-ears {
  opacity: 1;
}

.ela-wrap:hover .ela-photo {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ela-wrap:hover .ear-left {
  animation: ear-wobble-left 0.6s ease-in-out infinite alternate;
  transform-origin: 30px 48px;
}

.ela-wrap:hover .ear-right {
  animation: ear-wobble-right 0.6s ease-in-out infinite alternate;
  transform-origin: 70px 48px;
}

@keyframes ear-wobble-left {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg); }
}

@keyframes ear-wobble-right {
  from { transform: rotate(6deg); }
  to   { transform: rotate(-6deg); }
}

.ela-photo {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
}

.ela-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.ela-caption {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ela-wrap:hover .ela-caption {
  opacity: 1;
}

@media (max-width: 599px) {
  .about-grid {
    gap: 4rem;
  }

  .about-text h2 {
    margin-bottom: 1rem;
  }

  .ela-wrap {
    bottom: -32px;
    left: -32px;
    right: auto;
  }

  .ela-caption {
    opacity: 1;
  }
}

/* ── Testimonials ── */

.testimonials {
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.testimonial-card {
  text-align: center;
}

.testimonial-stars {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars .star {
  display: inline-block;
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.75;
  animation: star-glow 4s ease-in-out infinite;
}

.testimonial-stars .star:nth-child(1) { transform: translateY(6px) rotate(-12deg); }
.testimonial-stars .star:nth-child(2) { transform: translateY(2px) rotate(-6deg); }
.testimonial-stars .star:nth-child(4) { transform: translateY(2px) rotate(6deg); }
.testimonial-stars .star:nth-child(5) { transform: translateY(6px) rotate(12deg); }

@keyframes star-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.testimonial-card blockquote {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin: 0 auto 1rem;
}

.testimonial-card figcaption {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── How it works ── */

.how-it-works {
  background-color: var(--white);
}

.steps {
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-left: 3.5rem;
  position: relative;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--navy);
  border-radius: 50%;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── What to expect ── */

.expect-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.expect-item {
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

.expect-item dt {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.expect-item dd {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
}

/* ── Where we work ── */

.where p {
  max-width: 640px;
  color: var(--text-secondary);
}

/* ── Languages ── */

.languages {
  padding-top: 0;
}

.languages p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
}

/* ── Final CTA ── */

.final-cta {
  background-color: var(--navy);
  text-align: center;
}

.final-cta .section-label {
  color: var(--accent);
}

.final-cta .cta-lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2rem;
}

.final-cta .btn-primary {
  margin-bottom: 2rem;
}

.final-cta-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.final-cta-contacts a {
  color: rgba(250, 247, 242, 0.7);
  font-size: 1rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.final-cta-contacts a:hover {
  color: var(--white);
  border-color: var(--accent);
}

/* ── Floating WhatsApp ── */

.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.wa-float.visible {
  opacity: 1;
  pointer-events: auto;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--accent-hover);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* ── Footer ── */

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--rule);
}

.site-footer .wordmark {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-areas {
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0.5rem auto;
  line-height: 1.6;
}

.footer-langs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

.footer-langs a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-langs a:hover {
  color: var(--navy);
  border-color: var(--accent);
}

.site-footer p {
  margin-top: 0.35rem;
}

.site-footer a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--rule);
}

.site-footer a:hover {
  color: var(--navy);
}

/* ── Thin decorative rule ── */

.accent-rule {
  width: 48px;
  height: 2px;
  background-color: var(--accent);
  border: none;
  margin-bottom: 2rem;
}

/* ── Responsive ── */

@media (min-width: 600px) {
  .header-contact {
    display: flex;
  }

  section {
    padding: 6rem 2rem;
  }

  .site-header {
    padding: 1.25rem 2rem;
  }

  .site-header.scrolled {
    padding: 0.85rem 2rem;
  }

  .wordmark {
    font-size: 2rem;
    margin-top: -8px;
  }

  h1 {
    font-size: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

}

@media (min-width: 900px) {
  section {
    padding: 7rem 2rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-glass {
    padding: 3rem;
  }

  .hero h1 {
    font-size: 3.4rem;
    margin-bottom: 1rem;
  }

  .hero-h2 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
  }

  .hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .about-grid {
    flex-direction: row;
    align-items: center;
  }

  .about-photo {
    width: 260px;
    height: 260px;
  }

  .final-cta .cta-lead {
    font-size: 1.75rem;
  }
}

/* ── Focus styles (accessibility) ── */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
