/* ============================================================
   Thina — Virtual Assistant Services
   Minimalist single-page site
   ============================================================ */

/* ---------- Tokens ---------- */
/* Palette lifted from thina.com.ar:
   cream + blush grounds, mauve-brown text, caramel accent. */
:root {
  --bg:        #FEFBF7;  /* warm white   */
  --bg-alt:    #F8F0E6;  /* cream        */
  --blush:     #F2E5E1;  /* pale blush   */
  --rose:      #E6C3BE;  /* dusty rose   */
  --tan:       #C8A996;  /* light tan    */

  --ink:       #625151;  /* her text colour — Canva remapped black to this */
  --ink-soft:  #544541;
  --muted:     #7A6866;
  --line:      #E7D9CE;
  --line-soft: #F2E5E1;

  --accent:      #B08663;  /* caramel — large display text, fills */
  --accent-deep: #7E5B3E;  /* caramel darkened — small text, hover */
  --accent-ink:  #FEFBF7;
  --dark:        #4A3E3D;  /* deep mauve-brown, not black */

  /* text on the dark panel */
  --on-dark:      #F7F1EA;
  --on-dark-soft: #DCD2CB;
  --on-dark-mute: #BFB3AB;

  --font-sans: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 148px);

  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

::selection {
  background: var(--rose);
  color: var(--ink);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--accent-ink);
  padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* ---------- Decorative line art ---------- */
/* Hand-drawn SVG florals — original artwork, not any client's logo. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ornament {
  display: block;
  margin: 0 auto clamp(20px, 3vw, 28px);
  height: clamp(52px, 6.5vw, 72px);
  width: auto;
  color: var(--accent);
  opacity: 0.9;
}
.section-head .ornament { margin-inline: 0; margin-bottom: 20px; }
.section-dark .ornament { color: var(--rose); }

/* Hero: tall floral spray, desktop only, bled off the right edge */
.hero { position: relative; overflow: hidden; }
.hero-decor {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  height: min(76vh, 640px);
  width: auto;
  color: var(--accent);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

@media (max-width: 1080px) {
  .hero-decor { display: none; }
}

/* Footer sprig */
.footer-decor {
  display: block;
  margin: 0 auto 6px;
  height: 52px;
  width: auto;
  color: var(--accent);
  opacity: 0.6;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}
.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section-dark .eyebrow { color: var(--on-dark-mute); }
.section-dark .h2 { color: var(--on-dark); }
.section-dark .section-note { color: var(--on-dark-soft); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 6.4vw, 4.35rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 clamp(24px, 4vw, 36px);
}
.display em {
  font-style: italic;
  color: var(--accent);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.7vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 clamp(32px, 4vw, 44px);
}

.section-note {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(254, 251, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  font-size: 0.9rem;
}
.nav > a:not(.btn) {
  color: var(--ink-soft);
  padding-block: 6px;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child  { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-sm { padding: 10px 18px; font-size: 0.8125rem; }
.btn-block { width: 100%; }

.section-dark .btn {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--dark);
}
.section-dark .btn:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding-block: 14px;
  transition: color 0.25s var(--ease);
}
.link-arrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.link-arrow:hover { color: var(--accent-deep); }
.link-arrow:hover::after { width: 34px; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 9vw, 116px) clamp(64px, 9vw, 120px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 7vw, 84px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  margin: 0;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.9vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.hero-stats dd span {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 4px;
}

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .h2 { max-width: 20ch; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4.5vw, 70px);
  row-gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  padding-block: clamp(28px, 3.4vw, 40px) clamp(30px, 3.6vw, 44px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.service-icon {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--accent);
}
.service-num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}
.service h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.service p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 42ch;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 32%;
}
.about-copy { padding-top: 6px; }
.about-copy header { margin-bottom: clamp(24px, 3vw, 36px); }
.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-body p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 58ch;
}
.about-sign {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about-sign span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.15;
}
.about-sign em {
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Client logos ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 46px) clamp(26px, 4.5vw, 58px);
  padding-block: clamp(28px, 4vw, 44px);
  margin: 0 0 clamp(40px, 5.5vw, 68px);
  border-block: 1px solid var(--line);
}
.logo-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(28px, 3.4vw, 42px);
  max-width: 148px;
}
.logo-row img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.74;
  transition: opacity 0.3s var(--ease);
}
.logo-row li:hover img { opacity: 1; }

/* ---------- Testimonials ---------- */
.testimonials {
  columns: 2;
  column-gap: clamp(20px, 3vw, 40px);
}
.testimonial {
  break-inside: avoid;
  margin: 0 0 clamp(20px, 3vw, 36px);
  padding: clamp(26px, 3vw, 34px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.testimonial:hover {
  border-color: #DCC9B8;
  background: var(--blush);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
/* Opening quote mark, drawn as a hairline rule rather than a glyph. */
.testimonial blockquote p::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 18px;
}
.testimonial figcaption {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial figcaption span {
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  margin-top: 34px;
  font-size: 0.9375rem;
}
.contact-meta li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1px solid rgba(247, 241, 234, 0.14);
}
.contact-meta li:last-child { border-bottom: 1px solid rgba(247, 241, 234, 0.14); }
.meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.contact-meta a {
  color: var(--on-dark);
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(247, 241, 234, 0.28);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease);
}
.contact-meta a:hover { border-color: var(--on-dark); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 0.875rem;
}
.socials a {
  color: var(--on-dark-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.socials a:hover { color: var(--on-dark); border-bottom-color: rgba(247, 241, 234, 0.4); }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--on-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(247, 241, 234, 0.24);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(247, 241, 234, 0.35); }
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--on-dark);
}
/* Keep a visible ring for keyboard users on the dark panel. */
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 4px;
}
.field.has-error input,
.field.has-error textarea { border-bottom-color: #D98A6A; }

.form-status {
  font-size: 0.875rem;
  color: var(--on-dark-soft);
  min-height: 1.4em;
  margin: 0;
}
.form-status.is-error { color: #E5A183; }
.form-status.is-ok { color: var(--tan); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 30px);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-nav a { transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.footer-legal {
  font-size: 0.8125rem;
  color: var(--muted);
  flex-basis: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    font-size: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
                visibility 0.28s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav > a:not(.btn) {
    padding-block: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .hero-stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .hero-stats dt { margin: 0; }

  .service { padding-inline: 0; }
  .testimonials { columns: 1; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .contact-meta li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .nav-cta { width: auto; align-self: flex-start; }
}

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