/* ============================================================
   The Bottle Shoppe — Shared Stylesheet
   iOS/Apple-inspired minimalist design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ── Custom Properties ── */
:root {
  --blue: #1B3F6E;
  --blue-light: #2D5F9A;
  --blue-dark: #102A4A;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(20px);
  --card-radius: 16px;
  --pill-radius: 50px;
  --transition: all 0.2s ease;
  --section-pad: 80px;
}

/* ── Reset / Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: #1a1a2e;
  background: #f5f7fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(27, 63, 110, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 24px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  justify-self: center;
}

/* LOGO: replace span below with <img src="images/logo.png"> when ready */
.nav-logo-placeholder {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  justify-self: start;
}

.nav-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-social-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 4px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* ── Page Offset for Fixed Nav ── */
.page-body {
  padding-top: 64px;
}

/* ── Hero ── */
.hero {
  background:
    linear-gradient(135deg, rgba(27, 63, 110, 0.82) 0%, rgba(45, 95, 154, 0.72) 100%),
    url('images/storefront.png') center / cover no-repeat;
  padding: calc(var(--section-pad) + 100px) 24px var(--section-pad);
  text-align: center;
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── About Header (reuses storefront image) ── */
.about-header {
  background:
    linear-gradient(135deg, rgba(27, 63, 110, 0.85) 0%, rgba(45, 95, 154, 0.75) 100%),
    url('images/storefront.png') center / cover no-repeat;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  animation: heroFadeIn 0.8s ease both;
}

.hero-headline {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-tagline {
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Glass Card ── */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(27, 63, 110, 0.18);
}

/* Light card variant (on white background) */
.card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(27, 63, 110, 0.1);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: var(--transition);
}

.card-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(27, 63, 110, 0.12);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--pill-radius);
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--white);
  color: var(--blue);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: scale(1.03);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-light);
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(27, 63, 110, 0.35);
}

/* ── Icon Buttons ── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ── Section Layout ── */
.section {
  padding: var(--section-pad) 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.section-sub {
  font-weight: 300;
  color: #555;
  font-size: 1rem;
  max-width: 520px;
}

/* ── Hero section with gradient bg ── */
.section-blue {
  background: linear-gradient(135deg, #1B3F6E 0%, #2D5F9A 100%);
  color: var(--white);
  padding: var(--section-pad) 24px;
}

.section-blue .section-label { color: rgba(255,255,255,0.7); }
.section-blue .section-title { color: var(--white); }
.section-blue .section-sub { color: rgba(255,255,255,0.75); }

/* ── Delivery Card ── */
.delivery-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.delivery-card-text h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
}

.delivery-card-text p {
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  font-size: 0.95rem;
}

/* ── Social Row ── */
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Find Us Card ── */
.find-us-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  margin-top: 24px;
  display: flex;
  gap: 32px;
  overflow: hidden;
  min-height: 280px;
}

.find-us-info {
  padding: 36px 32px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.find-us-info h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
}

.find-us-info address,
.find-us-info p {
  font-style: normal;
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.find-us-map {
  flex: 1;
  min-height: 280px;
}

.find-us-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 600px) {
  .find-us-card { flex-direction: column; }
  .find-us-map  { min-height: 220px; }
}

/* ── Search Bar ── */
.search-wrap {
  position: relative;
  max-width: 440px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--pill-radius);
  border: 1px solid rgba(27, 63, 110, 0.15);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  color: #1a1a2e;
}

.search-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(27, 63, 110, 0.12);
}

.search-input::placeholder { color: #aaa; }

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

/* ── Inventory Page Header ── */
.inventory-header {
  background: linear-gradient(135deg, #1B3F6E 0%, #2D5F9A 100%);
  padding: calc(64px + 48px) 24px 48px;
  color: var(--white);
}

.inventory-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.inventory-header h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.inventory-header p {
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}

/* ── Category Section ── */
.category-section {
  margin-bottom: 56px;
}

.category-title {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(27, 63, 110, 0.12);
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ── Product Card ── */
.product-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 63, 110, 0.08);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27, 63, 110, 0.14);
  border-color: rgba(27, 63, 110, 0.18);
}

.product-img-wrap {
  background: linear-gradient(145deg, #e8f0fa 0%, #d4e3f7 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrap img {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-size {
  font-size: 0.78rem;
  color: #888;
  font-weight: 400;
  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
}

/* ── Stock Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-in {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-out {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── About Page ── */
.about-header {
  padding: calc(var(--section-pad) + 20px) 24px var(--section-pad);
  text-align: center;
  color: var(--white);
}

.about-header h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.about-header p {
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto;
}

.about-story {
  padding: var(--section-pad) 24px;
  max-width: 720px;
  margin: 0 auto;
}

.about-story h2 {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.about-story p {
  font-weight: 300;
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.storefront-img-wrap {
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 48px;
  background: linear-gradient(135deg, #d4e3f7 0%, #e8f0fa 100%);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c9ed9;
  font-size: 0.9rem;
}

.storefront-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Footer ── */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col h4 {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}

.footer-col p,
.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
  font-weight: 300;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── Empty/No Results ── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: #aaa;
}

.empty-state p {
  font-size: 1rem;
  margin-top: 8px;
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 560px) {
  .contact-form-row { grid-template-columns: 1fr; }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #444;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(27, 63, 110, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: #1a1a2e;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(27, 63, 110, 0.1);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #bbb;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ── Responsive Nav ── */
@media (max-width: 600px) {
  :root { --section-pad: 48px; }

  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.82rem; padding: 8px 0; }

  .hero { padding-top: calc(64px + 32px); }

  .search-wrap { max-width: 100%; }

  .delivery-card {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .inventory-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-title { display: none; }
  .nav-social .icon-btn { width: 36px; height: 36px; }
  .nav-social-label { display: none; }
}
