:root {
    --coffee-dark: #3E2723;
    --coffee-medium: #6F4E37;
    --coffee-light: #C4A484;
    --coffee-accent: #D2B48C;
    --coffee-cream: #F5F5DC;
    --coffee-gold: #D4AF37;
    --text-dark: #2C2416;
    --text-light: #F3F3F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--coffee-cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & navigation */
header {
    background: #161515;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    color: var(--coffee-gold);
    font-size: 28px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--coffee-medium);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--coffee-gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;

}

nav a {
    text-decoration: none;
    color: var(--coffee-medium);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav a.active {
    color: var(--coffee-gold);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0px;
    height: 2px;
    background: var(--coffee-gold);
    transition: width 0.3s ease;

}

nav a:hover:after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--coffee-medium);
    color: white;
}

.btn-primary:hover {
    background: var(--coffee-dark);
    transform: translateX(10px);
}

.btn-secondary {
    background: transparent;
    color: var(--coffee-medium);
    border: 2px solid var(--coffee-medium);
}

.btn-secondary:hover {
    background: var(--coffee-gold);
    color: white;
    transform: translateX(5px);
}

/* hero section   */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero:before {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #0b0705 0%, #010000 50%);
    z-index: -1;
}

.hero-content{
    width: 750px;
    color: var(--text-light);
    animation: fadeinup 1s ease-out;
}

.hero .container{
    display: flex;
}
.hero-subtitle{
    font-size: 20px;
    color: var(--coffee-accent);
    margin-top: 20px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-subtitle::before{
    content: "";
    width: 50px;
    height: 2px;
    background: var(--coffee-gold);
}
.hero-title{
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.hero-title span{
    color: var(--coffee-gold);
    position: relative;
}

.hero-text{
    font-size: 16px;
    margin-bottom: 12px;
    max-width: 700px;
}

.hero-buttons{
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Products section */

.products{
    padding: 120px 0;
    position: relative; 
    background-color: #161515;
    border-top: 4px solid var(--coffee-gold);
}

.section-header{
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-subtitle{
    font-size: 20px;
    color: var(--coffee-gold);
    margin-bottom: 15px;
}

.section-title{
    font-size: 42px;
    color: var(--coffee-gold);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after{ 
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--coffee-gold);
}

.section-desc{
    font-size: 18px;
    color: var(--text-light);
}

.product-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card{
    background: var(--coffee-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    top: 0;
}

.product-card:hover{
    transform: translateY(-15px);
    border: 2px solid var(--coffee-gold);
}

.product-img{
    height: 280px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img{
    transform: scale(1.05);
}

.product-info{
    padding: 25px;
    position: relative;
}

.product-tag{
    position: absolute;
    top: 20px;
    right: 25px;
    background: var(--coffee-gold);
    color: white;
    padding: 8px 18px;
    border-radius: 15px;
    font-weight: 600px;
    font-size: 14px;
}

.product-title{
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-desc{
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.product-footer{
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-price{
    font-size: 24px;
    font-weight: 700;
    color: var(--coffee-gold);
}
.rating{
    color: var(--coffee-gold);
    font-size: 16px;
}
h1, h2, h3, h4{
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* footer */

footer{
    background: var(--coffee-dark);
    color: var(--text-light);
    padding: 70px 0 30px;
    position: relative;
    border-top: 4px solid var(--coffee-gold);
}

.footer-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3{
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--coffee-gold);
}

.footer-links{
    list-style: none;
}

.footer-links li{
    margin-bottom: 15px;
}

.footer-links a{
    color: var(--coffee-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover{
    color: var(--coffee-gold);
    padding-left: 5px;
}

.social-links{
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--coffee-cream);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover{
    background: var(--coffee-gold);
    transform: translateY(-3px);
}

.copyright{
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--coffee-accent);
    font-size: 15px;
}

.menu-toggle {
  display: none;
  font-size: 22px;
  color: var(--coffee-gold);
}

/* Animation */

@keyframes  fadeinup {
 from {
    opacity: 0;
    transform: translateY(80px);
 }
 to {
    opacity: 1;
    transform: translateY(0);
 }
}

/* -------- MOBILE -------- */
@media (max-width: 768px) {

  /* Header layout */
  .header-container {
    justify-content: space-between;
  }

   .hero-content {
    width: 100%;
    padding: 0 10px;
  }

  .hero-title {
    font-size: 32px;      /* was too large */
    line-height: 1.2;
    word-wrap: break-word;
  }

  .hero-title span {
    font-size: 30px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
    word-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }


  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    display: none;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
  }

  nav.active {
    display: block;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .nav-buttons {
    display: none;
  }

  /* Hero section */
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero img {
    width: 100%;
    max-width: 320px;
  }

  /* Products */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

}
