/* ============================================
   Sideyard Studio — warm civic design
   Palette (aligned with the Sideyard Studio logo):
   ink    #1B3A5C  (logo navy)
   cream  #F5E3C2  (logo cream)
   paper  #FFFFFF
   clay   #F05A3C  (logo coral red)
   ochre  #F5C531  (logo sun yellow)
   sage   #1E8C7A  (logo teal)
   blue   #2255E0  (logo bright blue)
   ============================================ */

:root {
  --ink: #1B3A5C;
  --ink-soft: #44586F;
  --cream: #F5E3C2;
  --paper: #ffffff;
  --clay: #F05A3C;
  --clay-dark: #C74326;
  --ochre: #F5C531;
  --sage: #1E8C7A;
  --blue: #2255E0;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(27, 58, 92, 0.10);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.section { padding: clamp(64px, 9vw, 110px) 0; }

/* ---------- Typography ---------- */

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--ochre); }

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-title.light { color: var(--paper); }

.section-lede {
  max-width: 620px;
  margin: 0 auto 8px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 6px 18px rgba(240, 90, 60, 0.35);
}
.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(240, 90, 60, 0.4);
}
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 227, 194, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 58, 92, 0.1);
}
.header-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark { color: var(--clay); flex-shrink: 0; display: flex; }
.brand-name {
  font-weight: 600;
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width 0.25s ease;
}
.site-nav a:hover::after { width: 100%; }
.site-nav .nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--clay); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 120;
}
.nav-toggle-bar {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 38, 63, 0.6) 0%, rgba(20, 38, 63, 0.5) 55%, rgba(20, 38, 63, 0.75) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 120px 0 100px;
}
.hero-eyebrow {
  color: var(--ochre);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ochre);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 34px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Intro strip ---------- */

.intro-strip {
  background: var(--ink);
  padding: clamp(36px, 5vw, 56px) 0;
}
.intro-line {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.intro-line strong { color: var(--ochre); font-weight: 600; }

/* ---------- Services ---------- */

.services { background: var(--paper); }
.services .section-title,
.services .section-eyebrow,
.services .section-lede { text-align: center; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 54px;
}
.service-card {
  background: var(--cream);
  border: 1px solid rgba(27, 58, 92, 0.1);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(240, 90, 60, 0.4);
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ochre);
  padding-bottom: 4px;
}
.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.service-tag {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.service-card ul {
  list-style: none;
}
.service-card li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--ochre);
}
.services-footnote {
  margin-top: 44px;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 1rem;
}
.services-footnote a { color: var(--blue); font-weight: 600; }

/* ---------- How I work ---------- */

.how { background: var(--ink); color: var(--cream); }
.how .section-title { color: var(--paper); text-align: center; }
.how .section-eyebrow { text-align: center; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 54px;
}
.how-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.how-step:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.how-step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ochre);
}
.how-step h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ochre);
  border-radius: 50%;
  font-size: 0.9rem;
  margin-right: 10px;
  vertical-align: middle;
}
.how-step p { font-size: 0.95rem; color: rgba(245, 227, 194, 0.85); }

/* ---------- Place / Oakland ---------- */

.place {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--clay);
}
.place-media { position: relative; min-height: 420px; }
.place-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place-body {
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 90px);
  color: var(--paper);
}
.place-body .section-title { color: var(--paper); }
.place-body p { margin-bottom: 18px; max-width: 560px; }
.place-body strong { color: var(--ochre); }
.place-body em { color: var(--ochre); }
.place-note {
  border-left: 3px solid var(--ochre);
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
}

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

.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body p { margin-bottom: 16px; color: var(--ink-soft); max-width: 600px; }
.about-body .section-title { margin-bottom: 20px; }
.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.fact {
  background: var(--cream);
  border: 1px solid rgba(27, 58, 92, 0.12);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.92rem;
}
.fact span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}

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

.contact {
  background: var(--ink);
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--clay), var(--ochre), var(--clay));
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy p { color: rgba(245, 227, 194, 0.85); margin-bottom: 16px; max-width: 440px; }
.contact-alt a { color: var(--ochre); font-weight: 600; }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.form-field .optional { font-weight: 400; color: var(--sage); font-size: 0.82rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(27, 58, 92, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(240, 90, 60, 0.15);
}
.form-field textarea { resize: vertical; }
.btn-submit { width: 100%; border: none; font-size: 1.02rem; }

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

.site-footer {
  background: #14263C;
  color: rgba(245, 227, 194, 0.8);
  padding: 54px 0 34px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .brand-name { color: var(--paper); font-size: 1.3rem; }
.footer-brand p { margin-top: 6px; font-size: 0.92rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(245, 227, 194, 0.8);
  text-decoration: none;
  font-size: 0.94rem;
}
.footer-links a:hover { color: var(--ochre); }
.footer-legal {
  padding-top: 24px;
  font-size: 0.86rem;
  text-align: center;
}
.footer-legal a { color: rgba(245, 227, 194, 0.8); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; max-width: 620px; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .about-body { text-align: left; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-copy p { max-width: none; }
}

@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .place { grid-template-columns: 1fr; }
  .place-media { min-height: 300px; position: relative; }
  .place-media img { position: static; height: 300px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 4% 22px;
    border-bottom: 1px solid rgba(27, 58, 92, 0.12);
    box-shadow: 0 16px 30px rgba(27, 58, 92, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(27, 58, 92, 0.08);
  }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
  }
  .hero { min-height: 76vh; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .intro-line { text-align: left; }
}
