/* ==========================================================
   Amity Halal Meat & Grocery — Warm & Rich Theme
   ========================================================== */

/* --- Design Tokens --- */
:root {
  --green: #1B5E20;
  --green-dark: #0D3B12;
  --green-light: #2E7D32;
  --gold: #C8860A;
  --gold-light: #E8A817;
  --gold-pale: #F5DEB3;
  --burgundy: #7B1A1A;
  --burgundy-light: #A13333;
  --cream: #FFF8F0;
  --cream-dark: #F5E6D3;
  --beige: #FAF0E6;
  --brown: #2C1810;
  --brown-light: #5C4033;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(44,24,16,0.08);
  --shadow-md: 0 4px 12px rgba(44,24,16,0.1);
  --shadow-lg: 0 8px 30px rgba(44,24,16,0.12);
  --shadow-xl: 0 16px 50px rgba(44,24,16,0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --container: 1200px;
  --container-narrow: 800px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
  background-color: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--brown-light);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 59, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(13, 59, 18, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.logo:hover {
  color: var(--gold-pale);
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-sub {
  font-size: 0.7rem;
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 8px 20px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, var(--green-dark) 0%, var(--green) 40%, #1a4a1a 70%, var(--green-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,134,10,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(200,134,10,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--gold-pale);
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-services {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================
   WHY AMITY
   ========================================================== */
.why-amity {
  padding: 100px 0;
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid rgba(200,134,10,0.1);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,134,10,0.25);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.value-card p {
  color: var(--brown-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================
   FEATURED PRODUCTS
   ========================================================== */
.featured-products {
  padding: 100px 0;
  background: var(--cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--brown);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  color: var(--brown);
}

.product-card:hover .product-link {
  color: var(--gold);
}

.product-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-emoji {
  font-size: 4rem;
  filter: grayscale(0);
  transition: transform 0.3s ease;
}

.product-card:hover .product-emoji {
  transform: scale(1.15);
}

.product-info {
  padding: 20px;
  flex: 1;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.product-info p {
  font-size: 0.88rem;
  color: var(--brown-light);
  line-height: 1.5;
}

.product-link {
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  border-top: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s ease;
}

/* ==========================================================
   REVIEWS CAROUSEL
   ========================================================== */
.reviews-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  overflow: hidden;
}

.reviews-section .section-title {
  color: var(--white);
}

.reviews-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.reviews-carousel {
  margin-top: 16px;
}

.reviews-swiper {
  padding: 0 24px 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--gold);
}

.review-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--brown);
  font-style: italic;
  flex: 1;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}

.review-name {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--brown-light);
}

/* ==========================================================
   LOCATION & HOURS
   ========================================================== */
.location-section {
  padding: 100px 0;
  background: var(--white);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.branch-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200,134,10,0.1);
}

.branch-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.branch-location,
.branch-location-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  background: rgba(200,134,10,0.1);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.branch-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block h3,
.info-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.info-block h3 svg,
.info-block h4 svg {
  color: var(--gold);
  flex-shrink: 0;
}

.info-block p {
  color: var(--brown-light);
  font-size: 0.95rem;
}

.info-block a {
  color: var(--brown-light);
}

.info-block a:hover {
  color: var(--gold);
}

.info-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.hours-compact {
  list-style: none;
}

.hours-compact li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--brown-light);
  border-bottom: 1px solid var(--cream-dark);
}

.hours-compact li:last-child {
  border-bottom: none;
}

.hours-compact li span:first-child {
  font-weight: 500;
  color: var(--brown);
}

/* ==========================================================
   INSTAGRAM SECTION
   ========================================================== */
.instagram-section {
  padding: 80px 0;
  background: var(--cream);
  text-align: center;
}

.instagram-cta {
  margin-top: -16px;
}

.instagram-cta .btn {
  font-size: 1rem;
  padding: 16px 32px;
}

/* ==========================================================
   PAGE HERO (inner pages)
   ========================================================== */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
}

.breadcrumb a:hover {
  color: var(--gold-pale);
}

.breadcrumb span {
  color: var(--gold-pale);
}

/* ==========================================================
   PAGE CONTENT
   ========================================================== */
.page-content {
  padding: 80px 0;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--brown-light);
}

.page-content ul, .page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
  color: var(--brown-light);
}

.page-content strong {
  color: var(--brown);
}

/* --- Items Grid (product detail pages) --- */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.item-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--cream-dark);
  transition: all 0.2s ease;
}

.item-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(200,134,10,0.2);
}

.item-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.item-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.item-card p {
  font-size: 0.9rem;
  color: var(--brown-light);
  margin-bottom: 0;
}

.product-cta {
  text-align: center;
  padding: 48px 24px;
  margin-top: 40px;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.product-cta p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--brown);
}

.product-cta .btn-secondary {
  color: var(--green);
  border-color: var(--green);
}

.product-cta .btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.contact-top-grid {
  margin-bottom: 64px;
}

.branches-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.contact-branch {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--cream-dark);
}

.contact-branch h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 4px;
  margin-top: 0;
}

.contact-details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.contact-map-block h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  margin-top: 0;
}

.contact-form-col h2 {
  font-family: var(--font-heading);
  margin-bottom: 24px;
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brown);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--brown);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,134,10,0.15);
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding-top: 72px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  font-size: 1.4rem;
  color: var(--gold);
}

.footer-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
}

.footer-logo .logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold-pale);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-branch {
  margin-bottom: 14px;
}

.footer-branch strong {
  color: var(--gold-pale);
  font-size: 0.9rem;
}

.footer-branch p {
  font-size: 0.82rem;
  margin: 2px 0;
  color: rgba(255,255,255,0.55);
}

.footer-branch a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}

.footer-branch a:hover {
  color: var(--gold);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  padding: 3px 0;
  color: rgba(255,255,255,0.55);
}

.hours-list li span:first-child {
  color: rgba(255,255,255,0.75);
}

.footer-bottom {
  margin-top: 48px;
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }

  .contact-maps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(13, 59, 18, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    margin: 8px 0 0 0;
    justify-content: center;
    width: 100%;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-card {
    padding: 32px 24px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Scroll Animations --- */
.animate-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-target.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 24px;
  }
}
