/* Teriyaki Boy BD - Custom Styles */

/* ============================================
   FONTS & TYPOGRAPHY
   ============================================ */

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

/* ============================================
   CSS VARIABLES - BRAND COLORS
   ============================================ */

:root {
  /* Primary Colors */
  --primary-red: #D71920;
  --dark-brown: #3B2415;
  --pure-white: #FFFFFF;
  --light-gray: #F5F5F5;
  --pure-black: #000000;

  /* Secondary Colors */
  --hover-red: #B51419;
  --border-gray: #E0E0E0;
  --text-gray: #666666;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-script: 'Dancing Script', cursive;
  --font-serif: 'Playfair Display', serif;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-brown);
  background-color: var(--pure-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-red);
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-family: var(--font-serif);
}

h2 {
  font-size: 2rem;
  font-family: var(--font-serif);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.script-text {
  font-family: var(--font-script);
  font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

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

.text-primary {
  color: var(--primary-red);
}

.bg-primary {
  background-color: var(--primary-red);
}

.bg-light {
  background-color: var(--light-gray);
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: var(--hover-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: var(--pure-white);
}

/* ============================================
   HEADER STYLES
   ============================================ */

.header {
  background-color: var(--pure-white);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-red);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: capitalize;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-menu li a.active {
  color: var(--primary-red);
}

/* Search Bar */
.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-gray);
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--light-gray);
}

.search-bar input {
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  width: 250px;
  background-color: transparent;
  font-family: inherit;
}

.search-bar button {
  background-color: var(--primary-red);
  color: var(--pure-white);
  padding: 0.6rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: var(--hover-red);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--pure-white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 0.5rem;
  display: none;
  z-index: 100;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-gray);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: var(--light-gray);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 0.25rem;
}

.search-result-category {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.search-no-results {
  padding: 2rem;
  text-align: center;
  color: var(--text-gray);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-brown);
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.service-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.service-btn {
  background-color: var(--primary-red);
  color: var(--pure-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-btn:hover {
  background-color: var(--hover-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PROMOTIONAL BANNERS
   ============================================ */

.promo-section {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.promo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.promo-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--pure-white);
}

.promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.promo-description {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.products-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.category-filter {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--border-gray);
  background-color: var(--pure-white);
  color: var(--dark-brown);
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  border-color: var(--primary-red);
  background-color: var(--primary-red);
  color: var(--pure-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--pure-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--light-gray);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-red);
}

/* ============================================
   OUTLETS PAGE
   ============================================ */

.outlets-section {
  padding: 4rem 0;
}

.outlets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.outlet-card {
  background-color: var(--pure-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s ease;
}

.outlet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.outlet-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--light-gray);
}

.outlet-info {
  padding: 1.5rem;
}

.outlet-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.outlet-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.outlet-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.outlet-detail i {
  color: var(--primary-red);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.outlet-detail span {
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blogs-section {
  padding: 4rem 0;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background-color: var(--pure-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: var(--light-gray);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-read-more {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-read-more:hover {
  gap: 0.75rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
  padding: 4rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-red);
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-brown);
}

.contact-details p {
  color: var(--text-gray);
  line-height: 1.6;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-brown);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--dark-brown);
  color: var(--pure-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--pure-white);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-red);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 640px - 1024px */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .contact-container {
    gap: 2rem;
  }
}

/* Mobile: < 640px */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .logo {
    order: 1;
    font-size: 1.5rem;
  }

  .search-container {
    order: 2;
    flex: 1;
    justify-content: flex-end;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    gap: 0;
    background-color: var(--pure-white);
    padding: 1rem 0;
    border-top: 1px solid var(--border-gray);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .search-bar input {
    width: 150px;
  }

  .search-results {
    width: 100%;
    right: auto;
    left: 0;
  }

  .hero-section {
    height: 400px;
  }

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

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

  .service-buttons {
    flex-direction: column;
    align-items: center;
  }

  .service-btn {
    width: 100%;
    max-width: 300px;
  }

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

  .products-grid,
  .promo-grid,
  .outlets-grid,
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-section {
    height: 350px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-bar input {
    width: 120px;
  }

  .logo {
    font-size: 1.3rem;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-gray);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .header,
  .footer,
  .search-container,
  .service-buttons,
  .menu-toggle {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
