/*
 * Custom stylesheet for Tirbona Coffee website
 *
 * The design draws inspiration from the reference site with warm browns
 * and creams reminiscent of coffee. Responsive layouts ensure the
 * experience remains pleasant on mobile and desktop. Inline SVG icons
 * inherit the current color and scale naturally with text.
 */

/* Root variables for easy theming */
:root {
  --primary: #5c3d25; /* deep coffee brown */
  --secondary: #c9a17b; /* warm light brown */
  --accent: #d98c45; /* soft orange for CTA */
  --light-bg: #f7f4ee; /* very light beige */
  --dark-bg: #37261c; /* darker brown for contrast */
  --text-color: #342a21;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
  color: var(--primary);
  /* Revert default paragraph size to original (1rem) */
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/*
 * Emoji icons
 *
 * Replacing inline SVG icons with emojis helps reinforce the playful
 * personality of the brand. These classes provide consistent sizing and
 * spacing for the emojis used throughout the site. Adjust the font-size
 * here to scale all emoji icons globally.
 */
.emoji {
  /* Set emoji size back closer to original (2rem) */
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.emoji-step {
  /* Set emoji-step size back closer to original (3rem) */
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* Utility containers */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: var(--light-bg);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--accent);
}
.cta-btn {
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
}
.cta-btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: 0 2px 4px var(--shadow);
    transform: translateX(100%);
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .cta-btn {
    margin-top: 0.5rem;
  }
  .hamburger {
    display: flex;
  }
}

/* Hero section */
/*
 * Hero section
 *
 * Use the new high‑resolution coffee beans image for the background and
 * increase the overall scale of the headlines, taglines and buttons. This
 * ensures that the text and call–to–action elements occupy more of the
 * hero section and feel bolder on large screens while remaining
 * responsive on mobile devices.
 */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: var(--white);
  overflow: hidden;
  background-image: url('cached_assets_used/hero_coffee.webp');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  /* Widen the hero content area so the heading and subheading wrap into two lines */
  /* Further widen the hero content area so the title fits comfortably on two lines */
  /* Allow a slightly wider hero content area so the heading fits comfortably on two lines */
  max-width: 1150px;
  /* Center align hero content for a more balanced composition */
  text-align: center;
  margin: 0 auto;
  /* Add horizontal padding so the text has slightly wider margins on large screens */
  /* Slight horizontal padding; leave room on the sides but still allow wider text */
  padding: 0 1rem;
}
.hero h1 {
  /* Larger headline for the hero section */
  /* Increase hero heading size by roughly 50% */
  /* Increase hero heading size by another 50% for greater prominence */
  /* Scale hero heading to roughly 15% larger than the original 5rem */
  /* Reduce hero headline size by about 5% to fit comfortably without overpowering the background */
  /* Reduce hero headline size by roughly 8% from the previous version */
  font-size: 5rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero p {
  color: var(--secondary);
  /* Increase paragraph size for prominence */
  /* Increase hero paragraph size by roughly 50% */
  /* Increase hero paragraph size by another 50% */
  /* Scale hero paragraph text to roughly 15% larger than the original 2rem */
  /* Reduce hero paragraph size by about 5% */
  /* Reduce hero paragraph size by roughly 8% */
  font-size: 2rem;
}
.hero .tagline {
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
  /* Increase tagline size by roughly 50% */
  /* Increase tagline size by another 50% */
  /* Scale hero tagline text to roughly 15% larger than the original 2rem */
  /* Reduce hero tagline size by about 5% */
  /* Reduce hero tagline size by roughly 8% */
  font-size: 2rem;
}
.badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  /* Center badges horizontally within the hero */
  justify-content: center;
}
.badges span {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  /* Increase badge text size by roughly 50% */
  /* Make badge text 50% larger */
  /* Scale badge text to roughly 15% larger than the original 1.3rem */
  /* Reduce badge text size by about 5% */
  /* Reduce badge text size by roughly 8% */
  font-size: 1.3rem;
  text-transform: uppercase;
}
.hero-buttons .btn {
  margin-right: 0.8rem;
  margin-top: 0.5rem;
}

/* Center hero buttons horizontally and enlarge them */
.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero .btn {
  /* Increase button font size and padding in the hero by roughly 50% */
  /* Increase hero button font size and padding by another 50% */
  /* Scale hero button font size and padding to roughly 15% larger than the original values */
  /* Reduce hero button font size and padding by about 5% */
  /* Reduce hero button font size and padding by roughly 8% */
  font-size: 1.5rem;
  padding: 1rem 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  /* Larger padding and font size for hero and other call–to–action buttons */
  /* Restore base button padding to original size */
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  /* Restore base button font size to original */
  font-size: 1rem;
}
.btn.primary {
  background-color: var(--accent);
  color: var(--white);
}
.btn.primary:hover {
  background-color: var(--secondary);
  color: var(--primary);
}
.btn.outline {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn.outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  /* Restore section heading size to original */
  font-size: 2rem;
}
.subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-style: italic;
}

/* Story section */
.story-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.story-text {
  flex: 1 1 350px;
}
.story-image {
  flex: 1 1 350px;
  text-align: center;
}
.story-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
}
.pillars {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pillar {
  flex: 1 1 200px;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
  text-align: center;
}
.pillar h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  /* Restore pillar heading size to original */
  font-size: 1.2rem;
  color: var(--primary);
}
.pillar p {
  /* Restore pillar paragraph size to original */
  font-size: 0.9rem;
  color: var(--primary);
}
.pillar .icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

/* Mission & Vision cards */
.mission-vision {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.card {
  flex: 1 1 300px;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
}
.card.dark {
  background-color: var(--primary);
  color: var(--white);
}
.card.light {
  background-color: var(--secondary);
  color: var(--dark-bg);
}
.mission-vision h3 {
  margin-bottom: 0.8rem;
  color: inherit;
}
.mission-vision p {
  color: inherit;
}

/* Steps section */
.steps-wrapper {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.step {
  flex: 1 1 250px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow);
  position: relative;
}
.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: var(--white);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  /* Restore step number size to original */
  font-size: 0.8rem;
}
.step-icon {
  margin-top: 1rem;
}
.step-icon .icon {
  width: 50px;
  height: 50px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.step h3 {
  margin-top: 1rem;
  /* Restore step heading size to original */
  font-size: 1.2rem;
  color: var(--primary);
}
.step p {
  /* Restore step paragraph size to original */
  font-size: 0.9rem;
  color: var(--primary);
}
blockquote {
  margin-top: 2rem;
  font-style: italic;
  color: var(--primary);
  text-align: center;
}

/* Heritage section */
.heritage-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.heritage-text {
  flex: 2 1 350px;
}
.heritage-highlights {
  flex: 1 1 300px;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
}
.heritage-highlights h3 {
  margin-bottom: 1rem;
  color: inherit;
}
.heritage-highlights ul {
  list-style: disc inside;
  color: inherit;
}
.heritage-highlights li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Artisanal process section */
.process-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.process-card {
  flex: 1 1 250px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow);
}
.process-card .icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.process-card h3 {
  margin-bottom: 0.5rem;
  /* Restore process card heading size to original */
  font-size: 1.2rem;
  color: var(--primary);
}
.process-card p {
  /* Restore process card paragraph size to original */
  font-size: 0.9rem;
  color: var(--primary);
}
.process-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Services section */
.services-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.service-card {
  flex: 1 1 300px;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
}
.service-card.dark {
  background-color: var(--primary);
  color: var(--white);
}
.service-card.light {
  background-color: var(--secondary);
  color: var(--dark-bg);
}
.service-card h3 {
  margin-bottom: 0.8rem;
  color: inherit;
  /* Restore service card heading size to original */
  font-size: 1.2rem;
}
.service-card p {
  margin-bottom: 1rem;
  color: inherit;
}
.service-card ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.service-card ul li {
  margin-bottom: 0.4rem;
}

/* Shop section */
.shop-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.shop-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow);
}
.shop-card .icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.shop-card h3 {
  margin-bottom: 0.3rem;
  /* Restore shop card heading size to original */
  font-size: 1.2rem;
  color: var(--primary);
}
.shop-card p {
  /* Restore shop card paragraph size to original */
  font-size: 0.9rem;
  color: var(--primary);
}
.special-offer {
  background-color: var(--secondary);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px var(--shadow);
}
.special-offer p {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--dark-bg);
  /* Restore special offer text size to original */
  font-size: 1rem;
}

/* Contact section */
.contact-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-info,
.contact-form {
  flex: 1 1 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
  padding: 2rem;
}
.contact-info h3 {
  margin-bottom: 0.5rem;
  color: inherit;
}
.contact-info .info-list {
  margin-bottom: 1rem;
}
.contact-info .info-list li {
  margin-bottom: 0.5rem;
}
.heritage-quotes p {
  font-style: italic;
  margin-bottom: 0.3rem;
  color: inherit;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}
.contact-form button {
  align-self: flex-start;
}
.quote-banner {
  background-color: var(--secondary);
  color: var(--dark-bg);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px var(--shadow);
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 1.5rem 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-nav a {
  margin-right: 1rem;
  /* Restore footer navigation font size to original */
  font-size: 0.9rem;
  color: var(--secondary);
  transition: var(--transition);
}
.footer-nav a:hover {
  color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .story-wrapper,
  .heritage-wrapper,
  .mission-vision,
  .services-wrapper,
  .contact-wrapper {
    flex-direction: column;
  }
  .pillar,
  .step,
  .process-card,
  .service-card {
    flex: 1 1 100%;
  }
  .pillars,
  .steps-wrapper,
  .process-cards,
  .services-wrapper {
    gap: 1rem;
  }
}