/*
Theme Name: AllFresh Fruit & Veg
Theme URI: https://allfresh.au
Author: AllFresh
Author URI: https://allfresh.au
Description: Custom theme for AllFresh Fruit & Veg — Wholesalers of Quality Produce. Serving SA, VIC, NSW and QLD since 1994.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allfresh
*/

/* ── VARIABLES ── */
:root {
  --navy: #0f2b3c;
  --navy-deep: #091e2a;
  --navy-mid: #163a50;
  --gold: #c9a84c;
  --gold-light: #e2c76a;
  --gold-pale: #f5e6b8;
  --cream: #faf6ee;
  --white: #ffffff;
  --green-fresh: #4a9e3f;
  --green-dark: #2d6e25;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #7a7a7a;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700; font-size: 0.75rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; color: var(--navy); margin-bottom: 20px;
}
.section-title.light { color: var(--white); }
.section-subtitle {
  font-size: 1.1rem; color: var(--text-mid);
  line-height: 1.7; max-width: 600px;
}
.section-subtitle.light { color: rgba(255,255,255,0.75); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes shimmer { 0% { background-position:-200% center; } 100% { background-position:200% center; } }
.anim-fade-up { animation: fadeUp 0.8s ease-out both; }

/* ── HEADER ── */
.site-header {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  background: rgba(15,43,60,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15); transition: all 0.3s;
}
.site-header.scrolled { background: rgba(9,30,42,0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: 1200px; margin: 0 auto; height: 72px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 0.9rem;
  color: rgba(255,255,255,0.7); letter-spacing: 0.5px; transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content:''; position: absolute; bottom:-4px; left:0;
  width:0; height:2px; background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  padding: 10px 24px; border-radius: 6px; font-weight: 700 !important;
  letter-spacing: 0.5px; transition: all 0.3s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,168,76,0.4); }
.nav-cta::after { display: none !important; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--gold); transition: all 0.3s; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-mid) 100%); overflow: hidden;
}
.hero::before {
  content:''; position: absolute; inset:0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 50% 80% at 20% 80%, rgba(74,158,63,0.05) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute; inset:0; opacity: 0.03;
  background-image: radial-gradient(circle at 20% 30%, var(--gold) 1px, transparent 1px),
                     radial-gradient(circle at 80% 70%, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px, 45px 45px;
}
.hero-inner {
  position: relative; z-index:2; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px; padding: 140px 0 100px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50px; padding: 8px 20px; font-size: 0.8rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 28px;
  animation: fadeUp 0.6s ease-out both;
}
.hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); line-height: 1.1; margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out 0.15s both;
}
.hero h1 em {
  font-style: normal; color: var(--gold);
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 4s linear infinite;
}
.hero-desc {
  font-size: 1.15rem; line-height: 1.8; color: rgba(255,255,255,0.65); margin-bottom: 40px;
  animation: fadeUp 0.8s ease-out 0.3s both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s ease-out 0.45s both; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.hero-image { position: relative; animation: fadeIn 1s ease-out 0.5s both; }
.hero-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-image-grid img {
  width: 100%; height: 200px; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08); transition: transform 0.4s;
}
.hero-image-grid img:hover { transform: scale(1.03); }
.hero-image-grid img:nth-child(2) { transform: translateY(20px); }
.hero-image-grid img:nth-child(2):hover { transform: translateY(20px) scale(1.03); }
.hero-image-grid img:nth-child(3) { transform: translateY(-10px); }
.hero-image-grid img:nth-child(3):hover { transform: translateY(-10px) scale(1.03); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201,168,76,0.1); border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 32px 0;
}
.trust-bar .container { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.6); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.5px;
}
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── ABOUT ── */
.about { padding: 100px 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-main {
  width: 100%; height: 280px; object-fit: cover; border-radius: 20px; margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.about-stats-block {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 20px; padding: 48px; position: relative; overflow: hidden;
}
.about-stats-block::before {
  content:''; position: absolute; top:-30%; right:-30%; width:60%; height:60%;
  background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 70%);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; z-index:1; }
.stat-box { text-align: center; padding: 24px; background: rgba(255,255,255,0.04); border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.stat-num { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 2rem; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.haccp-strip {
  margin-top: 24px; background: var(--white); border-radius: 12px; padding: 20px 28px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.haccp-icon {
  background: var(--green-fresh); color: var(--white); font-weight: 800; font-size: 0.7rem;
  padding: 10px 12px; border-radius: 8px; letter-spacing: 1px; flex-shrink: 0;
}
.haccp-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }
.haccp-text strong { color: var(--text-dark); }
.about-text p { color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; font-size: 1.05rem; }
.about-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.about-check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95rem; color: var(--text-dark); }
.about-check::before {
  content: '\2713'; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  background: rgba(74,158,63,0.12); color: var(--green-fresh); font-weight: 700; font-size: 0.75rem; border-radius: 6px; flex-shrink: 0;
}

/* ── SERVICES ── */
.services { padding: 100px 0; background: var(--white); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header .section-subtitle { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  position: relative; border-radius: 16px; text-align: center;
  border: 1px solid rgba(0,0,0,0.06); background: var(--cream); transition: all 0.4s; overflow: hidden;
}
.service-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.service-card-body { padding: 28px 28px 36px; }
.service-card::before {
  content:''; position: absolute; top:0; left:0; right:0; height: 4px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.4s; z-index: 1;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); border-color: rgba(201,168,76,0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-number {
  width: 48px; height: 48px; margin: 0 auto 20px;
  background: var(--navy); color: var(--gold); font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 1.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.service-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); margin-bottom: 12px; }
.service-desc { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* ── WHY US ── */
.why-us {
  padding: 100px 0;
  background: linear-gradient(170deg, var(--navy-deep), var(--navy), var(--navy-mid));
  position: relative; overflow: hidden;
}
.why-us::before {
  content:''; position: absolute; inset:0; opacity: 0.03;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px); background-size: 40px 40px;
}
.why-us-header { text-align: center; margin-bottom: 60px; position: relative; z-index:1; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index:1; }
.why-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 40px 32px; transition: all 0.4s;
}
.why-card:hover { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.2); transform: translateY(-4px); }
.why-card-icon {
  width: 56px; height: 56px; background: rgba(201,168,76,0.12); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.why-card-icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 12px; }
.why-card-text { font-size: 0.92rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ── COVERAGE ── */
.coverage { padding: 80px 0; background: var(--cream); }
.coverage-inner {
  background: var(--white); border-radius: 20px; padding: 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
.state-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.state-tag {
  background: rgba(15,43,60,0.06); color: var(--navy); padding: 12px 24px;
  border-radius: 50px; font-size: 0.92rem; font-weight: 600; transition: all 0.3s;
}
.state-tag:hover { background: var(--navy); color: var(--gold); }
.coverage-cta-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 16px; padding: 44px; text-align: center;
}
.coverage-cta-box h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.coverage-cta-box p { color: rgba(255,255,255,0.6); margin-bottom: 28px; font-size: 0.95rem; line-height: 1.6; }

/* ── CONTACT ── */
.contact { padding: 100px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 18px; padding: 24px;
  background: var(--cream); border-radius: 14px; transition: all 0.3s;
}
.contact-card:hover { transform: translateX(6px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.contact-card-icon {
  width: 48px; height: 48px; background: var(--navy); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; }
.contact-card-label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-card-value { font-weight: 600; color: var(--navy); font-size: 1rem; }
.contact-card-value a { color: var(--navy); text-decoration: none; transition: color 0.3s; }
.contact-card-value a:hover { color: var(--gold); }
.contact-card-detail { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; line-height: 1.5; }
.contact-form-wrap { background: var(--cream); border-radius: 20px; padding: 44px; }
.contact-form-wrap h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: var(--white); color: var(--text-dark);
  transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%; background: var(--navy); color: var(--gold); font-size: 1rem; padding: 16px;
  border: none; border-radius: 10px; font-family: inherit; font-weight: 700; cursor: pointer;
  letter-spacing: 0.5px; transition: all 0.3s;
}
.btn-submit:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,43,60,0.3); }

/* ── FOOTER ── */
.site-footer { background: var(--navy-deep); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.7; margin-top: 8px; max-width: 320px; }
.footer-col h4 { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-hours { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-hours strong { color: rgba(255,255,255,0.7); }
.footer-bottom {
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 120px 0 60px; }
  .hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .coverage-inner { grid-template-columns: 1fr; padding: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left:0; right:0;
    background: var(--navy-deep); padding: 24px; gap: 20px; border-bottom: 1px solid rgba(201,168,76,0.15);
  }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .about-checks { grid-template-columns: 1fr; }
  .trust-bar .container { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-form-wrap { padding: 28px; }
}
