/* ==========================================================================
   JASMINE ELMGREN — Web Design & Development
   Palette: warm white + rich near-black + vibrant tangerine orange.
   Playful, personal, but clean — a hand-drawn marker-style underline is
   the recurring signature motif.
   ========================================================================== */

:root {
  --white: #fffdf9;
  --cream: #fff4ea;
  --black: #3a2416;
  --black-soft: #5a3d28;
  --ink-muted: #6b625b;
  --orange: #ff6a3d;
  --orange-deep: #e0501f;
  --orange-light: #f2d9be;
  --line: rgba(58, 36, 22, 0.14);
  --line-strong: rgba(58, 36, 22, 0.24);

  --font-display: "Poppins", "Arial", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-hand: "Caveat", cursive;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 8rem;

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 900px) {
  .wrap { padding-inline: var(--space-5); }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* --------------------------------------------------------------------------
   Signature motif: hand-drawn marker underline
   -------------------------------------------------------------------------- */
.mark {
  position: relative;
  white-space: nowrap;
}

.mark svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.35em;
  z-index: -1;
}

.mark svg path { stroke: var(--orange); stroke-width: 7; fill: none; stroke-linecap: round; }

.mark--fill svg path { stroke: none; }
.mark--fill svg { z-index: -1; }
.mark--fill { color: var(--black); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
}

@media (min-width: 900px) {
  .nav-row { padding: var(--space-2) var(--space-5); }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  transform: rotate(-4deg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 800px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--black-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--orange-deep); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.nav-cta { display: none; }
@media (min-width: 800px) { .nav-cta { display: inline-flex; } }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover { background: var(--black); color: var(--white); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 2px solid var(--black);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 800px) { .nav-toggle { display: none; } }

.nav-toggle span { width: 16px; height: 2px; background: var(--black); border-radius: 2px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-menu-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-6) var(--space-3) var(--space-5);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero { padding: var(--space-7) var(--space-5) var(--space-6); }
}

.hero-blob {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  background: var(--orange-light);
  border-radius: 44% 56% 60% 40% / 45% 40% 60% 55%;
  z-index: -1;
}

.hero-blob--2 {
  top: auto;
  bottom: -220px;
  left: -220px;
  right: auto;
  width: 420px;
  height: 420px;
  background: var(--cream);
}

.hero-inner {
  max-width: 780px;
}

.hero-hand {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--orange-deep);
  transform: rotate(-3deg);
  display: inline-block;
  margin-bottom: var(--space-1);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero p.lede {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--black-soft);
  max-width: 52ch;
}

.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--space-6) 0; }

.section-head { max-width: 620px; margin-bottom: var(--space-5); }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-top: 6px;
}

.section-head p { margin-top: var(--space-2); color: var(--ink-muted); font-size: 1.05rem; }

.section--dark {
  position: relative;
  background:
    linear-gradient(124deg, transparent 42%, rgba(224, 178, 96, 0.4) 42.6%, rgba(224, 178, 96, 0.4) 43.1%, transparent 43.7%),
    linear-gradient(33deg, transparent 58%, rgba(242, 210, 143, 0.28) 58.6%, rgba(242, 210, 143, 0.28) 59.2%, transparent 59.8%),
    linear-gradient(155deg, transparent 18%, rgba(196, 145, 66, 0.32) 18.6%, transparent 19.4%),
    linear-gradient(96deg, transparent 71%, rgba(224, 178, 96, 0.22) 71.6%, transparent 72.4%),
    radial-gradient(circle at 15% 25%, rgba(0, 0, 0, 0.22), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(0, 0, 0, 0.18), transparent 50%),
    linear-gradient(150deg, #4a2c18 0%, #2e1a0f 100%);
  color: var(--white);
}

.section--dark .wrap { position: relative; }

.marble-inner {
  background: var(--black);
  border-radius: 28px;
  padding: var(--space-4);
  border: 1px solid rgba(224, 178, 96, 0.25);
}

@media (min-width: 900px) {
  .marble-inner { padding: var(--space-5); }
}

.section--dark .eyebrow { color: var(--orange); }
.section--dark .section-head p { color: rgba(255, 253, 249, 0.7); }
.section--dark .case-study h3 { color: var(--white); }
.section--dark .case-study .role { color: rgba(255, 253, 249, 0.6); }
.section--dark .case-study p.desc { color: rgba(255, 253, 249, 0.82); }
.section--dark .tag { color: rgba(255, 253, 249, 0.85); border-color: rgba(255, 253, 249, 0.3); }
.section--dark .case-study-shot.is-placeholder { background: var(--black-soft); }
.section--dark .case-study-shot.is-placeholder span { color: rgba(255, 253, 249, 0.55) !important; }
.section--dark .case-study { border-bottom-color: rgba(255, 253, 249, 0.12); }

/* --------------------------------------------------------------------------
   About / services
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.about-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  max-width: 340px;
  margin-inline: auto;
  border: 3px solid var(--black);
}

.about-bio p { color: var(--black-soft); margin-bottom: var(--space-2); }
.about-bio p:last-child { margin-bottom: 0; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: 18px;
  padding: var(--space-3);
  transition: transform 0.2s ease;
}

.service-card:hover { transform: translateY(-4px) rotate(-0.5deg); }

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; }
.service-card p { margin-top: 6px; font-size: 0.92rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Portfolio / case studies
   -------------------------------------------------------------------------- */
.case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 2px solid var(--line);
}

.case-study:last-child { border-bottom: none; }

@media (min-width: 900px) {
  .case-study { grid-template-columns: 1.1fr 0.9fr; }
  .case-study--reverse { grid-template-columns: 0.9fr 1.1fr; }
  .case-study--reverse .case-study-shot { order: 2; }
}

.case-study-shot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--black);
  aspect-ratio: 4 / 3;
}

.case-study-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.case-study-shot.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

.badge--live { background: var(--orange-light); color: var(--orange-deep); }
.badge--soon { background: var(--black); color: var(--white); }

.case-study h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.case-study .role { margin-top: 4px; font-size: 0.9rem; color: var(--ink-muted); }

.case-study p.desc { margin-top: var(--space-2); color: var(--black-soft); max-width: 48ch; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-2); }

.tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  color: var(--black-soft);
}

.case-study-link {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--orange-deep);
}

.case-study-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-box {
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: 24px;
  padding: var(--space-5) var(--space-4);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .contact-box { padding: var(--space-4) var(--space-2); }
  .email-chip {
    flex-wrap: wrap;
    font-size: 0.82rem;
    padding: 10px 14px;
    max-width: 100%;
  }
}

.contact-box h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.contact-box p { margin-top: var(--space-2); color: var(--black-soft); }

.email-chip {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 10px 20px 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.email-chip button {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.email-chip button:hover { background: var(--orange-deep); }

.copy-note {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-weight: 600;
  min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 253, 249, 0.7);
  padding: var(--space-4) 0;
  text-align: center;
}

.site-footer .brand { color: var(--white); font-size: 1.3rem; }

.footer-tagline {
  margin-top: 6px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--orange);
}

.footer-bottom {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 253, 249, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

/* Two-panel "What I offer / How I work" section */
.v2-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 900px) {
  .v2-services-grid { grid-template-columns: 1fr 1fr; }
}

.v2-panel {
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: 24px;
  padding: var(--space-4);
}

.v2-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--orange-deep);
  margin-bottom: var(--space-2);
}

.v2-process-step {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.v2-process-step:last-child { border-bottom: none; }

.v2-process-step .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.v2-process-step .step-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.v2-process-step p { font-size: 0.85rem; color: var(--ink-muted); margin-top: 2px; }

/* --------------------------------------------------------------------------
   HomeHaven preview mockup — uses the app's own navy/gold/sage/cream
   palette (not the portfolio's orange), so it reads as its own product.
   -------------------------------------------------------------------------- */
.hh-mockup-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--black);
  aspect-ratio: 4 / 3;
  background: #EFF1F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hh-mockup-frame:hover { transform: translateY(-3px); }

.hh-brand {
  font-family: "Poppins", var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #1D2C55;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hh-key { font-size: 0.85rem; }

.hh-phone {
  width: 168px;
  background: #F6F7FA;
  border-radius: 18px;
  border: 5px solid #21252E;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hh-phone-notch {
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F6F7FA;
}

.hh-phone-notch::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: #21252E;
  opacity: 0.6;
}

.hh-topbar {
  font-family: "Poppins", var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  color: #1D2433;
  padding: 5px 10px;
  border-bottom: 1px solid #E1E4EC;
}

.hh-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px 8px;
}

.hh-cal-grid span {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 6px;
  color: #1D2433;
  border-radius: 3px;
}

.hh-cal-grid .hh-dim { color: #C7CAD6; }

.hh-cal-grid .hh-today {
  background: #1D2C55;
  color: #fff;
  font-weight: 700;
}

.hh-dot {
  position: absolute;
  bottom: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.hh-dot--white { background: #fff; }
.hh-dot--gold { background: #B98A3E; }
.hh-dot--sage { background: #4C8567; }
.hh-dot--navy { background: #1D2C55; }

.hh-task-row {
  margin: 0 8px 8px;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid #E1E4EC;
  border-radius: 7px;
  font-family: "Inter", sans-serif;
  font-size: 6.5px;
  font-weight: 600;
  color: #1D2433;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hh-task-row .hh-dot { position: static; width: 5px; height: 5px; }

.hh-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 7px 14px;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   HomeHaven inline demo embed — expands in place instead of opening a
   new tab. Iframe is only created on first click (lazy-loaded).
   -------------------------------------------------------------------------- */
.hh-mockup-frame {
  font: inherit;
  width: 100%;
}

.hh-inline-embed {
  display: none;
  margin-top: var(--space-4);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(224, 178, 96, 0.3);
  background: #EFF1F5;
}

.hh-inline-embed.is-open { display: block; }

.hh-inline-bar {
  position: sticky;
  top: 70px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #131110;
  color: #fffdf9;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hh-inline-close {
  background: none;
  border: 1px solid rgba(255, 253, 249, 0.35);
  color: #fffdf9;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hh-inline-close:hover { background: var(--orange-deep); border-color: var(--orange-deep); }

.hh-inline-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: none;
}

@media (max-width: 700px) {
  .hh-inline-iframe-wrap iframe { height: 680px; }
}
