/* ==========================================================================
   Rosemary Social — Shared Stylesheet
   Brand colors:
     --brown: #5d4a3c   (deep brown, primary text)
     --gold:  #fbe6b7   (warm gold, accent/highlight)
     --olive: #3d4a2f   (deep olive, dark sections/nav)
     --cream: #f4f1e2   (page background)
     --sage:  #acb090   (sage green, secondary accent)

   Fonts:
     Display / headings — Libre Caslon Display (self-hosted, assets/fonts)
     Body, nav, buttons  — Libre Caslon Text, regular/bold/italic (self-hosted)
     Script accent        — WindSong (Google Fonts)
   ========================================================================== */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("../assets/fonts/LibreCaslonDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Caslon Text";
  src: url("../assets/fonts/LibreCaslonText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Caslon Text";
  src: url("../assets/fonts/LibreCaslonText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Caslon Text";
  src: url("../assets/fonts/LibreCaslonText-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --brown: #5d4a3c;
  --gold: #fbe6b7;
  --olive: #3d4a2f;
  --cream: #f4f1e2;
  --sage: #acb090;

  --font-script: "WindSong", cursive;
  --font-heading: "Libre Caslon Display", Georgia, serif;
  --font-body: "Libre Caslon Text", Georgia, serif;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  color: var(--olive);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
}

h1 { font-size: 3.4rem; line-height: 1.1; }
h2 { font-size: 2.4rem; line-height: 1.2; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.2em; }

.script {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  color: var(--olive);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--brown);
  opacity: 0.75;
  margin-bottom: 0.9em;
  display: inline-block;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--olive);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--olive);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--brown);
  border-color: var(--brown);
}

.btn-outline {
  background: transparent;
  color: var(--olive);
}
.btn-outline:hover {
  background: var(--olive);
  color: var(--cream);
}

.btn-light {
  background: var(--gold);
  color: var(--olive);
  border-color: var(--gold);
}
.btn-light:hover {
  background: var(--cream);
  border-color: var(--cream);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(93, 74, 60, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wordmark-img {
  display: block;
  height: 44px;
  width: auto;
}

.footer-top .logo-wordmark-img {
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--olive);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--olive);
  margin: 5px 0;
  transition: all 0.25s ease;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(93, 74, 60, 0.15);
  }
  .nav-links.open {
    max-height: 400px;
  }
  .nav-links li {
    padding: 16px 32px;
    border-top: 1px solid rgba(93, 74, 60, 0.1);
  }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
}

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

.hero {
  background: linear-gradient(180deg, var(--gold) 0%, var(--cream) 100%);
  padding: 48px 0 40px;
  text-align: center;
}

.hero .eyebrow { color: var(--brown); }

.hero h1 {
  max-width: 820px;
  margin: 0 auto 0.4em;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2em;
  font-size: 1.2rem;
  color: var(--brown);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  background: var(--olive);
  color: var(--cream);
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--sage); }
.page-hero h1 { color: var(--cream); }
.page-hero p { color: var(--cream); opacity: 0.85; max-width: 640px; margin: 0 auto; }

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

.section-alt {
  background: #fff9ec;
}

.section-olive {
  background: var(--olive);
  color: var(--cream);
}
.section-olive h2, .section-olive h3 { color: var(--cream); }
.section-olive .eyebrow { color: var(--sage); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

/* ---------- Quote block ---------- */

.quote-block {
  background: var(--sage);
  border-radius: 18px;
  padding: 64px 56px;
  text-align: center;
  color: var(--olive);
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1.45;
  margin: 0 0 20px;
  font-style: italic;
}

.quote-block cite {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 22px;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid rgba(93, 74, 60, 0.12);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(61, 74, 47, 0.12);
}

.card .num {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--sage);
  display: block;
  margin-bottom: 8px;
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--olive);
}

/* ---------- Placeholder media blocks ---------- */

.placeholder-block {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--gold) 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  font-family: var(--font-script);
  font-size: 1.6rem;
  text-align: center;
  padding: 20px;
}

.placeholder-block .placeholder-label {
  position: relative;
  z-index: 1;
}

.placeholder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 2;
}

/* Round team photo — real image sits on top of the gradient fallback */
.team-photo {
  position: relative;
  overflow: hidden;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.placeholder-block.small { min-height: 220px; font-size: 1.2rem; }
.placeholder-block.tall { min-height: 460px; }

.placeholder-block.hero-image {
  min-height: 560px;
  margin-top: 32px;
  border-radius: 22px;
}

@media (max-width: 700px) {
  .placeholder-block.hero-image { min-height: 320px; margin-top: 24px; }
}

/* Portrait-orientation photos (full-length shots) get a taller, narrower
   frame instead of the wide band, so nothing gets cropped out. */
.placeholder-block.hero-image.portrait,
.placeholder-block.tall.portrait {
  min-height: 0;
  aspect-ratio: 2 / 3;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.placeholder-block.hero-image.portrait .placeholder-img,
.placeholder-block.tall.portrait .placeholder-img {
  object-position: center top;
}

@media (max-width: 700px) {
  .placeholder-block.hero-image.portrait {
    max-width: 80%;
    margin-top: 32px;
  }
}

/* Full-bleed focal photo — breaks out of the container to span the
   entire browser width, edge to edge, as the visual centerpiece. */
.hero-photo-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 88vh;
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  margin-top: 32px;
}

.hero-photo-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 700px) {
  .hero-photo-full {
    height: 60vh;
    min-height: 380px;
    margin-top: 32px;
  }
}

.team-photo img,
.team-photo .placeholder-img {
  object-position: center center;
}

/* ---------- Client / social strip ---------- */

.client-strip {
  text-align: center;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

.client-tile {
  background: #fff;
  border: 1px solid rgba(93, 74, 60, 0.15);
  border-radius: 14px;
  padding: 28px 16px;
  min-width: 0;
  text-align: center;
  transition: all 0.2s ease;
}

.client-tile:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.client-tile .handle {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-top: 6px;
  color: var(--brown);
  overflow-wrap: break-word;
  word-break: break-word;
}

.client-tile .ig-icon {
  font-size: 1.4rem;
}

/* ---------- Split / two-col layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
}

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

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--olive);
  margin-bottom: 20px;
}

/* ---------- Story callout (About page) ---------- */

.story-callout {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: center;
  background: var(--olive);
  color: var(--cream);
  border-radius: 22px;
  padding: 56px 48px;
}

.story-callout .sprig {
  height: 68px;
  width: auto;
  margin: 0 auto 20px;
}

.story-callout p {
  opacity: 0.92;
  margin-bottom: 0;
}

.story-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: 28px !important;
  opacity: 1 !important;
}

@media (max-width: 700px) {
  .story-callout { padding: 40px 28px; }
  .story-callout .sprig { height: 52px; }
}

/* ---------- Values list ---------- */

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}

.values-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.values-list .mark {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--sage);
  line-height: 1;
}

/* ---------- Process steps ---------- */

.process {
  counter-reset: step;
  display: grid;
  gap: 28px;
}

.process-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 241, 226, 0.2);
}

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

.process-step .step-num {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold);
}

/* ---------- Forms ---------- */

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  color: var(--brown);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(93, 74, 60, 0.25);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--brown);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--olive);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--olive);
  color: var(--cream);
  border-radius: 18px;
  padding: 48px 40px;
}

.contact-info-card a {
  border-bottom: 1px solid rgba(244, 241, 226, 0.4);
}

.contact-info-card .info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-card .info-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--sage);
  margin-bottom: 4px;
}

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

.site-footer {
  background: var(--olive);
  color: var(--cream);
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 241, 226, 0.15);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}


.footer-col h4 {
  color: var(--cream);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(244, 241, 226, 0.7);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 700px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .quote-block { padding: 44px 28px; }
  .quote-block blockquote { font-size: 1.4rem; }
  section { padding: 44px 0; }
}
