
/* =========================================
   WIDE OPEN OVERLAND
   Main Website Styles
========================================= */

:root {
  --ink: #20251f;
  --forest: #182d23;
  --forest-light: #29382e;
  --moss: #66715a;
  --sand: #d9c9a9;
  --paper: #f1eee6;
  --cream: #faf8f2;
  --rust: #a45e3e;
  --muted: #77796f;
  --line: #d8d4c9;
  --gold: #e7bd54;
  --orange: #d77a42;
  --red: #a94e38;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}


/* =========================================
   HEADER AND NAVIGATION
========================================= */

.site-header {
  height: 126px;
  min-height: 126px;
  padding: 8px 24px;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--paper);
  border-top: 8px solid var(--forest);
  border-bottom: 8px solid var(--forest);

  /* Important: allows the mobile menu to extend below the header */
  overflow: visible !important;
}

/* Three horizontal brand stripes */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 78px;
  transform: translateY(-50%);
  background: linear-gradient(
    to bottom,
    var(--gold) 0%,
    var(--gold) 33.33%,
    var(--orange) 33.33%,
    var(--orange) 66.66%,
    var(--red) 66.66%,
    var(--red) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.header-inner {
  width: min(1160px, 100%);
  margin: auto;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  position: relative;
  z-index: 2;
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.brand-logo {
  display: block;
  width: auto;
  height: 100px;
  max-width: 220px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  position: relative;
  z-index: 5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 800;
}

.nav a {
  color: var(--forest);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--cream);
}

.nav .nav-contact {
  border: 1px solid var(--forest);
  padding: 10px 14px;
  color: var(--forest);
  background: rgba(250, 248, 242, 0.82);
}

.nav .nav-contact:hover {
  background: var(--forest);
  color: var(--cream);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 20;
  background: var(--cream);
  border: 2px solid var(--forest);
  border-radius: 3px;
  padding: 6px 11px;
  font-size: 25px;
  line-height: 1;
  color: var(--forest);
  cursor: pointer;
}


/* =========================================
   HERO SECTION
========================================= */

.hero {
  height: 640px;
  min-height: 550px;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  background:
    #26332b
    url("https://images.unsplash.com/photo-1473448912268-2022ce9509d8?auto=format&fit=crop&w=2000&q=85")
    center 55% / cover;
}

.hero-shade,
.feature-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(17, 25, 20, 0.83),
      rgba(17, 25, 20, 0.25) 75%
    ),
    linear-gradient(
      0deg,
      rgba(15, 20, 16, 0.38),
      transparent 55%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 800;
  color: var(--rust);
  margin: 0 0 18px;
}

.hero .eyebrow,
.page-hero .eyebrow,
.feature-text .eyebrow,
.manifesto .eyebrow {
  color: #d5b78a;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin: 0 0 24px;
  font-weight: 900;
}

.hero h1 em,
.page-hero h1 em,
.manifesto h2 em,
.intro h2 em,
.split-intro h2 em,
.about-layout h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-copy {
  max-width: 460px;
  color: #e2e1d8;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 14px 21px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 800;
}

.button-light {
  background: var(--sand);
  color: var(--ink);
}

.button-dark {
  background: var(--forest);
  color: white;
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
}

.text-link,
.arrow-link {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.text-link span,
.arrow-link span {
  color: var(--rust);
  padding-left: 8px;
}

.hero-stamp {
  position: absolute;
  right: 8%;
  bottom: 17%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1.4;
  transform: rotate(12deg);
}

.hero-caption {
  position: absolute;
  bottom: 22px;
  left: max(24px, calc((100vw - 1160px) / 2));
  font-size: 9px;
  letter-spacing: 2px;
  color: #d9d9d0;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section-pad {
  padding-top: 90px;
  padding-bottom: 90px;
}

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

.intro h2,
.split-intro h2,
.about-layout h2 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -1.8px;
}

.intro-copy {
  max-width: 490px;
  color: #62665c;
}

.arrow-link {
  display: inline-block;
  color: var(--ink);
  margin-top: 14px;
}


/* =========================================
   FEATURE CARDS
========================================= */

.feature-band {
  background: var(--forest);
  padding: 25px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.feature-card {
  min-height: 390px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  color: white;
}

.feature-adventure {
  background-image:
    url("https://images.unsplash.com/photo-1472396961693-142e6e269027?auto=format&fit=crop&w=1200&q=80");
}

.feature-gear {
  background-image:
    url("https://images.unsplash.com/photo-1478131143081-80f7f84ca84d?auto=format&fit=crop&w=1200&q=80");
}

.feature-overlay {
  background: linear-gradient(
    0deg,
    rgba(17, 24, 19, 0.88),
    transparent 80%
  );
}

.feature-text {
  position: relative;
  padding: 34px;
  max-width: 430px;
}

.feature-text h2 {
  font-size: 36px;
  line-height: 1.05;
  margin: 0 0 12px;
}

.feature-text p:not(.eyebrow) {
  color: #e2e1d8;
  font-size: 13px;
}

.feature-text .button {
  margin-top: 14px;
}


/* =========================================
   LATEST POSTS
========================================= */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 38px;
  margin: 0;
  line-height: 1.1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--cream);
  border: 1px solid var(--line);
}

.post-image {
  height: 205px;
  background: linear-gradient(
    135deg,
    #5d6858,
    #29382e
  );
  background-size: cover;
  background-position: center;
}

.post-body {
  padding: 22px;
}

.post-meta {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rust);
  font-weight: 800;
}

.post-body h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.15;
  margin: 10px 0;
}

.post-body p {
  font-size: 13px;
  color: #6a6d64;
}

.post-body a {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
}


/* =========================================
   MANIFESTO
========================================= */

.manifesto {
  background:
    #26352c
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1800&q=80")
    center / cover;
  color: white;
  position: relative;
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 38, 29, 0.78);
}

.manifesto-inner {
  position: relative;
  padding: 95px 0;
}

.manifesto h2 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -2px;
}

.manifesto-inner > p:last-child {
  color: #dedfd7;
}


/* =========================================
   OTHER PAGE HEROES
========================================= */

.page-hero {
  min-height: 410px;
  display: flex;
  align-items: center;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 29, 23, 0.88),
    rgba(20, 29, 23, 0.3)
  );
}

.page-hero .wrap {
  position: relative;
  padding: 70px 0;
}

.page-hero h1 {
  font-size: clamp(46px, 6vw, 72px);
}

.page-hero p:not(.eyebrow) {
  max-width: 500px;
  color: #e2e2d9;
}

.page-adventure {
  background-image:
    url("https://images.unsplash.com/photo-1473448912268-2022ce9509d8?auto=format&fit=crop&w=1800&q=80");
}

.page-gear {
  background-image:
    url("https://images.unsplash.com/photo-1478131143081-80f7f84ca84d?auto=format&fit=crop&w=1800&q=80");
}

.page-about {
  background-image:
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1800&q=80");
}

.page-contact {
  background-image:
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");
}


/* =========================================
   ABOUT, GEAR AND CONTACT LAYOUTS
========================================= */

.split-intro,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
}

.split-intro > div:last-child,
.about-copy,
.contact-layout > div:first-child {
  color: #62665c;
}

.small-note {
  font-size: 12px;
  border-left: 2px solid var(--rust);
  padding-left: 15px;
}

.review-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 70px;
}

.review-categories > div {
  border-top: 1px solid var(--line);
  padding: 22px 5px;
}

.review-categories span {
  font-size: 10px;
  color: var(--rust);
  letter-spacing: 2px;
}

.review-categories h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  margin: 12px 0 4px;
}

.review-categories p {
  font-size: 13px;
  color: #707269;
}

.contact-layout h2 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 18px;
}

.contact-card {
  background: #e5dfd1;
  padding: 38px;
}

.contact-card h3 {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
}


/* =========================================
   FOOTER
========================================= */

.footer {
  background: #202820;
  color: #e6e4db;
  padding: 45px 0 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 35px;
}

.brand-footer {
  color: white;
}

.brand-footer b {
  color: #c58a64;
}

.brand-footer .brand-logo,
.brand-footer img {
  width: auto;
  height: 78px;
  max-width: 150px;
  object-fit: contain;
}

.footer-top > p {
  font-family: Georgia, serif;
  font-style: italic;
  color: #c9c7bc;
}

.footer nav {
  display: flex;
  gap: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid #465047;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  color: #aaa99f;
  font-size: 10px;
  letter-spacing: 0.7px;
}


/* =========================================
   SOCIAL LINKS
========================================= */

.social-links {
  padding: 28px 20px 24px;
  margin: 0 auto 20px;
  text-align: center;
  border-bottom: 1px solid rgba(196, 166, 120, 0.25);
}

.social-links h3 {
  margin: 0 0 18px;
  color: #c9ad82;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-links-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.social-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d8d0c2;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links-list a:hover {
  color: #c9ad82;
  transform: translateY(-2px);
}

.social-links-list svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}


/* =========================================
   MOBILE NAVIGATION
========================================= */

@media (max-width: 760px) {

  .site-header {
    height: 112px;
    min-height: 112px;
    padding: 6px 20px;
    overflow: visible !important;
  }

  .site-header::before {
    height: 66px;
  }

  .header-inner {
    width: 100%;
    gap: 12px;
  }

  .brand-logo {
    height: 86px;
    max-width: 165px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -20px;
    right: -20px;
    width: auto;
    padding: 22px 24px;
    background: var(--forest);
    border-top: 3px solid var(--gold);
    border-bottom: 8px solid var(--forest);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    z-index: 1001;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  }

  .nav.open {
    display: flex !important;
  }

  .nav a {
    display: block;
    padding: 14px 8px;
    color: var(--cream) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
  }

  .nav a.active,
  .nav a:hover {
    color: var(--gold) !important;
  }

  .nav .nav-contact {
    margin-top: 12px;
    text-align: center;
    color: var(--forest) !important;
    background: var(--cream);
    border: 1px solid var(--cream);
  }

  .nav .nav-contact:hover {
    color: var(--cream) !important;
    background: transparent;
  }

  .hero {
    height: 610px;
  }

  .hero-stamp {
    right: 24px;
    bottom: 10%;
    width: 85px;
    height: 85px;
    font-size: 10px;
  }

  .intro,
  .feature-grid,
  .split-intro,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-pad {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .feature-card {
    min-height: 340px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-image {
    height: 230px;
  }

  .section-heading {
    align-items: start;
    gap: 15px;
    flex-direction: column;
  }

  .review-categories {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 40px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer nav {
    flex-wrap: wrap;
  }

  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }

  .page-hero {
    min-height: 370px;
  }

  .page-hero .wrap {
    padding: 55px 0;
  }
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px) {

  .wrap {
    width: calc(100% - 36px);
  }

  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header::before {
    height: 60px;
  }

  .brand-logo {
    height: 78px;
    max-width: 145px;
  }

  .nav {
    left: -16px;
    right: -16px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .social-links-list {
    gap: 22px;
  }

  .contact-card {
    padding: 25px;
  }
}

/* =========================================
   HOMEPAGE STORY CARD REDESIGN
========================================= */

/* One story per row on desktop */
.post-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Photo and story side by side */
.post-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 310px;
  overflow: hidden;
}

/* Larger story photos */
.post-image {
  height: 100%;
  min-height: 310px;
  background-size: cover;
  background-position: center;
}

/* Story text */
.post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.post-body h3 {
  font-size: 29px;
}

/* Alternate photo and text positions */
.post-card:nth-child(even) .post-image {
  grid-column: 2;
  grid-row: 1;
}

.post-card:nth-child(even) .post-body {
  grid-column: 1;
  grid-row: 1;
}


/* =========================================
   LARGER FOOTER LOGO
========================================= */

.footer .brand-footer .brand-logo {
  height: 156px;
  max-width: 300px;
  width: auto;
  object-fit: contain;
}


/* =========================================
   MOBILE STORY CARD LAYOUT
========================================= */

@media (max-width: 760px) {

  .post-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .post-card {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .post-image,
  .post-card:nth-child(even) .post-image {
    grid-column: 1;
    grid-row: 1;
    height: 230px;
    min-height: 230px;
  }

  .post-body,
  .post-card:nth-child(even) .post-body {
    grid-column: 1;
    grid-row: 2;
    padding: 22px;
  }

  .post-body h3 {
    font-size: 23px;
  }

  .footer .brand-footer .brand-logo {
    height: 110px;
    max-width: 230px;
  }

}

/* HOMEPAGE HERO HEADLINE */

.hero-content > .eyebrow {
  color: #d5b78a;
  font-size: 11px;
  letter-spacing: 4px;
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -3px;
}

.hero-content h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

@media (max-width: 760px) {
  .hero-content > .eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .hero-content h1 {
    font-size: clamp(42px, 10vw, 58px);
    letter-spacing: -1.5px;
  }
}
