
/* ==========================================
   ZIZUMBO'S FARM
   Main website stylesheet
   ========================================== */


/* ---------- COLORS AND FONTS ---------- */

:root {
  --green: #173d2b;
  --green-deep: #102d20;
  --green-soft: #526c58;
  --cream: #f6f3eb;
  --paper: #fffdf8;
  --red: #a64c43;
  --ink: #253129;
  --muted: #687168;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}


/* ---------- GENERAL STYLING ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.section-wrap {
  width: min(1120px, 86%);
  margin: 0 auto;
}

.eyebrow {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  margin: 0 0 18px;
}


/* ---------- HEADER AND NAVIGATION ---------- */

.site-header {
  height: 88px;
  padding: 0 6.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green);
}

/* Actual farm logo */

.brand-logo {
  width: 75px;
  height: 68px;
  max-width: 75px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  margin-top: 4px;
  font: 10px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.main-nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
}

.main-nav a:hover,
.text-link:hover,
.facebook-link:hover {
  color: var(--red);
}

.main-nav .nav-contact {
  padding: 11px 19px;
  border: 1px solid #c8c5b9;
}

.menu-toggle {
  display: none;
}


/* ---------- HOMEPAGE HERO ---------- */

.hero {
  min-height: 625px;
  height: min(720px, 75vw);
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  background: var(--green);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    url("assets/IMG_0457_3.jpeg")
    center 48% / cover no-repeat;
  transform: scale(1.015);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 28, 18, .83) 0%,
    rgba(9, 28, 18, .57) 47%,
    rgba(9, 28, 18, .08) 100%
  );
}

.hero-content {
  position: relative;
  width: min(660px, 80%);
  margin-left: 11%;
  padding: 70px 0;
}

.hero .eyebrow {
  color: #e8c6a9;
}

h1 {
  font-size: clamp(48px, 6vw, 78px);
  margin-bottom: 22px;
}

h1 em,
h2 em {
  color: #c9b08c;
  font-weight: 500;
}

.hero-copy {
  max-width: 480px;
  color: rgba(255, 255, 255, .87);
  font-size: 15px;
  line-height: 1.8;
}

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


/* ---------- BUTTONS AND LINKS ---------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 49px;
  padding: 0 23px;
  border: 0;
  text-decoration: none;
  font: 600 11px var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--cream);
  color: var(--green);
}

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

.text-link {
  display: inline-block;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #b8b6a8;
  padding-bottom: 5px;
}

.light-link {
  color: white;
  border-color: rgba(255, 255, 255, .55);
}

.hero-note {
  position: absolute;
  right: 6.5%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.note-line {
  width: 35px;
  height: 1px;
  background: #d7c4a2;
}


/* ---------- SEASON INFORMATION STRIP ---------- */

.season-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(25px, 6vw, 85px);
  padding: 25px 5%;
  background: var(--cream);
}

.season-strip div:not(.strip-divider) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.strip-label,
.detail-label {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.season-strip strong {
  color: var(--green);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.strip-divider {
  width: 1px;
  height: 37px;
  background: #d8d2c4;
}


/* ---------- FARM INTRODUCTION ---------- */

.intro {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 10%;
  align-items: center;
  padding-top: 115px;
  padding-bottom: 120px;
}

.intro-photo {
  height: 470px;
  position: relative;
}

.intro-photo img {
  object-position: center;
}

.photo-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--paper);
  color: var(--green);
  padding: 10px 15px;
  font-family: var(--serif);
  font-size: 13px;
}

.intro-copy h2,
.section-heading h2,
.gallery-heading h2,
.visit-panel h2,
.contact-copy h2 {
  color: var(--green);
  font-size: clamp(35px, 4vw, 49px);
  margin-bottom: 24px;
}

.intro-copy h2 em,
.section-heading h2 em,
.gallery-heading h2 em,
.visit-panel h2 em,
.contact-copy h2 em {
  color: var(--red);
}

.intro-copy > p:not(.eyebrow):not(.signature) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.signature {
  margin: 28px 0 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}


/* ---------- CHRISTMAS TREE SECTION ---------- */

.trees-section {
  background: var(--cream);
  padding: 100px 0 90px;
}

.centered {
  text-align: center;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 52px;
}

.section-heading h2 {
  margin-bottom: 13px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 13px;
}

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

.tree-card {
  min-height: 240px;
  padding: 33px 29px;
  background: #fffdf8;
  border-top: 2px solid #b7b29f;
}

.tree-card.featured {
  background: var(--green);
  color: white;
  border-color: var(--red);
}

.tree-number {
  color: var(--red);
  font-family: var(--serif);
  font-size: 14px;
  margin-bottom: 26px;
}

.tree-card h3 {
  font: 500 21px var(--serif);
  margin-bottom: 13px;
}

.tree-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  margin: 0;
}

.tree-card.featured p {
  color: rgba(255, 255, 255, .75);
}

.variety-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 23px;
  margin-top: 39px;
  padding-top: 25px;
  border-top: 1px solid #ded9ce;
}

.variety-line span {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.variety-line p {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 15px;
}

.variety-line i {
  color: var(--red);
  font-style: normal;
  padding: 0 5px;
}


/* ---------- PHOTO GALLERY ---------- */

.gallery-section {
  padding-top: 110px;
  padding-bottom: 115px;
}

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

.gallery-heading h2 {
  margin: 0;
}

.gallery-heading > p {
  max-width: 280px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

/*
  Masonry-style gallery:
  Images retain their original proportions.
  The columns automatically arrange different image heights.
*/

.gallery-grid {
  columns: 3;
  column-gap: 18px;
}

.gallery-grid figure {
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  background: var(--cream);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.025);
}

.gallery-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  font-style: italic;
}


/* ---------- VISIT THE FARM ---------- */

.visit-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  background: var(--cream);
}

.visit-photo {
  background:
    linear-gradient(
      rgba(17, 45, 31, .08),
      rgba(17, 45, 31, .08)
    ),
    url("assets/IMG_2896_1.jpeg")
    center / cover no-repeat;

  min-height: 620px;
}

.visit-panel {
  padding: 85px clamp(45px, 8vw, 120px);
  align-self: center;
}

.visit-panel h2 {
  margin-bottom: 35px;
}

.visit-detail {
  padding: 18px 0;
  border-top: 1px solid #d9d4c8;
}

.visit-detail p {
  color: var(--green);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  margin: 7px 0;
}

.visit-detail p a {
  text-decoration: none;
}

.visit-detail small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}


/* ---------- CONTACT INFORMATION ---------- */

.contact-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 13%;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 115px;
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.contact-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 22px 0;
}

.phone-link {
  display: inline-block;
  margin: 3px 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 24px;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--red);
}

.contact-address {
  margin-bottom: 23px;
}

.facebook-link {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #d8b8ad;
  padding-bottom: 5px;
}

.contact-image {
  height: 400px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---------- FOOTER ---------- */

.site-footer {
  padding: 47px 7% 20px;
  background: var(--green-deep);
  color: white;
  text-align: center;
}

.footer-brand {
  color: #f4eddf;
  font: 26px var(--serif);
  text-decoration: none;
}

.site-footer > p {
  margin: 8px 0 35px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  letter-spacing: .07em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .6);
  font-size: 9px;
}

.footer-bottom a {
  text-decoration: none;
}


/* ==========================================
   TABLET AND MOBILE RESPONSIVENESS
   ========================================== */


/* ---------- TABLETS ---------- */

@media (max-width: 800px) {

  .site-header {
    height: 76px;
    padding: 0 6%;
  }

  .brand-logo {
    width: 62px;
    height: 58px;
    max-width: 62px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    width: 23px;
    height: 2px;
    background: var(--green);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 20px 6% 25px;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-contact {
    text-align: center;
  }

  .hero {
    min-height: 590px;
    height: 75vh;
  }

  .hero-content {
    margin-left: 7%;
    width: 86%;
  }

  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(9, 28, 18, .82),
      rgba(9, 28, 18, .36)
    );
  }

  .season-strip {
    flex-wrap: wrap;
    gap: 18px 28px;
    justify-content: flex-start;
    padding: 23px 7%;
  }

  .strip-divider {
    display: none;
  }

  .section-wrap {
    width: 86%;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 75px;
    padding-bottom: 80px;
  }

  .intro-photo {
    height: 390px;
  }

  .trees-section,
  .gallery-section {
    padding-top: 75px;
    padding-bottom: 80px;
  }

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

  .tree-card {
    min-height: auto;
  }

  .tree-number {
    margin-bottom: 13px;
  }

  .variety-line {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-heading > p {
    margin-top: 16px;
  }

  .gallery-grid {
    columns: 2;
  }

  .visit-section {
    grid-template-columns: 1fr;
  }

  .visit-photo {
    min-height: 340px;
  }

  .visit-panel {
    padding: 65px 8%;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 75px;
    padding-bottom: 80px;
  }

  .contact-image {
    height: 350px;
  }

}


/* ---------- PHONES ---------- */

@media (max-width: 480px) {

  .brand-name {
    font-size: 17px;
  }

  .brand-name small {
    font-size: 8px;
  }

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

  .hero {
    min-height: 560px;
  }

  h1 {
    font-size: 47px;
  }

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

  .hero-note {
    right: 7%;
    bottom: 20px;
  }

  .season-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .season-strip strong {
    font-size: 14px;
  }

  .intro-photo {
    height: 310px;
  }

  .gallery-grid {
    columns: 1;
  }

  .visit-photo {
    min-height: 280px;
  }

  .contact-image {
    height: 280px;
  }

  .footer-bottom {
    gap: 15px;
  }

}
