/* ============================================
   PILGRIM RIDGE FARM — Global Styles
   ============================================ */

:root {
  /* Primary: terracotta / rust */
  --green-dark:   #6b3a20;   /* deep saddle brown — replaces dark green */
  --green:        #b85c32;   /* warm terracotta — primary interactive */
  --green-light:  #8a7060;   /* muted driftwood — subtle sage replacement */

  /* Gold / wheat accents */
  --gold:         #a07830;
  --gold-light:   #c4a04a;

  /* Parchment backgrounds */
  --cream:        #faf3e8;
  --cream-dark:   #eedfc4;

  /* Warm browns */
  --brown-dark:   #1e1208;
  --brown:        #6b3a18;
  --brown-light:  #9b6840;

  /* Text */
  --text:         #261408;
  --text-muted:   #7a5438;

  --white:        #ffffff;
  --shadow:       rgba(30, 18, 8, 0.14);
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Georgia', serif;
  line-height: 1.25;
  color: var(--brown-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--brown); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }

.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ---- Layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt { background: var(--cream-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-full { display: block; width: 100%; }

/* ---- Section headers ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.divider {
  width: 60px; height: 3px;
  background: var(--green);   /* terracotta bar */
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--brown-dark);
  box-shadow: 0 2px 12px var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--cream) !important;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--gold-light); }
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--cream-dark);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: var(--gold-light);
}
.nav-cart-btn {
  position: relative;
  background: var(--green);        /* terracotta via variable */
  color: var(--white) !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius) !important;
}
.nav-cart-btn:hover { background: var(--green-dark) !important; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: sans-serif;
}
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--brown-dark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 4px 12px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.6rem 1rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 88vh;
  display: flex; align-items: center;
  background:
    linear-gradient(to bottom, rgba(30,20,5,0.55) 0%, rgba(30,20,5,0.35) 100%),
    url('/images/hero.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 700px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   HOME — ABOUT STRIP
   ============================================ */
.about-strip {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 2.5rem 0;
}
.about-strip .container {
  display: flex; gap: 2.5rem; align-items: center;
  flex-wrap: wrap; justify-content: center;
}
.about-feature {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem;
}
.about-feature svg { color: var(--gold-light); flex-shrink: 0; }

/* ============================================
   CARDS — PRODUCTS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}
.product-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.product-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1; display: flex; flex-direction: column;
}
.product-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);         /* terracotta via variable */
  font-weight: bold;
  margin-bottom: 0.35rem;
  font-family: sans-serif;
}
.product-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.product-card p  { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; gap: 0.75rem;
}
.product-price {
  font-size: 1.2rem; font-weight: bold; color: var(--brown);
}
.product-price small { font-size: 0.7rem; color: var(--text-muted); font-weight: normal; }

/* ============================================
   STAY CARDS
   ============================================ */
.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.stay-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stay-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.stay-card img { width: 100%; height: 220px; object-fit: cover; }
.stay-card-body { padding: 1.5rem; }
.stay-card h3 { margin-bottom: 0.4rem; }
.stay-card p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.stay-amenities {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem;
}
.amenity-tag {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-family: sans-serif;
}
.stay-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.stay-price { font-size: 1.1rem; font-weight: bold; color: var(--brown); }
.stay-price small { font-size: 0.75rem; font-weight: normal; color: var(--text-muted); }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card img { width: 100%; height: 190px; object-fit: cover; }
.blog-card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  font-size: 0.78rem; color: var(--text-muted);
  font-family: sans-serif; margin-bottom: 0.5rem;
}
.blog-meta span { color: var(--green); }  /* terracotta via variable */
.blog-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.blog-card p  { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.blog-card a.read-more {
  display: inline-block; margin-top: 0.75rem;
  font-size: 0.85rem; font-weight: bold; color: var(--brown);
}
.blog-card a.read-more:hover { color: var(--green); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 10px var(--shadow);
  border-left: 4px solid var(--green);  /* terracotta accent */
}
.testimonial p { font-style: italic; color: var(--text-muted); margin-bottom: 1rem; }
.testimonial-author { font-weight: bold; font-size: 0.88rem; color: var(--brown); }
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.75rem; }

/* ============================================
   CONTACT / NEWSLETTER
   ============================================ */
.newsletter {
  background: #3a2210;      /* deep warm espresso */
  padding: 4rem 0;
  text-align: center;
  color: var(--cream);
}
.newsletter h2 { color: var(--cream); margin-bottom: 0.75rem; }
.newsletter p  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.newsletter-form {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  min-width: 280px;
  background: var(--cream);
  color: var(--text);
}
.newsletter-form input:focus { outline: 2px solid var(--gold-light); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer h4 { color: var(--cream); margin-bottom: 1rem; font-size: 0.95rem; letter-spacing: 0.05em; }
.footer p  { font-size: 0.88rem; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: sans-serif;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: -420px; bottom: 0; width: 400px; max-width: 100vw;
  background: var(--cream);
  z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #3a2210;
  color: var(--cream);
}
.cart-header h3 { color: var(--cream); margin: 0; }
.cart-close {
  background: none; border: none; color: var(--cream);
  font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0 0.25rem;
}
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid var(--cream-dark);
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.cart-item-info p  { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1rem; padding: 0.25rem;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: #c0392b; }
.cart-qty {
  display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem;
}
.cart-qty button {
  width: 22px; height: 22px;
  background: var(--cream-dark); border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px; cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cart-qty button:hover { background: var(--brown); color: white; border-color: var(--brown); }
.cart-qty span { font-size: 0.9rem; font-weight: bold; min-width: 20px; text-align: center; }
.cart-footer {
  padding: 1.25rem 1.5rem;
  background: var(--cream-dark);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: bold;
  margin-bottom: 1rem;
  color: var(--brown-dark);
}
.cart-empty {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.cart-empty svg { margin-bottom: 1rem; opacity: 0.4; }

/* ============================================
   BOOKING MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity var(--transition);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  background: #3a2210; color: var(--cream);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h3 { color: var(--cream); margin: 0; font-size: 1.1rem; }
.modal-close {
  background: none; border: none; color: var(--cream);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-body { padding: 1.75rem; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.88rem; font-weight: bold; color: var(--brown);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d4c8b4;
  border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem;
  background: var(--white); color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--brown-light);
  box-shadow: 0 0 0 3px rgba(107, 58, 24, 0.12);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background:
    linear-gradient(to bottom, rgba(30,20,5,0.6), rgba(30,20,5,0.4)),
    var(--img, url('https://images.pexels.com/photos/33026415/pexels-photo-33026415.jpeg?auto=compress&cs=tinysrgb&w=1400'))
    center/cover no-repeat;
  padding: 5rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: bold;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-green { background: #f4e8dc; color: var(--brown-dark); }   /* warm parchment */
.badge-gold  { background: #fdf3d8; color: var(--gold); }

/* notification toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  background: #3a2210; color: var(--cream);
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  font-size: 0.9rem; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: translateY(80px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* about section two-col */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.two-col img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px var(--shadow);
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
}

/* filter tabs */
.filter-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1.5px solid var(--brown-light);
  background: transparent; color: var(--brown);
  font-family: inherit; font-size: 0.88rem; cursor: pointer;
  transition: all var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--brown); color: var(--white);
  border-color: var(--brown);
}

/* blog article page */
.blog-article { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem; }
.blog-article h1 { margin-bottom: 0.75rem; }
.blog-article .blog-meta { margin-bottom: 2rem; }
.blog-article img { width: 100%; border-radius: var(--radius-lg); margin: 2rem 0; }
.blog-article h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.6rem; }
.blog-article h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-article ul, .blog-article ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-article li { margin-bottom: 0.4rem; }
.blog-article blockquote {
  border-left: 4px solid var(--green);  /* terracotta */
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted);
}
