/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

/*
Sebastian Meza-Torres
GIT 480
Little Embers Café Shop
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* color pairings from my moodboard */
:root {
  --espresso: #2c1a0e;
  --ceramic: #f5ede3;
  --latte: #b4863f;
  --dark-roast: #1a0f07;
  --warm-white: #fdf8f3;
}

/* GLOBAL STYLES (Mobile) */
/* ==============  Beginning of Home Page =============== */
body {
  font-family: "Lato", sans-serif;
  background-color: var(--warm-white);
  color: var(--espresso);
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 64px;
}

.logo {
  font-family: "Playfair Display", Serif;
  font-size: 1.1rem;
  color: var(--ceramic);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ceramic);
  transition: all 0.3s;
}

.nav-links {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--espresso);
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.25rem;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links.open {
  display: flex;
}
.nav-links a {
  color: #c9b49a;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ceramic);
}
.cart-icon {
  font-size: 1.1rem;
  cursor: pointer;
  color: #c9b49a;
}

/* Hero Section */

.hero {
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
}

.hero-text {
  padding: 2.5rem 1.25rem;
}

.hero-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--latte);
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.hero-title em {
  color: var(--latte);
  font-style: italic;
}
.hero-sub {
  font-size: 0.95rem;
  color: #6a5040;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn-primary,
.btn-secondary {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Lato", sans-serif;
}

.btn-primary {
  background: var(--espresso);
  color: var(--ceramic);
  border: none;
}
.btn-primary:hover {
  background: #1a0f07;
}
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--espresso);
}
.btn-secondary:hover {
  background: var(--espresso);
  color: var(--ceramic);
}

.img-placeholder {
  width: 100%;
  height: 240px;
  background: #c9a87a center/cover no-repeat;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.accent-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--latte), #d4964a, var(--latte));
}

/* Section Styles */

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--espresso);
}

.section,
.why-section,
.testimonials {
  padding: 2.5rem 1.25rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-label {
  display: block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--latte);
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
}

/* Drinks */

.drinks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.drink-card {
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  background: var(--ceramic);
}

.drink-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 26, 14, 0.12);
}

.drink-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.drink-info {
  padding: 1.25rem;
}

.drink-name {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--espresso);
  margin-bottom: 0.3rem;
}

.drink-desc {
  font-size: 0.84rem;
  color: #6a5040;
  font-weight: 300;
}
.drink-price {
  display: none;
}

/* Why Little Embers Section */
.why-section {
  background: var(--espresso);
  color: var(--ceramic);
}
.why-section .section-label {
  color: var(--latte);
}
.why-section .section-title {
  color: var(--ceramic);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.why-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(180, 134, 63, 0.2);
  transition: border-color 0.2s;
}

.why-item:hover {
  border-color: rgba(180, 134, 63, 0.6);
}
.why-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.why-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--ceramic);
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.84rem;
  color: #9a7a58;
  font-weight: 300;
  line-height: 1.7;
}

/*Testimonials */

.testimonials {
  background: var(--ceramic);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--warm-white);
  padding: 1.75rem;
}
.quote-mark {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--latte);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 0.88rem;
  color: #4a3020;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 300;
}
.testimonial-author {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--espresso);
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--latte);
  letter-spacing: 0.06em;
}

/* Footer */

footer {
  background: var(--dark-roast);
  color: var(--ceramic);
  padding: 2.5rem 1.25rem 1.5rem;
}

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

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--ceramic);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: #9a7a58;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--latte);
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.84rem;
  color: #9a7a58;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ceramic);
}

/* Newsletter Form */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(180, 134, 63, 0.3);
  color: var(--ceramic);
  font-size: 0.82rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: #6a5040;
}
.newsletter-btn {
  width: 100%;
  padding: 0.7rem;
  background: var(--latte);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter-btn:hover {
  background: #c9963f;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6a5040;
}

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

.footer-social-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(180, 134, 63, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--latte);
  cursor: pointer;
  transition: all 0.2s;
}

.footer-social-icon:hover {
  background: var(--latte);
  color: #fff;
}

.footer-contact-info {
  font-size: 0.84rem;
  color: #9a7a58;
  font-weight: 300;
  line-height: 1.9;
  font-style: normal;
}

.footer-newsletter-desc {
  font-size: 0.82rem;
  color: #9a7a58;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.footer-grid > div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid > div:first-child {
  border-top: none;
  padding-top: 0;
}

/* =========== END OF HOME PAGE ================ */

/* Tablet Media Query */

@media screen and (min-width: 601px) {
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 2rem;
    border-top: none;
    background: transparent;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

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

  .hero-btns {
    flex-direction: row;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
  }

  .img-placeholder {
    height: 300px;
  }

  .section,
  .why-section,
  .testimonials {
    padding: 3.5rem 2.5rem;
  }
  .section-title {
    font-size: 1.9rem;
  }

  .drinks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .why-grid .why-item:last-child {
    grid-column: 1 / -1;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
  }

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

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-input {
    flex: 1;
    min-width: 0;
  }

  .newsletter-btn {
    width: auto;
    white-space: nowrap;
  }

  /* =========== END OF HOME PAGE ========== */
}
/* Desktop Screen Size */
@media screen and (min-width: 901px) {
  nav {
    padding: 0 3rem;
  }
  .logo {
    font-size: 1.25rem;
  }
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
  }
  .hero-text {
    animation: fadeInLeft 0.8s ease-out;
    padding: 4rem 3rem 4rem 5rem;
  }

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

  .hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }
  .hero-sub {
    max-width: 400px;
  }
  .img-placeholder {
    height: 100%;
    min-height: 400px;
  }

  .section,
  .testimonials {
    padding: 5rem;
  }
  .why-section {
    padding: 5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }

  .drinks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .drink-img {
    height: 200px;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .why-grid .why-item:last-child {
    grid-column: auto;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: auto;
  }

  footer {
    padding: 4rem 5rem 2rem;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr 2fr;
    gap: 3rem;
  }

  /* ============= END OF HOMEPAGE ============= */
}
