/* ==================================================
   HARBOR & PINE
   Restaurant Portfolio Template
================================================== */

:root {
  --forest: #17352c;
  --forest-dark: #0e241e;
  --forest-deep: #091914;
  --cream: #f3eee3;
  --cream-dark: #ddd4c3;
  --paper: #faf7f0;
  --copper: #ba7448;
  --copper-light: #d89a70;
  --ink: #1b211e;
  --muted: #68716b;
  --white: #ffffff;
  --line-light: rgba(255, 255, 255, 0.15);
  --line-dark: rgba(23, 53, 44, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}


/* ==================================================
   RESET
================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.section {
  padding: 120px max(6vw, 32px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


/* ==================================================
   HEADER
================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  min-height: 92px;
  padding: 18px max(5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line-light);
  color: var(--white);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-location {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 42px);
}

.site-navigation > a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-navigation > a:not(.header-reservation)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--copper-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-navigation > a:hover {
  color: var(--white);
}

.site-navigation > a:not(.header-reservation):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-navigation .header-reservation {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.site-navigation .header-reservation:hover {
  background: var(--white);
  color: var(--forest-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 7px 0;
  background: var(--white);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


/* ==================================================
   HERO
================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-dark);
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 18, 14, 0.92) 0%,
      rgba(5, 18, 14, 0.7) 42%,
      rgba(5, 18, 14, 0.2) 75%
    ),
    linear-gradient(
      0deg,
      rgba(5, 18, 14, 0.6) 0%,
      transparent 45%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 88%);
  padding: 160px 0 130px max(7vw, 45px);
}

.hero-content h1 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-description {
  max-width: 520px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 52px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--copper);
  color: var(--white);
}

.button-primary:hover {
  background: var(--copper-light);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--forest-dark);
}

.button-dark {
  background: var(--forest);
  color: var(--white);
}

.button-dark:hover {
  background: var(--copper);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--forest-dark);
}

.hero-details {
  position: absolute;
  right: max(5vw, 30px);
  bottom: 34px;
  z-index: 2;
  display: flex;
  gap: clamp(30px, 5vw, 70px);
}

.hero-details span {
  display: block;
  margin-bottom: 5px;
  color: var(--copper-light);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-details p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}


/* ==================================================
   STORY
================================================== */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(60px, 9vw, 150px);
  background: var(--cream);
}

.story-image {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.story-image::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 55%;
  height: 55%;
  border: 1px solid var(--copper);
  pointer-events: none;
}

.story-image img {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-content {
  max-width: 570px;
}

.story-content h2,
.section-heading h2,
.private-dining h2,
.reservations h2,
.visit-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.story-content > p:not(.eyebrow) {
  margin-top: 25px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.text-link {
  margin-top: 35px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--copper);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--copper);
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(5px);
}


/* ==================================================
   MENU
================================================== */

.menu-section {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.section-heading > p {
  max-width: 400px;
  padding-bottom: 8px;
  color: var(--muted);
  line-height: 1.8;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(50px, 8vw, 130px);
}

.menu-item {
  min-height: 150px;
  padding: 34px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line-dark);
}

.menu-item h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.menu-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-item > span {
  color: var(--copper);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.menu-action {
  margin-top: 50px;
  text-align: center;
}


/* ==================================================
   FEATURE IMAGE
================================================== */

.feature-image {
  position: relative;
  height: min(75vh, 780px);
  min-height: 540px;
  overflow: hidden;
  background: var(--forest-dark);
}

.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 22, 17, 0.68),
      rgba(6, 22, 17, 0.1)
    );
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-quote {
  position: absolute;
  bottom: 70px;
  left: max(7vw, 40px);
  z-index: 2;
  color: var(--white);
}

.feature-quote p {
  max-width: 780px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
}


/* ==================================================
   PRIVATE DINING
================================================== */

.private-dining {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(70px, 10vw, 160px);
  background: var(--forest);
  color: var(--white);
}

.private-dining-content {
  max-width: 580px;
}

.private-dining-content > p:not(.eyebrow) {
  margin: 30px 0 38px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
}

.private-dining-details > div {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 45px 180px 1fr;
  gap: 25px;
  border-bottom: 1px solid var(--line-light);
}

.private-dining-details > div:first-child {
  border-top: 1px solid var(--line-light);
}

.private-dining-details span {
  color: var(--copper-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.private-dining-details h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.private-dining-details p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* ==================================================
   RESERVATIONS
================================================== */

.reservations {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  text-align: center;
}

.reservations h2 {
  color: var(--forest);
}

.reservations > p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 35px;
  color: var(--muted);
  line-height: 1.8;
}


/* ==================================================
   VISIT
================================================== */

.visit {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(500px, 1.25fr);
  gap: clamp(70px, 10vw, 160px);
  background: var(--paper);
}

.visit-heading h2 {
  color: var(--forest);
}

.visit-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}

.visit-block {
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.visit-block h3 {
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visit-block p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.visit-block a {
  margin-top: 18px;
  display: inline-block;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 600;
}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
  padding: 75px max(6vw, 32px) 30px;
  background: var(--forest-deep);
  color: var(--white);
  text-align: center;
}

.footer-brand {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.site-footer > p {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 38px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--copper-light);
}

.footer-bottom {
  margin-top: 65px;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
}


/* ==================================================
   ACCESSIBILITY
================================================== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 5px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1050px) {

  .site-navigation {
    gap: 20px;
  }

  .site-navigation > a {
    font-size: 0.7rem;
  }

  .story,
  .private-dining,
  .visit {
    gap: 60px;
  }

  .private-dining-details > div {
    grid-template-columns: 40px 1fr;
  }

  .private-dining-details p {
    grid-column: 2;
  }

  .visit {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   MOBILE NAVIGATION
================================================== */

@media (max-width: 850px) {

  .section {
    padding: 85px 24px;
  }

  .site-header {
    position: absolute;
    min-height: 78px;
    padding: 15px 22px;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-location {
    font-size: 0.52rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 30;
    display: block;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 25;
    padding: 110px 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 25px;
    background: var(--forest-deep);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition:
      visibility 0.3s ease,
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .site-navigation.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-navigation > a {
    font-family: var(--serif);
    font-size: 1.8rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .site-navigation .header-reservation {
    margin-top: 15px;
    padding: 14px 22px;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(5, 18, 14, 0.88),
        rgba(5, 18, 14, 0.48)
      ),
      linear-gradient(
        0deg,
        rgba(5, 18, 14, 0.78),
        transparent 55%
      );
  }

  .hero-content {
    width: 100%;
    padding: 145px 24px 180px;
  }

  .hero-content h1 {
    font-size: clamp(3.3rem, 12vw, 5.5rem);
  }

  .hero-details {
    right: 24px;
    bottom: 28px;
    left: 24px;
    justify-content: space-between;
  }

  .story,
  .private-dining {
    grid-template-columns: 1fr;
  }

  .story-image {
    max-width: 480px;
  }

  .story-content {
    max-width: 650px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 500px;
  }

  .visit-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 600px) {

  .section {
    padding: 72px 20px;
  }

  .hero {
    min-height: 700px;
  }

  .story-image {
    max-width: 390px;
}

  .hero-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
    line-height: 1;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-details {
    right: 20px;
    left: 20px;
    gap: 25px;
  }

  .hero-details p {
    font-size: 0.75rem;
  }

  .story-image::before {
    top: -10px;
    right: -10px;
  }

  .story-content h2,
  .section-heading h2,
  .private-dining h2,
  .reservations h2,
  .visit-heading h2 {
    font-size: clamp(2.6rem, 12vw, 3.7rem);
  }

  .menu-item {
    min-height: auto;
    padding: 26px 0;
  }

  .menu-item h3 {
    font-size: 1.2rem;
  }

  .feature-image {
    min-height: 430px;
  }

  .feature-quote {
    right: 20px;
    bottom: 40px;
    left: 20px;
  }

  .private-dining-details > div {
    grid-template-columns: 35px 1fr;
    gap: 16px;
  }

  .visit-details {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }
}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}