:root {
  --ink: #241d16;
  --paper: #efe1c5;
  --soft: #d9c39b;
  --clay: #9a4f2d;
  --clay-dark: #5a2818;
  --pine: #28392f;
  --sage: #68735c;
  --sky: #c9d6cf;
  --white: #fff8e9;
  --leather: #6f3f25;
  --smoke: #151311;
  --shadow: 0 18px 44px rgba(36, 29, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 248, 233, 0.55), transparent 34%),
    linear-gradient(90deg, rgba(36, 29, 22, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 29, 22, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(21, 19, 17, 0.58), rgba(21, 19, 17, 0));
}

.subpage-header {
  background: rgba(21, 19, 17, 0.94);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  font-family: "Iowan Old Style", Georgia, serif;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 248, 233, 0.42);
  border-radius: 2px;
  background:
    url("assets/san-rafael-tours-logo.png") center / cover,
    rgba(36, 29, 22, 0.42);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.nav {
  gap: clamp(10px, 1.6vw, 22px);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.nav a {
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: start;
  overflow: hidden;
  padding: clamp(92px, 13vh, 132px) clamp(18px, 6vw, 72px) 76px;
  color: var(--white);
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 19, 17, 0.68), rgba(21, 19, 17, 0.22) 46%, rgba(21, 19, 17, 0.02)),
    linear-gradient(180deg, rgba(21, 19, 17, 0.6), rgba(21, 19, 17, 0.08) 42%, rgba(21, 19, 17, 0.18));
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leather);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.hero .eyebrow {
  color: #edd7aa;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(2.35rem, 5vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 2px 22px rgba(21, 19, 17, 0.52);
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 570px;
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.button-primary {
  background: var(--leather);
  color: var(--white);
  border-color: rgba(255, 248, 233, 0.28);
}

.button-secondary {
  border-color: rgba(255, 248, 233, 0.62);
  background: rgba(255, 248, 233, 0.08);
  color: var(--white);
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 6vw, 72px);
  background: var(--smoke);
}

.photo-strip figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--pine);
}

.photo-strip .photo-large {
  min-height: 460px;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.photo-strip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(0deg, rgba(18, 23, 23, 0.78), rgba(18, 23, 23, 0));
  color: var(--white);
  font-weight: 800;
}

.page-hero {
  min-height: 72vh;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 150px clamp(18px, 6vw, 72px) 72px;
  background:
    linear-gradient(90deg, rgba(21, 19, 17, 0.86), rgba(21, 19, 17, 0.48)),
    url("assets/hero-swell.jpg") center / cover;
  color: var(--white);
}

.page-hero .eyebrow {
  color: #edd7aa;
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 28px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--smoke);
  color: var(--white);
}

.intro-band div {
  min-height: 150px;
  padding: clamp(22px, 3vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 248, 233, 0.07), rgba(255, 248, 233, 0.02)),
    rgba(111, 63, 37, 0.22);
  border-top: 3px solid rgba(237, 215, 170, 0.18);
}

.intro-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.intro-band span {
  color: rgba(255, 253, 248, 0.78);
}

.section,
.split-section,
.contact-section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 6vw, 72px);
}

.section-heading {
  margin-bottom: 34px;
}

.wide-heading {
  max-width: 880px;
}

.wide-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.journal-section {
  background:
    linear-gradient(rgba(255, 248, 233, 0.68), rgba(255, 248, 233, 0.68)),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(36, 29, 22, 0.07) 32px);
}

.journal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
}

.field-note {
  padding: clamp(22px, 3vw, 34px);
  border-left: 5px solid var(--leather);
  background: rgba(255, 248, 233, 0.76);
  box-shadow: var(--shadow);
}

.field-note p {
  margin: 0 0 18px;
}

.text-link,
.interest-grid a {
  color: var(--clay-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full-process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-list article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(36, 29, 22, 0.18);
  border-radius: 2px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 233, 0.7);
}

.process-list span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 2px;
  background: var(--leather);
  color: var(--white);
  font-weight: 900;
}

.process-list p {
  margin: 0;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.interest-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.interest-grid article,
.price-grid article,
.vehicle-list article {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(36, 29, 22, 0.16);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(36, 29, 22, 0.12);
}

.interest-grid article {
  position: relative;
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.interest-grid h3 {
  font-size: 1.35rem;
}

.interest-grid article::before,
.price-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 233, 0.82), rgba(255, 248, 233, 0.95)),
    linear-gradient(90deg, rgba(111, 63, 37, 0.06), transparent);
}

.interest-grid article > *,
.price-grid article > * {
  position: relative;
  z-index: 1;
}

.interest-history { background: url("assets/stone-markers.jpg") center / cover; }
.interest-rock-art { background: url("assets/rock-art-panel.jpg") center / cover; }
.interest-mining { background: url("assets/stone-cabin-canyon.jpg") center / cover; }
.interest-photo { background: url("assets/river-temple-light.jpg") center / cover; }
.interest-scenic { background: url("assets/pack-canyon.jpg") center / cover; }
.interest-river { background: url("assets/river-panorama.jpg") center / cover; }
.interest-horse { background: url("assets/horse-snow-line.jpg") center / cover; }
.interest-overland { background: url("assets/defender-sand-road.jpg") center / cover; }

.field-gallery-section {
  background: #f6ead2;
}

.field-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.field-gallery figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--pine);
}

.field-gallery figure:nth-child(2),
.field-gallery figure:nth-child(4) {
  grid-column: span 2;
}

.field-gallery img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.field-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 14px 14px;
  background: linear-gradient(0deg, rgba(21, 19, 17, 0.82), rgba(21, 19, 17, 0));
  color: var(--white);
  font-weight: 900;
}

.price-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.price-grid article {
  position: relative;
  min-height: 310px;
  display: grid;
  align-content: start;
  overflow: hidden;
}

.idea-wedge { background: url("assets/hero-swell.jpg") center / cover; }
.idea-price { background: url("assets/river-country.jpg") center / cover; }
.idea-black-dragon { background: url("assets/black-dragon-road.jpg") center / cover; }
.idea-temple { background: url("assets/desert-relic.jpg") center / cover; }
.idea-eva { background: url("assets/open-desert-guide.jpg") center / cover; }

.price-grid p {
  margin: 0 0 20px;
}

dl {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 29, 22, 0.18);
}

dt {
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--clay-dark);
  font-weight: 900;
}

.tour-card {
  min-height: 390px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(36, 29, 22, 0.16);
  border-radius: 3px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.tour-kicker {
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tour-card p {
  margin: 0;
}

.tour-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(30px, 6vw, 80px);
  background:
    linear-gradient(90deg, rgba(21, 19, 17, 0.88), rgba(40, 57, 47, 0.94)),
    var(--pine);
  color: var(--white);
}

.split-section .eyebrow {
  color: #edd7aa;
}

.section-lede {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.12rem;
}

.guide-button {
  margin-top: 18px;
}

.proof-list {
  display: grid;
  gap: 16px;
}

.proof-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.proof-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 2px;
  background: #edd7aa;
  color: var(--smoke);
  font-weight: 900;
}

.proof-list p {
  margin: 3px 0 0;
  color: rgba(255, 248, 233, 0.82);
}

.muted {
  background:
    linear-gradient(rgba(217, 195, 155, 0.9), rgba(217, 195, 155, 0.9)),
    repeating-linear-gradient(90deg, rgba(36, 29, 22, 0.05) 0, rgba(36, 29, 22, 0.05) 1px, transparent 1px, transparent 28px);
}

.vehicle-section {
  background: #ead6af;
}

.vehicle-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.vehicle-list article {
  border-top: 4px solid var(--leather);
  overflow: hidden;
  padding: 0;
}

.vehicle-list p {
  margin: 0;
  padding: 0 22px 24px;
}

.vehicle-list h3 {
  padding: 22px 22px 0;
}

.vehicle-list img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
}

.topic-media figure {
  position: relative;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--pine);
}

.topic-media figure:first-child {
  min-height: 520px;
}

.topic-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 18px 18px;
  background: linear-gradient(0deg, rgba(21, 19, 17, 0.86), rgba(21, 19, 17, 0));
  color: var(--white);
  font-weight: 900;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(21, 19, 17, 0.86), rgba(21, 19, 17, 0.46)),
    url("assets/historic-cabin-guide.jpg") center / cover;
}

.success-hero {
  background:
    linear-gradient(90deg, rgba(21, 19, 17, 0.86), rgba(21, 19, 17, 0.42)),
    url("assets/river-panorama.jpg") center / cover;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(30px, 6vw, 80px);
  background:
    linear-gradient(rgba(255, 248, 233, 0.75), rgba(255, 248, 233, 0.75)),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(36, 29, 22, 0.07) 32px);
}

.story-copy {
  max-width: 820px;
  padding: clamp(22px, 3vw, 36px);
  border-left: 5px solid var(--leather);
  background: rgba(255, 248, 233, 0.8);
  box-shadow: var(--shadow);
}

.story-copy p {
  margin: 0 0 20px;
  font-size: 1.08rem;
}

.story-close {
  color: var(--clay-dark);
  font-weight: 900;
}

.story-media {
  display: grid;
  gap: 16px;
}

.story-media figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--pine);
}

.story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 18px 18px;
  background: linear-gradient(0deg, rgba(21, 19, 17, 0.86), rgba(21, 19, 17, 0));
  color: var(--white);
  font-weight: 900;
}

.vehicle-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(111, 63, 37, 0.88), rgba(21, 19, 17, 0.92)),
    repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(255, 248, 233, 0.08) 13px);
  color: rgba(255, 248, 233, 0.82);
  font-weight: 900;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  min-height: 230px;
  padding: 28px;
  border-top: 4px solid var(--leather);
  background: var(--white);
}

.steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--leather);
  color: var(--white);
  font-weight: 900;
}

.steps p {
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  background:
    linear-gradient(rgba(255, 248, 233, 0.74), rgba(255, 248, 233, 0.74)),
    url("assets/stone-cabin-canyon.jpg") center / cover;
}

.contact-section p {
  max-width: 620px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(36, 29, 22, 0.24);
  border-radius: 3px;
  background: rgba(255, 248, 233, 0.9);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(36, 29, 22, 0.28);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 6vw, 72px);
  background: var(--smoke);
  color: rgba(255, 248, 233, 0.78);
}

.site-footer p {
  margin: 0;
}

.footer-logo {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 233, 0.28);
}

@media (max-width: 880px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 82px;
    align-items: start;
  }

  .intro-band,
  .photo-strip,
  .tour-grid,
  .interest-grid,
  .price-grid,
  .field-gallery,
  .topic-media,
  .vehicle-list,
  .journal-grid,
  .process-list,
  .full-process,
  .steps,
  .split-section,
  .about-story,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .field-gallery figure:nth-child(2),
  .field-gallery figure:nth-child(4) {
    grid-column: span 1;
  }

  .field-gallery figure,
  .topic-media figure,
  .topic-media figure:first-child {
    min-height: 310px;
  }

  .photo-strip figure,
  .photo-strip .photo-large {
    min-height: 310px;
  }

  .tour-card,
  .steps article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-bottom: 44px;
  }

  .hero-content {
    max-width: 340px;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .brand {
    max-width: 78vw;
  }
}
