/* Crag & Coffee — friendly NL climber shop landing */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f0ebe3;
  --color-warm: #ede6dc;
  --color-surface: #fffef9;
  --color-text: #2c2a26;
  --color-muted: #5c5852;
  --color-accent: #c45c3e;
  --color-accent-hover: #a84d33;
  --color-forest: #3d5a4a;
  --color-sand: #d4a574;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(44, 42, 38, 0.08);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 42, 38, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

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

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

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-muted);
}

.site-nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(44, 42, 38, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(250, 247, 242, 0.97) 0%,
    rgba(44, 42, 38, 0.45) 45%,
    rgba(44, 42, 38, 0.25) 100%
  );
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-sand);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 14ch;
  margin: 0 0 1rem;
  color: #fffef9;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  max-width: 36rem;
  color: rgba(255, 254, 249, 0.95);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

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

.btn-secondary {
  background: rgba(255, 254, 249, 0.2);
  color: #fffef9;
  border-color: rgba(255, 254, 249, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 254, 249, 0.35);
  color: #fffef9;
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-warm {
  background: var(--color-warm);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.section-header h2,
#why-heading,
#visit-heading,
#contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.card-grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.04);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin: 1.25rem 1.25rem 0.5rem;
}

.feature-card p {
  margin: 0 1.25rem 1.35rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Split */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

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

.value-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.value-list li {
  margin-bottom: 1rem;
}

.value-list strong {
  color: var(--color-text);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.text-link:hover {
  text-decoration: underline;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
}

/* Community */
.community-grid {
  display: grid;
  gap: 1.5rem;
}

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

.community-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.community-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.community-card h3 {
  margin: 1.25rem 1.25rem 0.5rem;
  font-size: 1.15rem;
}

.community-card p {
  margin: 0 1.25rem 1.35rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Visit */
.visit-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .visit-layout {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.visit-map img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow);
}

.map-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0.75rem 0 0;
}

.address-block {
  font-style: normal;
  margin: 1.25rem 0;
  line-height: 1.7;
}

.hours {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.hours div {
  display: flex;
  gap: 1rem;
}

.hours dt {
  font-weight: 600;
  min-width: 5.5rem;
}

.hours dd {
  margin: 0;
  color: var(--color-muted);
}

/* Contact */
.section-cta {
  background: linear-gradient(160deg, var(--color-forest) 0%, #2d4338 100%);
  color: #e8f0ea;
  padding: 4.5rem 0;
}

.section-cta h2 {
  color: #fffef9;
}

.section-cta > .container > .contact-grid > div > p {
  color: rgba(232, 240, 234, 0.9);
}

.section-cta a {
  color: var(--color-sand);
}

.section-cta a:hover {
  color: #fffef9;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.contact-tel {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1rem 0 0.25rem;
}

.contact-tel a {
  text-decoration: none;
}

.contact-email {
  margin-top: 0;
}

.contact-form {
  background: rgba(255, 254, 249, 0.08);
  border: 1px solid rgba(255, 254, 249, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 254, 249, 0.25);
  background: rgba(250, 247, 242, 0.12);
  color: #fffef9;
  margin-bottom: 0.25rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 254, 249, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}

.contact-form .btn-primary {
  margin-top: 1rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-sand);
  margin: 0.75rem 0 0;
  min-height: 1.4em;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--color-text);
  color: rgba(255, 254, 249, 0.85);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-inner a {
  color: var(--color-sand);
}

.footer-meta {
  margin: 0;
  opacity: 0.85;
  font-size: 0.88rem;
}
