/* Portland Country Club - Main Stylesheet */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img, picture {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Colors */
  --theme-primary: hsl(0, 0%, 0%);
  --theme-primary-hover: hsl(0, 0%, 20%);
  --theme-on-primary: #fff;
  --theme-bg: #fff;
  --theme-on-bg: #000;
  --theme-surface-1: #f2f2f2;
  --theme-on-surface-1: #000;
  --theme-surface-2: #cce6d0;
  --theme-on-surface-2: #000;

  /* Shape */
  --theme-shape-radius: 0;
  --theme-button-border-radius: 1rem;
  --theme-transition: 0.2s ease-in-out;

  /* Layout */
  --section-margin: 3rem;
  --theme-grid-gap: 1rem;
  --container-max-width: 1440px;
  --container-max-width-narrow: 960px;
  --container-padding: 0 1rem;
  --navbar-height: 80px;

  /* Typography */
  --theme-font-family-serif: "Lora", Georgia, serif;
  --theme-font-family-sans: "Open Sans", Arial, sans-serif;

  /* Font Sizes */
  --font-size-sm: clamp(14.4px, 0.07vw + 14.13px, 15px);
  --font-size-base: clamp(18px, 0.23vw + 17.09px, 20px);
  --font-size-md: clamp(22.5px, 0.47vw + 20.61px, 26.66px);
  --font-size-lg: clamp(28.13px, 0.84vw + 24.76px, 35.54px);
  --font-size-xl: clamp(35.16px, 1.39vw + 29.6px, 47.37px);
  --font-size-xxl: clamp(43.95px, 2.18vw + 35.22px, 63.15px);
  --font-size-xxxl: clamp(54.93px, 3.32vw + 41.64px, 84.17px);
}

/* ========================================
   Web Fonts
   ======================================== */
@font-face {
  font-family: "Roboto Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/roboto-serif-v8-latin-600.woff2) format("woff2"),
       url(/assets/fonts/roboto-serif-v8-latin-600.woff) format("woff");
}

@font-face {
  font-family: "Roboto Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/roboto-serif-v8-latin-700.woff2) format("woff2"),
       url(/assets/fonts/roboto-serif-v8-latin-700.woff) format("woff");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/lato-v23-latin-300.woff2) format("woff2"),
       url(/assets/fonts/lato-v23-latin-300.woff) format("woff");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/lato-v23-latin-regular.woff2) format("woff2"),
       url(/assets/fonts/lato-v23-latin-regular.woff) format("woff");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/lato-v23-latin-700.woff2) format("woff2"),
       url(/assets/fonts/lato-v23-latin-700.woff) format("woff");
}

@font-face {
  font-family: Lato;
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/lato-v23-latin-700italic.woff2) format("woff2"),
       url(/assets/fonts/lato-v23-latin-700italic.woff) format("woff");
}

/* ========================================
   Base Typography
   ======================================== */
html, body {
  height: 100%;
  line-height: 1.5;
  font-family: var(--theme-font-family-sans);
  font-size: var(--font-size-base);
  color: var(--theme-on-bg);
}

body {
  max-width: 1920px;
  margin: 0 auto;
  background-color: var(--theme-bg);
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--theme-font-family-serif);
  font-weight: 700;
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

h1, h2 {
  line-height: 1.1;
  font-weight: 100;
}

h3 {
  font-weight: 500;
}

h6 {
  font-size: var(--font-size-sm);
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0 0 1rem;
}

blockquote {
  font-style: italic;
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  border-left: 0.25rem solid var(--theme-on-bg);
}

/* ========================================
   Skip Link (Accessibility)
   ======================================== */
.skip-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  text-align: center;
  font-family: var(--theme-font-family-sans);
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 700;
  background: var(--theme-bg);
  z-index: 5;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  width: 100vw;
  height: 48px;
  position: fixed;
  clip: initial;
  clip-path: initial;
  background: var(--theme-on-bg);
  color: var(--theme-bg);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Announcement Banner
   ======================================== */
.announcement-banner {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--theme-primary);
  color: var(--theme-on-primary);
  position: relative;
  z-index: 100;
}

.announcement-banner p {
  margin: 0 auto;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  width: 100%;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.header-logo-menu {
  display: flex;
  align-items: center;
  z-index: 100;
}

.header-logo {
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.header-logo img {
  height: 80px;
}

.header-action {
  z-index: 100;
}

/* Mobile Menu Button */
#menuButton {
  outline: none;
  border: none;
  background-color: transparent;
  margin-right: 0.5rem;
  display: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#menuButton > span {
  color: var(--theme-on-bg);
  vertical-align: middle;
}

/* Navigation */
.header-nav {
  display: flex;
  justify-content: flex-end;
}

.header-nav nav {
  display: flex;
}

.header-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.header-nav li a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  color: inherit;
  opacity: 0.72;
  transition: opacity linear 0.15s;
}

.header-nav li a:hover {
  opacity: 1;
}

/* Mobile Navigation */
@media (max-width: 600px) {
  .site-header {
    padding: 1rem;
    gap: 0.5rem;
  }

  .header-action {
    margin-left: auto;
  }

  #menuButton {
    display: block;
    z-index: 100;
  }

  .header-nav {
    width: 100%;
    height: 100%;
    background-color: var(--theme-bg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 99;
  }

  .site-header[mobile-menu-open] .header-nav {
    display: flex;
  }

  .site-header[mobile-menu-open] nav ul {
    align-items: center;
    flex-direction: column;
  }

  .site-header[mobile-menu-open] nav ul li {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  width: fit-content;
  padding: 0.36rem 0.92rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-primary);
  color: var(--theme-on-primary);
  border: none;
  border-radius: var(--theme-button-border-radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--theme-primary-hover);
}

.btn--outlined {
  color: var(--theme-primary);
  background-color: transparent;
  border: 2px solid var(--theme-primary);
  transition: background-color var(--theme-transition);
}

.btn--outlined:hover {
  background-color: var(--theme-primary);
  color: var(--theme-on-primary);
}

/* ========================================
   Layout Containers
   ======================================== */
.container {
  margin: 0 auto;
  max-width: var(--container-max-width);
  padding: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-max-width-narrow);
}

/* ========================================
   Content Sections
   ======================================== */
.text-section {
  margin: var(--section-margin) auto;
}

.constrained-text-section {
  margin: var(--section-margin) auto;
  padding: clamp(10vh, 12vh, 18vh) 0;
  border-radius: var(--theme-shape-radius);
}

/* ========================================
   Hero Section (Home Page)
   ======================================== */
.hero-image {
  width: 105vw;
  max-width: none;
  height: 400px;
  background-image: url(/assets/pccCourse.jpg);
  background-size: cover;
  background-position: center;
  margin-left: -1rem;
  margin-right: -1rem;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  margin: auto;
  padding-left: 10px;
  color: #fff;
  text-align: center;
  font-size: 2em;
  font-weight: 100;
  text-shadow: 2px 2px 5px black;
}

.fade-in-text {
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Two Column Hero */
.hero-section {
  margin: var(--section-margin) auto;
  min-height: clamp(90vh, 100vw, calc(100vh - var(--navbar-height)));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.hero-section__text {
  justify-self: center;
  max-width: 25rem;
}

.hero-section__image {
  display: flex;
}

.hero-section__image img {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: cover;
  border-radius: var(--theme-shape-radius);
}

@media (max-width: 768px) {
  .hero-section {
    margin: 2rem auto 0;
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
  margin: var(--section-margin) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(90vh - var(--navbar-height));
  gap: 3rem;
}

.contact-section__info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--theme-surface-1);
  border-radius: var(--theme-shape-radius);
}

.contact-section__map {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  --footer-bg: var(--theme-surface-1);
  --footer-color: var(--theme-on-surface-1);
  min-height: 40vh;
  background-color: var(--footer-bg);
  color: var(--footer-color);
  border-top-left-radius: var(--theme-shape-radius);
  border-top-right-radius: var(--theme-shape-radius);
}

.footer-grid {
  padding: 10vh 0 1rem 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-socials {
  margin: 1rem 0;
  padding: 0;
  display: flex;
  list-style: none;
}

.footer-socials li {
  margin-right: 0.5rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a {
  text-decoration: none;
}

.footer-links li a:hover {
  opacity: 0.84;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
}

.footer-copyright p {
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .footer-grid > *:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    padding: 5vh 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    padding: 5vh 0;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-copyright {
    flex-direction: column;
  }
}

/* ========================================
   Tables (Membership Page)
   ======================================== */
.membership-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dadce0;
  margin-bottom: 1rem;
}

.membership-table th {
  background-color: #f8f9fa;
  border: 1px solid #dadce0;
  padding: 8px 12px;
  text-align: left;
  font-weight: bold;
  color: #202124;
}

.membership-table th:first-child {
  width: 70%;
}

.membership-table td {
  border: 1px solid #dadce0;
  padding: 8px 12px;
  color: #3c4043;
}

/* ========================================
   Slideshow (Harvest Grill)
   ======================================== */
.slideshow-container {
  max-width: 800px;
  margin: 30px auto;
  position: relative;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  border-radius: 8px;
}

.slide-nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.slide-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.slide-nav.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.slide-dots {
  text-align: center;
  margin-top: 10px;
}

.slide-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.slide-dot.active {
  background-color: #717171;
}

.fade {
  animation: fade 1s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ========================================
   Menu Grid (Harvest Grill)
   ======================================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 30px auto;
}

.menu-item {
  text-decoration: none;
  text-align: center;
}

.menu-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.menu-item img:hover {
  transform: scale(1.02);
}

.menu-item p {
  margin-top: 10px;
  font-weight: bold;
  color: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ========================================
   Harvest Grill Page Styles
   ======================================== */

/* Hero Section */
.harvest-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  background-image: url(/assets/harvestgrill-restarauntphoto2.jpeg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.harvest-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.harvest-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.harvest-hero__logo {
  max-width: 280px;
  max-height: 200px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.harvest-hero__tagline {
  color: #fff;
  font-size: var(--font-size-md);
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin: 0;
}

/* About Section */
.harvest-about {
  margin: var(--section-margin) auto;
  padding: 2rem 0;
}

.harvest-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.harvest-about__text h2 {
  margin-bottom: 1.5rem;
}

.harvest-about__text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.harvest-about__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.harvest-featured {
  display: inline-block;
  margin-top: 1rem;
  transition: transform var(--theme-transition);
}

.harvest-featured img {
  max-width: 150px;
  height: auto;
}

.harvest-featured:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .harvest-about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .harvest-about__image {
    order: -1;
  }
}

/* Hours Section */
.harvest-hours-section {
  background-color: var(--theme-surface-1);
  padding: 4rem 0;
}

.harvest-hours {
  text-align: center;
}

.harvest-hours h2 {
  margin-bottom: 2rem;
}

.harvest-hours__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.harvest-hours__item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform var(--theme-transition), box-shadow var(--theme-transition);
}

.harvest-hours__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.harvest-hours__item--closed {
  background: #f8f8f8;
  opacity: 0.8;
}

.harvest-hours__day {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: 0.5rem;
  color: var(--theme-primary);
}

.harvest-hours__time {
  display: block;
  font-size: var(--font-size-base);
  color: #555;
}

/* Gallery Section */
.harvest-gallery {
  margin: var(--section-margin) auto;
  padding: 2rem 0;
}

.harvest-gallery h2 {
  margin-bottom: 2rem;
}

/* Menu Section */
.harvest-menu-section {
  background-color: var(--theme-surface-2);
  padding: 4rem 0;
}

.harvest-menu h2 {
  margin-bottom: 0.5rem;
}

.harvest-menu__subtitle {
  color: #555;
  margin-bottom: 2rem;
}

.menu-item__image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-item__image-wrapper img {
  width: 100%;
  transition: transform 0.4s ease;
}

.menu-item:hover .menu-item__image-wrapper img {
  transform: scale(1.05);
}
