/* ==========================================================================
   INVERSELIFE TEA BRAND - MAIN DESIGN SYSTEM (style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --bg-cream: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-dark: #14281D;
  --forest-green: #1E3A2B;
  --forest-green-dark: #12251B;
  --warm-brown: #5C3D2E;
  --deep-brown: #3E2723;
  --tea-gold: #C89D55;
  --tea-gold-hover: #B58A42;
  --tea-gold-light: #F7EFE1;
  --dark-charcoal: #1F2421;
  --muted-gray: #6C757D;
  --light-gray: #E9ECEF;
  --border-color: #E2DFD8;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 58, 43, 0.05);
  --shadow-md: 0 8px 24px rgba(30, 58, 43, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 58, 43, 0.12);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--dark-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--tea-gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* Typography Utilities with Fluid Sizing */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--forest-green);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(1.85rem, 4vw + 0.5rem, 3.25rem); }
h2 { font-size: clamp(1.45rem, 3vw + 0.3rem, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw + 0.2rem, 1.75rem); }
h4 { font-size: clamp(1.05rem, 1.5vw + 0.2rem, 1.35rem); }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tea-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw + 0.5rem, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--muted-gray);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

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

/* 8. ANNOUNCEMENT BAR */
.announcement-bar {
  background-color: var(--forest-green-dark);
  color: var(--tea-gold-light);
  font-size: clamp(0.7rem, 2vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.75px;
  text-align: center;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
  word-break: break-word;
}

/* 9. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: #FFFFFF;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 700;
  color: var(--forest-green);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo span {
  color: var(--tea-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-charcoal);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--tea-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--forest-green);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  flex-shrink: 0;
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
  position: relative;
}

.header-icon-btn:hover {
  background-color: rgba(30, 58, 43, 0.06);
  color: var(--forest-green);
}

.header-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--tea-gold);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--forest-green);
  border-radius: var(--radius-sm);
}

.mobile-nav-toggle:hover {
  background-color: rgba(30, 58, 43, 0.06);
}

/* 10. HERO SECTION */
.hero-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--forest-green);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--warm-brown);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* 28. FOOTER */
.site-footer {
  background-color: var(--bg-dark);
  color: #E8DFD8;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 3rem;
}

.footer-brand .brand-logo {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: #B0A79E;
  margin-bottom: 1.5rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tea-gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #C2BAAF;
  font-size: 0.875rem;
  display: inline-block;
  padding: 0.2rem 0;
  word-break: break-word;
}

.footer-links a:hover {
  color: var(--tea-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #8C847B;
  flex-wrap: wrap;
  gap: 1rem;
}

.placeholder-badge {
  font-size: 0.75rem;
  background: rgba(200, 157, 85, 0.15);
  color: var(--tea-gold);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
