/* ============================================
   Razbuton Ferns - Plan B Stylesheet
   Enhanced design with SVG assets & modern look
   ============================================ */

:root {
  --color-primary: #2d5016;
  --color-primary-dark: #1a3009;
  --color-accent: #4a7c2e;
  --color-accent-light: #6ba343;
  --color-bg: #f8faf5;
  --color-bg-pattern: url('../img/texture-leaf.svg');
  --color-white: #ffffff;
  --color-text: #2c3e1f;
  --color-muted: #5a6b4e;
  --color-light-border: #d4dfca;
  --color-highlight: #e8f0dd;
  --color-warning: #d4660a;
  --color-warm: #f0e8d8;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(45,80,22,0.08);
  --shadow-lg: 0 8px 24px rgba(45,80,22,0.12);
  --shadow-xl: 0 12px 40px rgba(45,80,22,0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg) var(--color-bg-pattern);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4 { color: var(--color-primary); line-height: 1.3; margin-bottom: 0.5em; font-weight: 700; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
hr { border: none; border-top: 2px solid var(--color-light-border); margin: 2rem 0; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.page-content { padding: 2.5rem 0; min-height: calc(100vh - var(--nav-height) - 120px); }

/* --- Navigation --- */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem;
  height: var(--nav-height);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: none; }
.nav-links a {
  color: var(--color-text); padding: 0.5rem 0.85rem; font-size: 0.95rem;
  border-radius: 6px; transition: all var(--transition); font-weight: 500; white-space: nowrap;
}
.nav-links a:hover { color: var(--color-accent); background: var(--color-highlight); }
.nav-links a.active { color: var(--color-white); background: var(--color-accent); }

/* Hamburger */
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); transition: all var(--transition); border-radius: 2px; }

/* Mobile nav open */
body.nav-open .nav-links {
  display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0;
  background: var(--color-white); padding: 1rem; gap: 0.25rem;
  border-bottom: 1px solid var(--color-light-border); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.nav-open .nav-links a { padding: 0.85rem 1rem; font-size: 1.1rem; }
body.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, rgba(45,80,22,0.72), rgba(26,48,9,0.78)),
              url('../img/ferns/liner-3-5.jpg') center/cover no-repeat;
  color: #fff; text-align: center; padding: 2.5rem 1.5rem;
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { color: #fff; font-size: 2rem; margin-bottom: 0.4rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.05rem; opacity: 0.95; max-width: 620px; margin: 0 auto 1.25rem; line-height: 1.5; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.8rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: all var(--transition); text-align: center; letter-spacing: 0.3px;
}
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 2px 8px rgba(74,124,46,0.3); }
.btn-primary:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(74,124,46,0.4); }
.btn-outline { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: var(--color-highlight); color: var(--color-primary); }
.btn-warning { background: var(--color-warning); color: #fff; }
.btn-warning:hover { background: #b5550a; color: #fff; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* --- Cards --- */
.card {
  background: var(--color-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(212,223,202,0.5);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* --- Feature Cards (Home) --- */
.features { display: grid; gap: 1.5rem; padding: 2.5rem 0; }
.feature-card { text-align: center; padding: 2.5rem 1.75rem; }
.feature-card .icon-wrap {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: var(--color-highlight); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.feature-card .icon-wrap img { width: 28px; height: 28px; }
.feature-card h3 { margin-top: 0.5rem; }

/* --- Product Grid --- */
.product-grid { display: grid; gap: 1.75rem; }
.product-card { cursor: pointer; }
.product-card .card-img { transition: transform 0.4s ease; }
.product-card:hover .card-img { transform: scale(1.03); }
.product-card .card-body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.product-card .card-body p { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.88); z-index: 2000; align-items: center; justify-content: center; padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 900px; width: 100%; text-align: center; }
.lightbox-content img { max-height: 70vh; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.lightbox-content h3 { color: #fff; margin-top: 1.25rem; font-size: 1.3rem; }
.lightbox-content p { color: rgba(255,255,255,0.75); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 2.2rem;
  cursor: pointer; background: rgba(0,0,0,0.3); border: none; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* --- Pricing --- */
.pricing-controls { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; justify-content: center; }
.pricing-toggle {
  display: inline-flex; background: var(--color-white); border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--color-light-border); box-shadow: var(--shadow);
}
.pricing-toggle button {
  padding: 0.7rem 1.4rem; border: none; background: transparent; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; transition: all var(--transition); color: var(--color-muted);
}
.pricing-toggle button.active { background: var(--color-accent); color: #fff; }
.pricing-toggle button:hover:not(.active) { background: var(--color-highlight); }

.price-cards { display: grid; gap: 1.75rem; }
.price-card { text-align: center; }
.price-card .card-body { padding: 2rem; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 2px solid var(--color-highlight); }
.price-row { display: flex; justify-content: space-between; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--color-highlight); border-radius: 4px; }
.price-row:nth-child(even) { background: var(--color-bg); }
.price-row:last-child { border-bottom: none; }
.price-label { color: var(--color-muted); }
.price-value { font-weight: 700; color: var(--color-primary); font-size: 1.15rem; }

.pricing-notes { margin-top: 2rem; }
.pricing-notes ul { list-style: none; padding: 0; }
.pricing-notes li { padding: 0.6rem 0; padding-left: 1.75rem; position: relative; }
.pricing-notes li::before { content: ""; position: absolute; left: 0; top: 0.9rem; width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 1.75rem; }
.contact-card { text-align: center; padding: 2.5rem 1.75rem; }
.contact-card .icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  background: var(--color-highlight); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon-wrap img { width: 28px; height: 28px; }
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card a { font-size: 1.1rem; font-weight: 600; }

.map-section { margin-top: 2.5rem; }
.map-container {
  position: relative; width: 100%; padding-bottom: 56.25%; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* --- Specials --- */
.special-card { margin-bottom: 1.75rem; }
.special-card .card-body { padding: 1.75rem; }
.special-card h3 { color: var(--color-accent); }
.callout {
  background: linear-gradient(135deg, var(--color-highlight), #f0f5eb);
  border-left: 4px solid var(--color-accent);
  padding: 1.75rem; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; margin: 2rem 0;
}

/* --- About & News --- */
.about-content, .news-content { max-width: 800px; margin: 0 auto; }
.news-entry { margin-bottom: 2.5rem; }
.news-entry .date { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 0.5rem; font-weight: 500; }
.news-entry img { border-radius: var(--radius-lg); margin: 1.25rem 0; box-shadow: var(--shadow-lg); }

/* --- Prototype Banner --- */
.prototype-banner {
  background: linear-gradient(135deg, #d4660a, #e8850f);
  color: #fff; text-align: center; padding: 0.85rem; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.5px;
}

/* --- Order Prototype --- */
.order-grid { display: grid; gap: 1.5rem; }
.order-product-card { display: flex; gap: 1rem; align-items: center; }
.order-product-card img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.order-product-info { flex: 1; }
.order-product-info h4 { margin-bottom: 0.25rem; }
.order-product-info .price { color: var(--color-accent); font-weight: 700; }
.order-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.order-controls input[type="number"] { width: 70px; }

.cart-summary {
  background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1.75rem; position: sticky; top: calc(var(--nav-height) + 1rem);
  border: 1px solid var(--color-light-border);
}
.cart-item { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--color-highlight); }
.cart-total { display: flex; justify-content: space-between; padding-top: 1rem; font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }

/* --- Forms --- */
.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--color-light-border);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74,124,46,0.15);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-dark); color: rgba(255,255,255,0.8);
  padding: 2.5rem 0; text-align: center; margin-top: 4rem; font-size: 0.9rem;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: #fff; }
.footer-contact { margin-top: 0.5rem; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.page-header { text-align: center; margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--color-light-border); }

/* ============================================
   Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
  h1 { font-size: 2.4rem; }
  .hero { padding: 3rem 2rem; min-height: 200px; }
  .hero-content h1 { font-size: 2.4rem; }
}

/* ============================================
   Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 0.35rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .price-cards { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 3.5rem 2rem; min-height: 220px; }
  .hero-content h1 { font-size: 2.8rem; }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .site-nav, .site-footer, .nav-toggle, .lightbox, .prototype-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .hero { background: #eee !important; min-height: auto; padding: 2rem; }
  a { color: #000; }
}
