/*
 * Sarah Corballis — sarahcorballis.com
 * Custom stylesheet
 * ---------------------------------------- */

/* ─── Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --bg-warm:       #faf8f5;
  --bg-dark:       #1c1c1c;
  --accent:        #b8956a;
  --accent-dark:   #8f6f45;
  --accent-light:  #e8d9c5;
  --text:          #2c2c2c;
  --text-mid:      #5a5a5a;
  --text-light:    #9a9a9a;
  --border:        #e8e2d9;
  --font-h:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-b:        'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w:         1140px;
  --gap:           clamp(1.5rem, 4vw, 3rem);
  --section-y:     clamp(3.5rem, 8vw, 6rem);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ──────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-dark); }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }
h4 {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
}

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-y) 0; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: start;
}

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

/* ─── Navigation ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__brand:hover { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-mid);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }

  .nav__links.is-open { display: flex; }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
  }

  .nav__links li:last-child a { border-bottom: none; }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap) clamp(2rem, 6vw, 5rem);
  background: var(--bg-warm);
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title { margin-bottom: 0.75rem; }

.hero__subtitle {
  font-family: var(--font-h);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
}

.hero__body {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__image { overflow: hidden; }

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__image {
    height: 55vw;
    min-height: 260px;
  }

  .hero__content { padding: 2.5rem 1.5rem; }

  .hero__body { max-width: none; }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-b);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 1px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: #fff;
}

.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline-accent:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── Section headings ──────────────────────────────────── */
.section-header { margin-bottom: 3rem; }

.section-header--center { text-align: center; }

.section-header__label {
  display: block;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-header__title { margin-bottom: 1rem; }

.section-header__body {
  color: var(--text-mid);
  font-size: 1.0625rem;
  max-width: 560px;
  line-height: 1.8;
}

.section-header--center .section-header__body { margin: 0 auto; }

/* ─── Service cards ─────────────────────────────────────── */
.service-card {
  padding: 2rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(184,149,106,0.1);
}

.service-card__label {
  display: block;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-mid);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.7;
}

/* ─── Brand strip ───────────────────────────────────────── */
.brand-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brand-strip__heading {
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
}

.brand-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.brand-strip__list img {
  height: 36px;
  width: auto;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s;
}

.brand-strip__list img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ─── About / Bio ───────────────────────────────────────── */
.bio p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.bio p + p { margin-top: 1.25rem; }

.bio__image-wrap { position: relative; }

.bio__image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
}

/* ─── Page hero ─────────────────────────────────────────── */
.page-hero {
  background: var(--bg-warm);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--section-y);
}

.page-hero__label {
  display: block;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-hero__title { max-width: 700px; }

.page-hero__body {
  color: var(--text-mid);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.8;
}

/* ─── Testimonials ──────────────────────────────────────── */
.brand-testimonial {
  padding: 2.25rem;
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  margin-bottom: 2rem;
}

.brand-testimonial__body {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.brand-testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-testimonial__name {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
}

.brand-testimonial__logo img {
  height: 30px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
}

.social-testimonial {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.social-testimonial:first-child { padding-top: 0; }
.social-testimonial:last-child { border-bottom: none; }

.social-testimonial__avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.social-testimonial__meta { flex: 1; }

.social-testimonial__handle {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.social-testimonial__text {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── Contact ───────────────────────────────────────────── */
.contact-info { padding: 2.5rem; background: var(--bg-warm); }

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info__item:last-child { border-bottom: none; }

.contact-info__label {
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
}

.contact-info__value {
  font-size: 1rem;
  color: var(--text);
}

/* ─── Contact Form ──────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-mid);
}

.form__input,
.form__textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  border-radius: 1px;
  width: 100%;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.form__textarea {
  resize: vertical;
  min-height: 150px;
}

.form__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form__message {
  font-size: 0.9rem;
  flex: 1;
}

.form__message--error { color: #b94a3c; }
.form__message--success { color: #3a7a4c; }

/* ─── Collage ────────────────────────────────────────────── */
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.collage img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.collage--tall img { height: 240px; }

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--section-y) 0;
}

.collage-feature {
  grid-column: 1 / -1;
  height: 320px;
  object-fit: contain;
}

/* ─── Quote pull ─────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--bg-warm);
}

.pull-quote p {
  font-family: var(--font-h);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-b);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-light);
  margin-top: 1rem;
  font-style: normal;
}

/* ─── Expertise list ─────────────────────────────────────── */
.expertise-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.expertise-list li {
  font-size: 0.9375rem;
  color: var(--text-mid);
  padding-left: 1.25rem;
  position: relative;
}

.expertise-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 640px) {
  .expertise-list { grid-template-columns: 1fr; }
}

/* ─── Cookie policy table ─────────────────────────────────────────────── */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-table th,
.cookie-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.cookie-table tr {
  border-bottom: 1px solid var(--border);
}

.cookie-table tr:last-child {
  border-bottom: none;
}

.cookie-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 1rem 0 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}


.site-footer-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-light);
}


.site-footer__nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.site-footer__nav a {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.site-footer__nav a:hover { color: var(--accent); }

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ─── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.gap-sm { gap: 1rem; }

/* ─── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 640px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
