/*
Theme Name: Di's Supplies
Theme URI: https://dissupplies.co.uk
Author: Di's Supplies
Description: Agricultural supplies shop theme for Di's Supplies, Ingatestone, Essex.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: dissupplies
*/

:root {
  --navy:        #1C3461;
  --navy-dark:   #152848;
  --gold:        #F2C040;
  --gold-dark:   #d9a92c;
  --cream:       #F8F5EE;
  --cream-dark:  #EDE7D8;
  --white:       #FFFFFF;
  --text-dark:   #1a1a1a;
  --text-light:  #555555;
  --border:      #e8e2d4;
  --shadow:      rgba(28, 52, 97, 0.12);
  --radius:      10px;
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text-dark); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 580px; margin: 0 auto 44px; font-size: 0.97rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 6px; font-family: var(--font); font-size: 1rem; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: all .2s ease; }
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.btn-outline { background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.7); backdrop-filter: blur(2px); }
.btn-outline:hover { background: rgba(255,255,255,0.28); }
.btn-gold-sm { background: var(--gold); color: var(--navy-dark); padding: 10px 18px; font-size: 0.9rem; border-radius: 6px; }
.btn-gold-sm:hover { background: var(--gold-dark); }

/* Header */
#site-header { background: var(--navy); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img, .custom-logo { height: 52px; width: auto; }
.brand-name { font-size: 1.4rem; font-weight: 800; color: var(--gold); font-style: italic; }
#primary-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-links li a { color: var(--gold); font-size: 0.95rem; font-weight: 700; padding: 8px 14px; border-radius: 6px; transition: background .18s; }
.nav-links a:hover { background: rgba(255,255,255,0.08); }
.nav-links ul { display: flex; gap: 4px; }
.nav-cta { margin-left: 14px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--white); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  #primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-dark); flex-direction: column; align-items: stretch; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
  #primary-nav.open { display: flex; }
  .nav-links, .nav-links ul { flex-direction: column; align-items: stretch; }
  .nav-links a { display: block; padding: 12px 16px; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* Hero */
.hero { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: linear-gradient(180deg, #5b86b8 0%, #c9a85c 100%); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 55%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,25,55,.25), rgba(10,25,55,.35)); }
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 70px 24px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero-content p { font-size: clamp(.95rem, 2vw, 1.1rem); color: var(--white); max-width: 660px; margin: 0 auto 30px; text-shadow: 0 1px 6px rgba(0,0,0,.5); line-height: 1.75; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Trust bar */
.trust-bar { background: var(--navy); padding: 16px 0; }
.trust-bar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; }
.trust-item { color: var(--gold); font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* Products */
.products-section { background: var(--cream); padding: 80px 0 90px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { background: var(--white); border-radius: 8px; padding: 28px 24px 24px; border-top: 4px solid var(--gold); box-shadow: 0 2px 10px var(--shadow); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px var(--shadow); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; line-height: 1; }
.product-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-card p { font-size: .9rem; color: var(--text-light); line-height: 1.65; }

/* Why us */
.why-section { background: var(--white); padding: 80px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { text-align: center; padding: 32px 22px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--cream-dark); }
.why-icon { font-size: 2.4rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.why-card p { font-size: .9rem; color: var(--text-light); }

/* CTA */
.cta-banner { background: var(--navy); padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 28px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Footer */
#site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .brand-name { margin-bottom: 10px; }
.footer-brand p { font-size: .88rem; max-width: 300px; }
.footer-col h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; font-size: .88rem; line-height: 1.9; }
.footer-bottom { padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.45); }
