/* ===================================
   Golden Steam Coffee - Style Sheet
   =================================== */

/* CSS Variables */
:root {
  --espresso-brown: #3D2314;
  --roasted-coffee: #5C3D2E;
  --golden-steam: #D4A853;
  --warm-cream: #FDF6E9;
  --latte-foam: #F5EDE0;
  --milk-white: #FFFDF9;
  --charcoal: #2C2C2C;

  --font-heading: 'Playfair Display', serif;
  --font-subheading: 'Josefin Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --shadow-card: 0 4px 20px rgba(61, 35, 20, 0.08);
  --shadow-card-hover: 0 8px 30px rgba(61, 35, 20, 0.15);
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-input: 6px;

  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--espresso-brown);
  background-color: var(--warm-cream);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.eyebrow {
  display: block;
  font-family: var(--font-subheading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--golden-steam);
  margin-bottom: 12px;
}

.eyebrow-gold {
  color: var(--golden-steam);
}

.section-title {
  font-size: 2.5rem;
  color: var(--espresso-brown);
  margin-bottom: 48px;
}

.section-title-light {
  color: var(--milk-white);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-subheading);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--golden-steam);
  color: var(--espresso-brown);
}

.btn-primary:hover {
  background-color: #c49843;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(253, 246, 233, 0.98);
  box-shadow: 0 2px 20px rgba(61, 35, 20, 0.1);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--espresso-brown);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-subheading);
  font-size: 15px;
  font-weight: 500;
  color: var(--espresso-brown);
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--golden-steam);
}

.nav-cta {
  background-color: var(--golden-steam);
  padding: 10px 24px !important;
  border-radius: var(--radius-button);
  color: var(--espresso-brown) !important;
}

.nav-cta:hover {
  background-color: #c49843 !important;
  color: var(--espresso-brown) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--espresso-brown);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5C3D2E 0%, #3D2314 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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='%23D4A853' fill-opacity='0.05'%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");
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(61, 35, 20, 0.3) 0%, rgba(61, 35, 20, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-title {
  font-size: 4rem;
  color: var(--milk-white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--latte-foam);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Menu Section
   =================================== */
.menu-section {
  background-color: var(--warm-cream);
  padding: 100px 0;
}

.menu-section .container {
  text-align: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.menu-card {
  background-color: var(--milk-white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.menu-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--espresso-brown);
}

.menu-tag {
  font-family: var(--font-subheading);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.tag-hot {
  background-color: #FFE8D6;
  color: #B35C2E;
}

.tag-iced {
  background-color: #E0F2F1;
  color: #00796B;
}

.tag-seasonal {
  background-color: #FFF3E0;
  color: #E65100;
}

.tag-pastry {
  background-color: #F3E5F5;
  color: #7B1FA2;
}

.menu-item-desc {
  font-size: 15px;
  color: var(--roasted-coffee);
  margin-bottom: 16px;
  line-height: 1.6;
}

.menu-price {
  font-family: var(--font-subheading);
  font-size: 18px;
  font-weight: 600;
  color: var(--golden-steam);
}

/* ===================================
   Location Section
   =================================== */
.location-section {
  background-color: var(--latte-foam);
  padding: 100px 0;
}

.location-section .container {
  text-align: center;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: left;
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-block h3 {
  font-family: var(--font-subheading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--golden-steam);
  margin-bottom: 12px;
}

.info-block p, .info-block a {
  font-size: 18px;
  color: var(--espresso-brown);
  line-height: 1.8;
}

.info-block a:hover {
  color: var(--golden-steam);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: var(--espresso-brown);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(61, 35, 20, 0.1);
}

.hours-list li:last-child {
  border-bottom: none;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--latte-foam) 0%, var(--warm-cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
}

/* ===================================
   Loyalty Section
   =================================== */
.loyalty-section {
  background-color: var(--espresso-brown);
  padding: 100px 0;
}

.loyalty-section .container {
  text-align: center;
  max-width: 600px;
}

.loyalty-desc {
  font-size: 18px;
  color: var(--latte-foam);
  margin-bottom: 40px;
  line-height: 1.8;
}

.loyalty-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 12px;
}

.form-group input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-input);
  background-color: var(--milk-white);
  color: var(--espresso-brown);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--golden-steam);
}

.form-group input::placeholder {
  color: var(--roasted-coffee);
  opacity: 0.6;
}

.form-message {
  margin-top: 16px;
  font-family: var(--font-subheading);
  font-size: 14px;
  min-height: 20px;
}

.form-message.success {
  color: #A8D5BA;
}

.form-message.error {
  color: #F8B4B4;
}

/* ===================================
   Gift Cards Section
   =================================== */
.gift-section {
  background-color: var(--warm-cream);
  padding: 100px 0;
}

.gift-section .container {
  text-align: center;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.gift-card {
  position: relative;
  background: linear-gradient(135deg, var(--espresso-brown) 0%, var(--roasted-coffee) 100%);
  border-radius: var(--radius-card);
  padding: 40px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
}

.gift-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.gift-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D4A853' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.gift-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gift-card-popular {
  border: 2px solid var(--golden-steam);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--golden-steam);
  color: var(--espresso-brown);
  font-family: var(--font-subheading);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 1px;
  z-index: 2;
}

.gift-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--golden-steam);
}

.gift-name {
  font-family: var(--font-subheading);
  font-size: 16px;
  font-weight: 600;
  color: var(--milk-white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gift-cta {
  font-family: var(--font-subheading);
  font-size: 13px;
  color: var(--latte-foam);
  opacity: 0.8;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.gift-card:hover .gift-cta {
  color: var(--golden-steam);
  opacity: 1;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: var(--charcoal);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo .logo-text {
  color: var(--milk-white);
}

.footer-tagline {
  color: var(--latte-foam);
  opacity: 0.8;
  font-size: 15px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-subheading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--golden-steam);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--latte-foam);
  font-size: 15px;
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--golden-steam);
  opacity: 1;
}

.footer-contact p {
  color: var(--latte-foam);
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-contact a:hover {
  color: var(--golden-steam);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--latte-foam);
  font-size: 14px;
  opacity: 0.6;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .map-container {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--warm-cream);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .gift-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group input,
  .form-group button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  .menu-section,
  .location-section,
  .loyalty-section,
  .gift-section {
    padding: 60px 0;
  }

  .menu-card {
    padding: 20px;
  }

  .gift-card {
    padding: 32px 20px;
  }

  .gift-amount {
    font-size: 2.5rem;
  }
}
