/* =========================================================================
   Thermomixing With Rhyannyn — styles
   System fonts only (no third-party CDN), brand palette pulled from logo.
   ========================================================================= */

:root {
  --pink-bg:        #FFF5F8;
  --pink-soft:      #FDE2EC;
  --pink-mid:       #F8BBD0;
  --pink-hot:       #EC407A;
  --pink-hot-dark:  #C2185B;
  --ink:            #2A1B22;
  --ink-soft:       #5A4751;
  --muted:          #8A7882;
  --line:           #F1D9E2;
  --white:          #FFFFFF;
  --green:          #2D8659;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(60, 20, 40, 0.06), 0 1px 1px rgba(60, 20, 40, 0.04);
  --shadow:    0 8px 24px rgba(60, 20, 40, 0.08), 0 2px 6px rgba(60, 20, 40, 0.05);
  --shadow-lg: 0 24px 48px rgba(60, 20, 40, 0.14), 0 6px 12px rgba(60, 20, 40, 0.06);

  --font-body:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
                  Palatino, "Times New Roman", serif;

  --container-max: 1180px;
  --content-pad:   clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}
html { scroll-behavior: smooth; }
@supports (padding: env(safe-area-inset-left)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--pink-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-hot-dark); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--pink-hot);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.25; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 8px 12px; border-radius: 4px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--content-pad);
  background: rgba(255, 245, 248, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--pink-mid);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-thermo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand-with { font-size: 0.7rem; color: var(--muted); margin: 1px 0; }
.brand-rhy {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pink-hot);
}

.site-nav {
  margin-left: auto;
  display: flex; gap: 24px; align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--pink-hot-dark); text-decoration: none; }
.nav-cta {
  background: var(--pink-hot-dark);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover, .nav-cta:focus-visible { background: #8E0E40; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 0; cursor: pointer;
  padding: 8px; gap: 4px; flex-direction: column;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--ink); border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--content-pad) 16px;
  background: var(--pink-bg);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu[data-open="true"] { display: flex; }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 400px at 90% -10%, var(--pink-soft), transparent 70%),
    radial-gradient(900px 400px at -10% 100%, var(--pink-soft), transparent 60%),
    var(--pink-bg);
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
}
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-hot-dark);
  background: var(--pink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hl {
  background: linear-gradient(180deg, transparent 60%, var(--pink-soft) 60%);
  padding: 0 4px;
}
.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--pink-hot-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover, .btn-primary:focus-visible { background: #8E0E40; }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--pink-mid);
}
.btn-ghost:hover { border-color: var(--pink-hot); color: var(--pink-hot-dark); }

.hero-trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 0.92rem; color: var(--ink-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink-hot);
}
.hero-trust strong { color: var(--ink); font-weight: 700; }

.hero-art img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

/* ---------- Section scaffolding ---------- */

section { padding: clamp(56px, 8vw, 96px) 0; }
.about { background: var(--white); }
.offer { background: var(--pink-bg); }
.gallery { background: var(--white); }
.deals { background: var(--pink-soft); }
.contact { background: var(--white); }

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-hot-dark);
  font-weight: 700;
  margin: 0 0 8px;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 36px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 24px;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.about-text p { font-size: 1.05rem; color: var(--ink-soft); }
.signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--pink-hot-dark);
  margin-top: 8px !important;
}
.about-figure { margin: 0; }
.about-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Offer ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 56px;
}
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.offer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.offer-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-soft);
  color: var(--pink-hot-dark);
  margin-bottom: 18px;
}
.offer-card h3 { margin-top: 4px; }
.offer-card p { color: var(--ink-soft); margin-bottom: 18px; }
.card-link {
  display: inline-block;
  font-weight: 600;
  color: var(--pink-hot-dark);
}
.card-link:hover { color: var(--pink-hot); text-decoration: none; }

.model-comparison {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.model-comparison h3 { margin-top: 0; }
.model-comparison p { color: var(--ink-soft); }
.model-img-link {
  position: relative;
  display: block;
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.model-img-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.model-img-link:hover img { transform: scale(1.01); }
.zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(42, 27, 34, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---------- Gallery (CSS columns masonry on desktop, carousel on mobile) ---------- */

.gallery-viewport { position: relative; }

.masonry {
  column-count: 4;
  column-gap: 14px;
  margin-top: 24px;
}
@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 760px)  { .masonry { column-count: 2; } }

.tile {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pink-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.tile:hover img { transform: scale(1.03); }

.gallery-arrow { display: none; }

/* Mobile: convert masonry to a horizontal snap-scroll carousel */
@media (max-width: 600px) {
  .masonry {
    column-count: unset;
    column-gap: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 8% 8px;
    margin-left: -16px;
    margin-right: -16px;
    overscroll-behavior-x: contain;
  }
  .masonry::-webkit-scrollbar { display: none; }

  .tile {
    flex: 0 0 84%;
    margin: 0;
    scroll-snap-align: center;
  }
  .tile img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    height: auto;
  }

  .gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% + 12px);
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, background 0.18s ease;
  }
  .gallery-arrow:hover { background: var(--white); }
  .gallery-arrow:active { transform: translateY(-50%) scale(0.94); }
  .gallery-arrow-prev { left: 4px; }
  .gallery-arrow-next { right: 4px; }
}

/* ---------- Deals ---------- */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) { .deal-grid { grid-template-columns: 1fr; } }

.deal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.deal-card .deal-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-hot-dark);
  background: var(--white);
  border: 1px solid var(--pink-mid);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}
.deal-card h3 { margin-top: 4px; }
.deal-card p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex; flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--pink-mid);
  text-decoration: none;
}
.contact-card:active { transform: translateY(0); }

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-hot-dark);
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-value {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  word-break: break-word;
  line-height: 1.35;
}
.contact-cta {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pink-hot-dark);
  line-height: 1.25;
  margin-top: 8px;
}
.contact-card:hover .contact-cta,
.contact-card:focus-visible .contact-cta { color: var(--pink-hot); }

.contact-fineprint {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #FCE4EC;
  padding: clamp(36px, 5vw, 56px) 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.footer-brand strong { color: var(--white); }
.footer-brand span { color: #C9A6B5; font-size: 0.92rem; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: flex-end;
}
.footer-nav a { color: #FCE4EC; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--pink-mid); }
.footer-fine {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.84rem;
  color: #C9A6B5;
}
.footer-credit {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #8E727C;
  letter-spacing: 0.02em;
}
.footer-credit a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(252, 228, 236, 0.3); transition: color 0.15s ease, border-color 0.15s ease; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--pink-mid); border-bottom-color: var(--pink-mid); text-decoration: none; }
.footer-credit strong { color: #FCE4EC; font-weight: 600; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
}
.lightbox::backdrop {
  background: rgba(20, 6, 14, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); border: 0; color: var(--white);
  font-size: 30px; line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(0,0,0,0.7); }

/* ---------- Mobile polish ---------- */

@media (max-width: 820px) {
  section { padding: clamp(44px, 8vw, 72px) 0; }
  .hero { padding: 32px 0 48px; }
  .hero-art img {
    max-width: 320px;
    border-width: 4px;
  }
  .about-figure img { max-height: 60vh; object-fit: cover; }
  .model-comparison { padding: 18px; }
  .offer-card, .deal-card { padding: 22px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --content-pad: 16px; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.55rem, 6vw, 2rem); }
  .lede { font-size: 1rem; }
  .section-lede { font-size: 1rem; margin-bottom: 28px; }

  .site-header { padding: 10px 16px; gap: 10px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-thermo { font-size: 0.95rem; }
  .brand-rhy { font-size: 1.05rem; }
  .brand-with { font-size: 0.62rem; }

  .hero-inner { gap: 20px; }
  .hero-art img { max-width: 260px; }
  .hero-trust { gap: 6px 16px; font-size: 0.88rem; }

  .hero-ctas { gap: 10px; }
  .btn { padding: 12px 20px; min-height: 48px; width: 100%; }
  .hero-ctas .btn { flex: 1 1 140px; }

  .about-grid, .hero-inner { gap: 24px; }
  .about-figure img { max-height: 50vh; }

  .offer-card, .deal-card { padding: 20px; }
  .contact-card { padding: 16px 18px 18px; }
  .contact-value { font-size: 0.78rem; }

  .footer-inner { gap: 16px; }
  .footer-nav { gap: 14px 18px; }
}

@media (max-width: 380px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-thermo { font-size: 0.88rem; }
  .brand-rhy { font-size: 1rem; }
  .brand-with { display: none; }
  .brand-name { line-height: 1; }
  .hero-art img { max-width: 220px; }
  .eyebrow { font-size: 0.7rem; padding: 5px 10px; }
}

/* Tap-target floor for inline links inside touch-capable cards */
@media (hover: none) {
  .card-link { display: inline-block; padding: 6px 0; }
  .footer-nav a { padding: 6px 0; }
  .site-nav a { padding: 8px 0; }
  .mobile-menu a { padding: 14px 0; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .mobile-menu, .nav-toggle, .lightbox, .footer-nav { display: none !important; }
  body { background: white; color: black; }
  .hero { background: white; }
}
