/* ============================================
   Marion Ruta Segal — Site Styles
   Palette: dusty rose / sapphire / gold accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,ital@9..144,300..700,0,1&family=Karla:wght@400;500;600&display=swap');

:root {
  --cream: #FAF7F1;
  --cream-deep: #F3EEE4;
  --ink: #3A2A30;
  --ink-soft: #6B5560;

  --rose-light: #F1DCE0;
  --rose-mid: #C98FA0;
  --rose-deep: #8B5568;
  --rose-text: #5C3542;

  --sapphire-mid: #2C5282;
  --sapphire-deep: #0F3D6E;
  --sapphire-text: #F4E9C9;

  --gold: #C9A227;
  --gold-light: #F4E9C9;

  --border-hairline: rgba(201, 162, 39, 0.35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;

  --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sapphire-deep);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-style: italic; font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 600; font-style: normal; font-family: var(--font-body); letter-spacing: 0.01em; }

p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

.divider {
  border: none;
  border-top: 1px solid var(--border-hairline);
  margin: 0;
}

/* ---------- Nav ---------- */

.site-nav {
  position: relative;
  border-bottom: 1px solid var(--gold);
  background: var(--sapphire-deep);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sapphire-text);
  letter-spacing: 0.01em;
}
.site-nav .brand:hover { text-decoration: none; }

.site-nav .links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav .links a {
  font-size: 0.88rem;
  color: #FBF3DC;
  font-weight: 700;
}

.site-nav .links a.active,
.site-nav .links a:hover {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

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

.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--sapphire-deep); }

/* ---------- Hero (Home) ---------- */

.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero-title {
  margin-bottom: 0.3em;
}

.hero-role {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sapphire-deep);
  margin-bottom: 1.4em;
}

.hero-welcome {
  font-size: 1.08rem;
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 280px; margin: 0 auto; }
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
}

.hero-photo.floating {
  aspect-ratio: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
}

.story-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 720px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .hero-photo { max-width: 280px; margin: 0 auto; }
}

.story-text {
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}

.img-placeholder {
  background: var(--rose-light);
  border: 1px dashed var(--rose-deep);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--rose-text);
  font-size: 0.85rem;
  font-family: var(--font-body);
  padding: 20px;
}

.img-placeholder.hero-img { aspect-ratio: 4 / 5; }
.img-placeholder.wide-img { aspect-ratio: 16 / 7; }
.img-placeholder.square-img { aspect-ratio: 1 / 1; }

/* ---------- Doors (Home) ---------- */

.doors-intro { text-align: center; max-width: 560px; margin: 0 auto 36px; }

.explore-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--sapphire-deep);
}

.doors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}

.door {
  background: var(--rose-light);
  border: 1px solid var(--border-hairline);
  border-radius: 90px 90px 12px 12px;
  padding: 34px 16px 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.door:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15, 61, 110, 0.25);
  text-decoration: none;
  background: var(--sapphire-deep);
  border-color: var(--gold);
}

.door svg { margin: 0 auto; display: block; }

.door:hover svg path[stroke="#5C3542"],
.door:hover svg circle[stroke="#5C3542"],
.door:hover svg line[stroke="#5C3542"] {
  stroke: var(--sapphire-text);
}

.door-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sapphire-deep);
  margin: 14px 0 3px;
  transition: color 0.2s ease;
}

.door:hover .door-label { color: var(--sapphire-text); }

.door-sub {
  font-size: 0.78rem;
  color: var(--rose-deep);
  transition: color 0.2s ease;
}

.door:hover .door-sub { color: var(--gold); }

/* ---------- Content pages ---------- */

.page-header {
  padding: 56px 0 8px;
}

.page-header .eyebrow { display: block; margin-bottom: 10px; }

.subheading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: normal;
  color: var(--ink);
  margin-bottom: 0.6em;
}

.quote-bubble {
  display: inline-block;
  background: var(--rose-light);
  border: 1px solid var(--gold);
  border-radius: 20px 20px 20px 4px;
  padding: 20px 28px;
  margin-bottom: 0.6em;
}

.quote-bubble p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: normal;
  color: var(--sapphire-deep);
  margin: 0;
}

.intro-text {
  font-size: 1.15rem;
  color: var(--ink);
}

.content-block {
  padding: 36px 0;
  border-top: 1px solid var(--border-hairline);
}

.content-block:first-of-type { border-top: none; }

.content-block h3 {
  color: var(--sapphire-deep);
  margin-bottom: 0.6em;
}

.content-block ul {
  padding-left: 20px;
  margin: 0.8em 0 0;
}

.content-block li {
  margin-bottom: 0.5em;
  color: var(--ink-soft);
}

/* ---------- Project entries ---------- */

.project-entry { padding: 30px 0; border-top: none; }
.proj-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 0.15em; color: var(--ink); }
.proj-sub { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--sapphire-deep); letter-spacing: 0.03em; margin-bottom: 0.7em; display: block; }

.proj-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  margin: 16px 0;
}

.project-card {
  background: var(--sapphire-deep);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 32px;
  margin: 30px 0;
}

.project-card .proj-sub {
  color: var(--sapphire-text);
}
.project-card .proj-title { color: var(--sapphire-text); }
.project-card p { color: var(--sapphire-text); opacity: 0.92; margin: 0; }

.project-card-rose {
  background: var(--rose-light);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 32px;
  margin: 30px 0;
}
.project-card-rose .proj-sub { color: var(--sapphire-deep); }
.project-card-rose .proj-title { color: var(--sapphire-deep); }
.project-card-rose p { color: var(--sapphire-deep); }
.project-card-rose .proj-image { margin-top: 16px; }

/* ---------- CTA / callout ---------- */

.callout-blue {
  background: #E7EDF4;
  border: 1px solid var(--sapphire-mid);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 20px;
}

.callout-blue p {
  color: var(--sapphire-deep);
  font-weight: 500;
  margin: 0;
}

.solid-blue-box {
  background: var(--sapphire-deep);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 32px;
}

.solid-blue-box h2 { color: var(--sapphire-text); }
.solid-blue-box p { color: var(--sapphire-text); opacity: 0.92; margin: 0 0 1em; }
.solid-blue-box p:last-child { margin-bottom: 0; }
.callout {
  background: var(--rose-light);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  margin-top: 24px;
}

.callout p { font-size: 1.1rem; color: var(--sapphire-deep); margin-bottom: 0.6em; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 32px 0;
}

.testimonial-slide {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 32px 0;
}

.testimonial-slide.active { display: grid; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-arrow {
  background: var(--sapphire-deep);
  color: var(--sapphire-text);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.carousel-arrow:hover { background: var(--sapphire-mid); }

.carousel-counter {
  font-size: 0.85rem;
  color: var(--ink-soft);
  min-width: 40px;
  text-align: center;
}

.testimonial-card {
  background: var(--rose-light);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 28px;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--sapphire-deep);
  margin-bottom: 0.8em;
}

.testimonial-attribution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sapphire-deep);
  font-style: normal;
}

.btn {
  display: inline-block;
  background: var(--sapphire-deep);
  color: var(--sapphire-text);
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--gold);
}
.btn:hover { text-decoration: none; background: var(--sapphire-mid); }

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

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
}
@media (max-width: 720px) { .contact-block { grid-template-columns: 1fr; } }

.talk-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.talk-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
}

@media (max-width: 720px) {
  .talk-gallery { grid-template-columns: 1fr 1fr; margin-top: 20px; }
}

.talk-gallery-single {
  grid-template-columns: 1fr;
  max-width: 340px;
}

.contact-detail { margin-bottom: 1.1em; }
.contact-detail .label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sapphire-deep); display: block; margin-bottom: 3px; }
.contact-detail a, .contact-detail span { font-size: 1.05rem; color: var(--sapphire-deep); }

/* ---------- Constellation watermark ---------- */

.constellation-bg {
  position: absolute;
  top: 0; right: -60px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero { position: relative; }
.hero .wrap-inner { position: relative; z-index: 1; }

/* ---------- Footer image band (contained, rounded) ---------- */

.footer-image-band {
  max-width: var(--max-width);
  margin: 56px auto 0;
  padding: 0 28px;
}

.footer-image-band .footer-image-inner {
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-hairline);
}

.footer-image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-image-band.placeholder {
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 720px) {
  .footer-image-band .footer-image-inner { aspect-ratio: 4 / 3; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .door { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, .door:focus-visible {
  outline: 2px solid var(--sapphire-deep);
  outline-offset: 2px;
}

/* ---------- My Work — card grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.work-card {
  background: var(--sapphire-deep);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 30px;
}

.work-card .work-icon {
  margin-bottom: 14px;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: normal;
  color: var(--sapphire-text);
  margin-bottom: 0.5em;
}

.work-card p {
  color: var(--sapphire-text);
  font-size: 0.96rem;
  opacity: 0.92;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.chip-list li {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: rgba(244, 233, 201, 0.12);
  font-size: 0.82rem;
  color: var(--sapphire-text);
}

.work-card.closing {
  grid-column: 1 / -1;
}

.work-card.rose {
  background: var(--rose-light);
  border-color: var(--gold);
}
.work-card.rose h3 { color: var(--sapphire-deep); }
.work-card.rose p { color: var(--sapphire-deep); opacity: 1; }
