/* =============================================
   Tyendinaga's Garden Centre - Site Stylesheet
   ============================================= */

:root {
  --green: #2E5A27;
  --green-dark: #1F3F1B;
  --green-light: #E9EFE8;
  --terracotta: #C05A35;
  --gold: #E5A93D;
  --text: #333333;
  --text-light: #666666;
  --border: #dcd7c7;
  --white: #ffffff;
  --bg: #F7F4EB;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

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

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  font-size: 0.97rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  font-size: 0.97rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #a04626; }

.btn-primary-sm {
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.btn-primary-sm:hover { background: var(--green-dark); text-decoration: none; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  gap: 1.5rem;
}
.logo { font-size: 1.4rem; font-weight: bold; color: var(--green); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo img { height: 39px; display: block; }

.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 0.2rem; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--green);
  background: var(--green-light);
  text-decoration: none;
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 200;
  padding: 0.4rem 0;
  flex-direction: column;
}
.has-dropdown:hover .dropdown { display: flex; }
.has-dropdown .dropdown li a {
  padding: 0.5rem 1rem;
  border-radius: 0;
  color: var(--text);
}
.has-dropdown .dropdown li a:hover { background: var(--green-light); color: var(--green); }

.header-account { display: flex; align-items: center; gap: 0.7rem; white-space: nowrap; font-size: 0.9rem; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--green);
  margin-left: auto;
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.2rem 1rem;
}
.mobile-nav ul { list-style: none; }
.mobile-nav ul li a {
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav.open { display: block; }

/* ---- Hero ---- */
.hero { width: 100%; overflow: hidden; background: #000; position: relative; }
.hero-img { width: 100%; display: block; max-height: 480px; object-fit: cover; opacity: 0.7; }
.hero-content {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
}
.hero-content h1 { font-size: 2.8rem; margin-bottom: 0.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }
.hero-content p { font-size: 1.2rem; margin-bottom: 1.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }

/* ---- Featured Product ---- */
.featured-product {
  padding: 3rem 0 2rem;
  background: var(--bg);
}
.product-card.featured {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.product-card.featured img { width: 220px; height: auto; object-fit: contain; flex-shrink: 0; border-radius: 8px;}
.product-info h2 { color: var(--green); margin-bottom: 0.5rem; font-size: 1.5rem; }
.product-info .price { font-size: 1.4rem; font-weight: 700; color: #222; margin-bottom: 0.1rem; }
.product-info .shipping-note { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; }
.product-info .btn-primary { margin-bottom: 1rem; }
.product-desc { margin-bottom: 0.8rem; color: var(--text-light); }
.disclaimer { font-size: 0.83rem; color: #999; }

/* ---- Welcome ---- */
.welcome-section {
  padding: 3.5rem 0;
  background: var(--white);
}
.welcome-section h2 { font-size: 1.8rem; color: var(--green); margin-bottom: 0.8rem; }
.welcome-section .subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto;}

/* ---- Quality Banner ---- */
.quality-banner {
  background: var(--terracotta);
  color: #fff;
  padding: 2rem 0;
}
.quality-banner h2 { color: #fff; font-size: 1.6rem; }

/* ---- Reviews ---- */
.reviews-section { padding: 2.5rem 0; background: var(--bg); }
.reviews-section h2 { color: var(--green); margin-bottom: 1rem; }

/* ---- Categories ---- */
.categories-section { padding: 3rem 0; background: var(--white); }
.categories-section h2 { color: var(--green); margin-bottom: 2rem; font-size: 1.6rem; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.category-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
  background: var(--bg);
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--text);
  text-decoration: none;
}
.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--green);
}
.category-img-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  margin-bottom: 0.8rem;
}
.category-card h3 { font-size: 1rem; padding: 0 0.5rem; }
.category-card p { font-size: 0.85rem; padding: 0 1rem; color: var(--text-light); margin-top: 0.5rem; }

/* ---- Notice ---- */
.notice-section { padding: 1.2rem 0; background: #fffbe6; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.notice-section p { color: #7a6000; font-size: 0.93rem; }

/* ---- Newsletter ---- */
.newsletter-section { padding: 3rem 0; background: var(--bg); }
.newsletter-section h2 { color: var(--green); margin-bottom: 0.5rem; }
.newsletter-section p { color: var(--text-light); margin-bottom: 1.2rem; }
.newsletter-form { display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.newsletter-form label { font-weight: 600; }
.newsletter-form input[type="email"] {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.97rem;
  min-width: 220px;
}

/* ---- Connect ---- */
.connect-section { padding: 2.5rem 0; background: var(--green); color: #fff; }
.connect-section h2 { color: #fff; }

/* ---- Footer ---- */
.site-footer {
  background: var(--green-dark);
  color: #ccc;
  text-align: center;
  padding: 2rem 0 1.5rem;
  font-size: 0.9rem;
}
.site-footer p { margin-bottom: 0.4rem; }
.footer-nav { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: var(--green-light); }
.footer-nav a:hover { color: #fff; }

/* ---- Inner page ---- */
.page-content { padding: 3rem 0 4rem; }
.page-content h1 { color: var(--green); margin-bottom: 1.2rem; font-size: 2rem; }
.page-content h2 { color: var(--green); margin: 1.5rem 0 0.8rem; }
.page-content p { margin-bottom: 1rem; color: var(--text-light); line-height: 1.75; }
.page-content ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-light); }
.page-content li { margin-bottom: 0.4rem; }

/* ---- Contact form ---- */
.contact-form { max-width: 560px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; margin-top: 1rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.97rem;
  font-family: inherit;
}
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form .btn-primary { margin-top: 1.2rem; }

/* ---- Shop grid ---- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.shop-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.shop-card:hover { box-shadow: var(--shadow); }
.shop-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2rem;
}
.shop-card-body { padding: 1rem; }
.shop-card-body h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.4rem; }
.shop-card-body .price { color: var(--green); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.8rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .main-nav, .header-account { display: none; }
  .mobile-menu-btn { display: block; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.featured { flex-direction: column; }
  .product-card.featured img { width: 100%; max-width: 280px; }
}

@media (max-width: 540px) {
  .categories-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
}
