@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
  background-color: #eaeaea;
  color: #222;
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Main container*/

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #F9F6EA;
}

/* Sub container*/

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header & Navegation*/

.site-header {
  background-color: #801700;
  padding: 35px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.logo img {
  height: auto;  
  width: auto;    
  display: block;
}


.main-nav ul {
  display: flex;
  gap: 45px;
}

.main-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #F0E7C8;
  transition: opacity 0.3s ease;
}

.main-nav a:hover {
  opacity: 0.75;
}

/* Hero  */

.hero {
  min-height: 520px;
  background-image: url('../images/header.jpg');
  background-size: cover;
  background-position: center;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  min-height: 520px;
  background: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0.1));
  display: flex;
  align-items: center;
  padding-left: 20%;
}

.hero-content {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  color: #F0E7C8;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 744px;
}

.hero p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Buttons and variations */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #801700;
  color: #F0E7C8;
  padding: 14px 34px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.btn-light {
  background-color: #F0E7C8;
  color: #801700;
  padding: 14px 34px;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.small-btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* Taste the coffee... Shop best sellers */

.best-sellers {
  background-color: #801700;
  padding: 50px 0;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.best-sellers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.best-sellers-image img {
  border-radius: 25px;
  width: 438px;
  height: 335px;
  object-fit: cover;
}

.best-sellers-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: #F0E7C8;
  margin-bottom: 20px;
}

.best-sellers-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: #F0E7C8;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Budles - combos */

.combos {
  padding: 80px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: #801700;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  text-align: center;
  color: #801700;
  margin-bottom: 50px;
}

.combo-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.combo-card {
  width: 205px;
  height: 380px;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.combo-card:hover {
  transform: translateY(-6px);
}

.combo-card img {
  height: 160px;
  object-fit: cover;
}

.combo-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  padding: 16px;
}

/* Brew Essentials */

.brew-essentials {
  background-color: white;
  padding: 80px 0;
  border-radius: 30px;
}

.product-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.product-card {
  width: 170px;
}

.product-card img {
  height: 362px;
  width: 183px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.product-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.heart {
  font-size: 20px;
  color: #801700;
  cursor: pointer;
  margin-top: 8px;
}

.heart:hover{
  font-size: 20px;
  color: #801700;
  cursor: pointer;
  margin-top: 8px;
}

/* Footer */

.site-footer {
  background-color: #801700;
  padding: 70px 0;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #F0E7C8;
}

.footer-logo img {
  height: 50px;
}

.footer-column h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  color: #F0E7C8;
  margin-bottom: 15px;
}

.footer-column a {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #F0E7C8;
  margin-bottom: 8px;
}

/* coffee beans page */
/* hero */

.coffee-hero {
  padding: 80px 0 60px;
  text-align: center;
  background-image: url('../images/coffee-beans.jpg');
  background-size: cover;
}

.coffee-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: #F0E7C8;
  margin-bottom: 18px;
}

.coffee-hero p {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  color: #F0E7C8;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}



.coffee-shop-section {
  background-color: #801700;
  padding: 70px 0;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.coffee-shop-section .section-title,
.coffee-shop-section .section-subtitle {
  color: #F0E7C8;
}

.coffee-filter {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.coffee-filter a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #801700;
  background-color: #F0E7C8;
  padding: 10px 22px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.coffee-filter a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.coffee-card {
  width: 205px;
  min-height: 520px;
  background-color: #F9F6EA;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
}

.coffee-card:hover {
  transform: translateY(-6px);
}

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

.coffee-card-content {
  padding: 28px 24px;
  text-align: center;

  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


.coffee-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #801700;
  margin-bottom: 10px;
  min-height: 70px;
}

.coffee-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #222;
  line-height: 1.4;
  margin-bottom: 18px;
  flex-grow: 1;
}

.coffee-card .btn {
  align-self: center;
  margin-top: 20px;
}



/* From Farm to cup section */

.farm-to-cup {
  padding: 80px 0;
}

.farm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.farm-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.farm-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: #801700;
  margin-bottom: 20px;
}

.farm-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: #801700;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Explore More Blends section */

.more-blends {
  background-color: white;
  padding: 80px 0;
  border-radius: 30px;
}

/* Subscribe Page */
/* hero */

.subscribe-hero {
  background-image: url('../images/subscribe.jpg');
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

.subscribe-overlay {
  min-height: 500px;
  background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  display: flex;
  align-items: center;
}

.subscribe-content {
  color: #F0E7C8;
}

.subscribe-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.subscribe-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  margin-bottom: 25px;
}

/* Plan section */

.subscribe-options {
  background-color: white;
  padding: 80px 0;
  border-radius: 30px;
}

/* Info section */

.subscribe-info {
  background-color: #801700;
  padding: 70px 0;
  margin-top: 60px;
  border-radius: 30px;
}


/* Learn Page */
/* hero */

.learn-hero {
  background-image: url('../images/learn.jpg');
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

.learn-overlay {
  min-height: 500px;
  background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  display: flex;
  align-items: center;

}

.learn-content {
  color: #F0E7C8;

}

.learn-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.learn-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  margin-bottom: 25px;
  max-width: 600px;
  line-height: 1.5;
}

.learn-info {
  background-color: #801700;
  padding: 70px 0;
  margin-top: 60px;
  border-radius: 30px;
}

.reverse-layout {
  grid-template-columns: 1fr 1fr;
}

/* Sign in Page */


.account-section {
  padding: 100px 0;
  background-color: #F9F6EA;
}

.account-container {
  max-width: 560px;
  text-align: center;
}

.account-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: #801700;
  margin-bottom: 18px;
}

.account-container p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: #801700;
  line-height: 1.5;
  margin-bottom: 45px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.login-form input {
  width: 100%;
  padding: 18px 28px;
  border-radius: 999px;
  border: 1px solid #d6c9a9;
  background-color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #222;
}

.login-form input::placeholder {
  color: #801700;
}

.login-form input:focus {
  outline: none;
  border-color: #801700;
  box-shadow: 0 6px 15px rgba(128, 23, 0, 0.15);
}

.account-btn {
  border: none;
  cursor: pointer;
  width: 100%;
}

.create-account-btn {
  display: inline-block;
  width: 100%;
  border: 1px solid #801700;
  color: #801700;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.create-account-btn:hover {
  background-color: #b23b20;
  color: #F0E7C8;
  transform: translateY(-2px);
}

.logo {
  width: 140px;
  display: flex;
  align-items: center;
}

.logo img {
  width: 140px !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}

.footer-logo img {
  width: 160px !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}


@media (max-width: 900px) {

  .page-wrapper {
    width: 100%;
  }

  .container {
    width: 90%;
  }

  .nav-container {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .logo img {
    width: 120px !important;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 18px;
  }

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

  .hero,
  .hero-overlay,
  .subscribe-hero,
  .subscribe-overlay,
  .learn-hero,
  .learn-overlay {
    min-height: 480px;
  }

  .hero-overlay {
    padding-left: 0;
    text-align: center;
  }

  .hero-content,
  .subscribe-content,
  .learn-content {
    text-align: center;
  }

  .hero h1,
  .coffee-hero h1,
  .subscribe-content h1,
  .learn-content h1,
  .account-container h1 {
    font-size: 34px;
  }

  .hero p,
  .coffee-hero p,
  .subscribe-content p,
  .learn-content p,
  .account-container p {
    font-size: 18px;
  }

  .best-sellers-grid,
  .farm-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .best-sellers-image img,
  .farm-image img {
    width: 100%;
    height: 300px;
    margin: 0 auto;
  }

  .best-sellers-text h2,
  .farm-text h2,
  .section-title {
    font-size: 32px;
  }

  .best-sellers-text p,
  .farm-text p,
  .section-subtitle {
    font-size: 18px;
  }

  .combo-grid,
  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .combo-card,
  .coffee-card,
  .product-card {
    width: 85%;
    max-width: 320px;
  }

  .product-card img {
    width: 100%;
    height: 320px;
  }

  .coffee-card {
    min-height: auto;
  }

  .coffee-filter {
    flex-direction: column;
    align-items: center;
  }

  .coffee-filter a {
    width: 80%;
    text-align: center;
  }

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

  .footer-logo img {
    width: 140px !important;
    margin: 0 auto;
  }

  .account-section {
    padding: 70px 0;
  }
}

@media (max-width: 500px) {

  .site-header {
    padding: 25px 0;
  }

  .logo img {
    width: 100px !important;
  }

  .main-nav a {
    font-size: 16px;
  }

  .hero,
  .hero-overlay,
  .subscribe-hero,
  .subscribe-overlay,
  .learn-hero,
  .learn-overlay {
    min-height: 420px;
  }

  .hero h1,
  .coffee-hero h1,
  .subscribe-content h1,
  .learn-content h1,
  .account-container h1 {
    font-size: 30px;
  }

  .section-title,
  .best-sellers-text h2,
  .farm-text h2 {
    font-size: 28px;
  }

  .best-sellers,
  .coffee-shop-section,
  .farm-to-cup,
  .more-blends,
  .subscribe-options,
  .subscribe-info,
  .learn-info {
    padding: 55px 0;
  }

  .combo-card,
  .coffee-card,
  .product-card {
    width: 100%;
  }

  .login-form input,
  .account-btn,
  .create-account-btn {
    font-size: 15px;
  }
}