/*
Theme Name: Al Mahrousa Coffee
Theme URI: https://al.marousa.shop/
Author: Antigravity
Author URI: https://matjarakbuilders.com/
Description: Custom enterprise-grade theme for Al Mahrousa Coffee & Nuts.
Version: 1.0.0
Text Domain: almahrousa-coffee
*/

/* Reset & Variables */
:root {
  --primary-color: #3b2014; /* Deep Coffee Brown */
  --secondary-color: #d89f67; /* Gold / Tan */
  --background-dark: #1e130c;
  --background-light: #f5f0e9; /* Cream */
  --text-dark: #2c1e16;
  --text-light: #ffffff;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-top: 0;
}

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

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

/* Header */
.site-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-branding .site-title a {
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.main-navigation a:hover {
  color: var(--secondary-color);
}

.header-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-icons a {
  color: var(--text-light);
  font-size: 1.2rem;
}

.language-switcher {
  background: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
}

/* Hero Section */
.hero-section {
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 19, 12, 0.6);
}

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

.hero-content h1 {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 20px;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

/* Cards */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

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

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
}

.woocommerce ul.products li.product img {
  border-radius: 8px;
  margin-bottom: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 1.2rem;
}

.woocommerce ul.products li.product .price {
  color: var(--secondary-color);
  font-weight: bold;
}

.woocommerce ul.products li.product .button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 20px;
  padding: 10px 20px;
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
.site-footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 4rem 20px 2rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 0.8rem;
}

.footer-widget a {
  color: rgba(255,255,255,0.7);
}

.footer-widget a:hover {
  color: var(--secondary-color);
}

.site-info {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .main-navigation {
    display: none; /* Add mobile menu toggle logic in JS later */
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* --- ADVANCED UI UPGRADES --- */

/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding img.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Dropdown Menu */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-light);
    border: 1px solid var(--secondary-color);
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    margin: 0;
}

.nav-menu .sub-menu a {
    color: var(--primary-color);
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-menu .sub-menu a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Header Utilities */
.lang-switcher {
    margin-left: 10px;
    margin-right: 10px;
}
.order-online-btn {
    font-size: 0.8rem;
    padding: 8px 15px;
}

/* Video Hero Section */
.hero-video-wrap {
    position: relative;
    overflow: hidden;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-video-wrap .hero-overlay {
    background: rgba(30, 19, 12, 0.5);
    z-index: 1;
}

.hero-video-wrap .hero-content {
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    transform: translateY(-50px);
}

.hero-video-wrap .hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Floating Glass Cards Slider */
.floating-categories-slider {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.glass-card {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    border-color: var(--secondary-color);
}

.glass-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.glass-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem;
    background: rgba(30, 19, 12, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.glass-card-content h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.glass-card-content i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.glass-card-content p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.learn-more {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--secondary-color);
    border-bottom: 1px solid transparent;
}

.glass-card:hover .learn-more {
    border-bottom: 1px solid var(--secondary-color);
}

/* Specialties Grid Section */
.specialities-section {
    padding-top: 100px; /* Offset for floating cards */
}

.specialities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.specialty-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.specialty-item a {
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.specialty-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

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

.specialty-info {
    padding: 1rem;
}

.specialty-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.specialty-info p {
    font-size: 0.85rem;
    margin: 0;
}

.specialty-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.specialty-item:hover h4 {
    color: var(--secondary-color);
}

/* Social Proof & Insta */
.social-proof-section {
    padding-bottom: 6rem;
    text-align: center;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.insta-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}
