/* ---------------------------
   GLOBAL STYLES & TYPOGRAPHY
   Casa Lind: Montserrat + Source Serif 4
--------------------------- */

/* Typography Variables */
:root {
  --font-heading: 'Cormorant', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Remove universal font override */
* {
  /* Fonts now set per element type */
}

/* Body Text - Source Serif 4 (elegant serif) */
body {
  font-family: var(--font-body) !important;
  font-weight: 400;
  color: #f0ebe1;
  line-height: 1.7;
  background-color: #fff;
}

/* Paragraphs - Source Serif 4 */
p {
  font-family: var(--font-body) !important;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #444;
}

/* All Headings - Montserrat Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Lists, tables - Source Serif 4 */
li, td, dd, dt {
  font-family: var(--font-body) !important;
}

/* Navigation - Inter */
.navbar a,
.navbar-brand,
.nav-link,
.navbar-nav,
.navbar-nav > li > a,
.dropdown-menu .dropdown-item {
  font-family: var(--font-ui) !important;
  font-weight: 500;
}

/* Buttons - Inter */
.btn,
button,
.button,
a.button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-ui) !important;
  font-weight: 500;
}

/* Order form headings & inputs - Inter */
#order-coffee h2,
#order-coffee label,
input,
textarea,
select {
  font-family: var(--font-ui) !important;
}

/* ---------------------------
   CASA LIND LOGO AREA
--------------------------- */
/* ---------------------------
   CASA LIND LOGO AREA
--------------------------- */
.logo-container {
  display: flex;
  align-items: center; /* Vertically center logo and text */
  gap: 0px; /* Reduced from 12px - brings text closer to logo */
  text-decoration: none;
  margin-left: -20px; /* Move entire logo area to the left */
}

.logo-img {
  height: 170px;
  width: auto;
  display: block;
  position: relative;
  top: 20px;/* No filter needed - using color logo as-is */
} 

/* Scrolled header adjustments */
.scrolled-header .logo-img {
  height: 140px;
  position: relative;
  top: 10px; /* Pull logo up by 8px - adjust as needed */
}

.scrolled-header .logo-text {
  font-size: 4rem;
  position: relative;
  top: -1px; /* Pull text up too to match logo */
}

.scrolled-header .logo-container {
  align-items: center;
  margin-left: -20px;
}

.logo-text {
  position: relative;
  top: 7px; /* Move down just a touch */
  font-family: var(--font-heading) !important;
  font-size: 4.3rem;
  font-weight: 700;
  color: #ffffff !important;
  white-space: nowrap;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  text-transform: uppercase;
  line-height: 1; /* Tighter line height for better vertical centering */
  padding-top: 0; /* Remove any extra padding */
  margin: 0; /* Remove any margin */
}

/* Text turns yellow on hover */
.logo-container:hover .logo-text {
  color: #F5B83C !important;
}

/* ---------------------------
   BUTTONS
--------------------------- */
.btn {
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  background-color: #A66E4A;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background-color: #F5B83C;
  color: #fff;
}

.btn-main {
  background-color: #a1643c;
  color: white;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-main:hover {
  background-color: #814f2e;
  color: #fff !important;
}

.btn-solid-border {
  border: 2px solid #A66E4A;
  color: #A66E4A;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-solid-border:hover {
  background-color: #A66E4A;
  color: #fff;
}

/* ---------------------------
   HEADER & NAVIGATION
--------------------------- */
header,
.site-header,
.navbar {
  background-color: transparent !important;
  padding: 0.4rem 3rem !important;
  margin: 0 !important;
  border: none !important;
  min-height: 65px !important;
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.navigation {
  background-color: transparent;
}

.scrolled-header {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FONT COLORS - HEADER */
.site-header .logo-text,
.site-header .navbar a,
.dropdown-menu .nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

.scrolled-header .logo-text,
.scrolled-header .navbar a,
.scrolled-header .dropdown-menu .nav-link {
  color: #ffffff !important;
}

/* Navigation layout */
.navbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.navbar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.navbar-collapse {
  display: flex !important;
  justify-content: flex-end !important;
  flex-grow: 1 !important;
}

.navbar-nav {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-left: auto !important;
  gap: 1.5rem;
}

.navbar-nav > li {
  margin-left: 16px;
}

.navbar a,
.navbar-brand {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.navbar .nav-item a.nav-link:hover,
.navbar .nav-item a.nav-link:focus,
.navbar .nav-item.dropdown:hover > .nav-link,
.navbar .nav-item.dropdown > .nav-link:hover,
.navbar .nav-item.dropdown > .nav-link:focus,
.navbar .nav-item.dropdown.show > .nav-link,
.navbar a.dropdown-toggle:hover,
.navbar a.dropdown-toggle.active,
.navbar .nav-item.active a.nav-link,
.navbar .nav-item a.nav-link.active {
  color: #F5B83C !important;
  font-weight: bold;
}

/* MENU ITEM SIZES */
.navbar-nav > li > a {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px;
  line-height: 1.4;
  padding: 0.6rem 1.2rem !important;
}

/* DROPDOWN MENU STYLES */
.dropdown-menu {
  background-color: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none;
}

.scrolled-header .dropdown-menu {
  background-color: #B98560 !important;
  backdrop-filter: blur(6px);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dropdown-menu .dropdown-item {
  color: #ffffff !important;
  background-color: transparent !important;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 220px;
  line-height: 1.4;
  padding: 0.8rem 1rem;
  text-align: left;
}

.dropdown-menu .dropdown-item:hover {
  color: #F5B83C !important;
}

@media (max-width: 576px) {
  .dropdown-menu .dropdown-item {
    max-width: 100%;
    text-align: center;
  }
}

/* ---------------------------
   BANNER & HERO SECTIONS
--------------------------- */
.bean-spectrum,
.roast-preview-section {
  background-color: #9BBBD4;
}

.banner::before {
  background-color: rgba(0, 0, 0, 0.15) !important;
}

.overly:before,
.page-title:before {
  background: #292732 !important;
  opacity: 0.4 !important;
}

.slider .block p {
  color: #b5b5b5 !important;
  font-size: 2.5rem !important;
  line-height: 1.9 !important;
  font-weight: 400 !important;
}

.slider .block {
  transform: translateY(40px);
}

.slider {
  position: relative;
}

.scroll-indicator-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* ---------------------------
   FOOTER
--------------------------- */
footer,
footer a {
  font-weight: 400;
  color: #333;
  text-decoration: none;
}

footer a:hover {
  color: #F5B83C;
}

/* ---------------------------
   MISC CLEANUP & STRUCTURE
--------------------------- */
.header .container,
.navbar .container,
.navbar-header {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.navigation .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
}

/* ---------------------------
   SCROLL INDICATOR
--------------------------- */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  animation: fadeInUp 1s ease forwards;
}

.scroll-indicator span {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.arrow-down {
  width: 20px;
  height: 20px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(224deg) !important;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(45deg) translateY(0) !important;
  }
  50% {
    transform: rotate(45deg) translateY(8px) !important;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------
   BEAN SECTION STYLES
--------------------------- */
.bean-spectrum p,
.bean-spectrum h5,
.bean-spectrum span,
.roast-preview-section p,
.roast-preview-section h5,
.roast-preview-section span {
  color: #A66E4A !important;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------------------------
   BUTTON OVERRIDES
--------------------------- */
a.btn,
a.btn-main,
a.btn.btn-main,
a.btn-solid-border,
button.btn,
button.btn-main,
button.btn-solid-border {
  background-color: #A66E4A !important;
  color: #fff !important;
  border-color: #A66E4A !important;
}

a.btn:hover,
a.btn-main:hover,
a.btn.btn-main:hover,
a.btn-solid-border:hover,
button.btn:hover,
button.btn-main:hover,
button.btn-solid-border:hover {
  background-color: #F5B83C !important;
  color: #fff !important;
  border-color: #F5B83C !important;
}

/* ---------------------------
   BEANS PAGE HERO
--------------------------- */
.beans-hero {
  position: relative;
  background-image: url('/images/beans-hero-banner.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  padding: 180px 0 100px 0;
  text-align: center;
  color: #fff;
}

.beans-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.beans-hero h1 {
  font-size: 4rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.beans-hero p {
  font-size: 1.8rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: #ddd;
}

/* ---------------------------
   COUNTERS / METRICS
--------------------------- */
.counters {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 30px;
}

.counters li {
  margin: 15px;
  text-align: center;
}

.counter {
  font-size: 3rem;
  color: #A66E4A;
  font-weight: 700;
  display: block;
}

/* ---------------------------
   ORDER FORM STYLES
--------------------------- */
.about-content {
  background: white;
  padding: 4rem 2rem;
  margin-bottom: 100px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

#order-coffee {
  color: white;
}

#order-coffee label,
#order-coffee h2,
#order-coffee p {
  color: white;
}

#order-coffee h2 {
  font-family: 'Gaegu', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
}

#order-coffee label {
  margin-top: 10px;
  font-weight: 500;
  font-size: 1.4rem;
}

#order-coffee .form-control,
#order-coffee .form-check-label,
#order-coffee option {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid #ddd;
  font-size: 1.4rem;
}

#order-coffee input[type="checkbox"] {
  accent-color: #F5B83C;
  transform: scale(1.4);
  margin-right: 10px;
  outline: none;
  border: none;
  box-shadow: none;
}

#order-coffee input,
#order-coffee textarea,
#order-coffee select {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
}

#order-coffee input::placeholder,
#order-coffee textarea::placeholder,
#order-coffee select::placeholder {
  color: #ddd;
  font-size: 1.4rem;
}

#order-coffee input[type="checkbox"] + label {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-left: 8px;
}

#order-coffee form > * {
  margin-bottom: 1.6rem;
}

#order-coffee #address1,
#order-coffee #address2,
#order-coffee #city,
#order-coffee #state,
#order-coffee #zip {
  margin-bottom: 0.8rem !important;
}

#order-coffee .row.mt-2 {
  margin-top: 0.5rem !important;
}

#quantity-buttons {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#quantity-buttons .btn {
  font-size: 1.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 2px solid #fff;
  color: #fff;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#quantity-buttons .btn:hover,
#quantity-buttons .btn-check:checked + .btn {
  background-color: #F5B83C;
  color: #292732;
  border-color: #F5B83C;
}

/* Homepage Banner Title */
.slider .block h1 {
  font-size: 3.5rem;  /* Reduced from 5rem */
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

/* Homepage Banner Description */
.slider .block p {
  font-size: 2rem;
  color: #FFFFFF  ;
  line-height: 1.6;
}

/* --- HOMEPAGE BANNER OVERRIDES --- */

/* Title */
.hero-fullscreen h1,
.display-4 {
  font-size: 3.8rem !important; /* Reduced for better balance */
  color: #ffffff !important;  /* White, not golden */
  text-align: center;
}

/* Description text */
.hero-fullscreen p {
  font-size: 2rem !important; /* adjust as needed */
  color: #ffffff !important;  /* white */
  line-height: 1.8 !important;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.beans-section-wrapper {
  background: transparent;
  padding: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.beans-container {
  background: rgba(255, 255, 255, 0.85); /* white glassy box */
  padding: 3rem;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* ---------------------------
   MOBILE RESPONSIVE STYLES
--------------------------- */

/* Hamburger button - hidden on desktop */
.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.navbar-toggler i {
  color: #fff;
  font-size: 1.8rem;
}

@media (max-width: 991px) {
  .navbar-toggler {
    margin-right: 10px;
  }
}

.navbar-toggler.active i::before {
  content: "\f00d"; /* Font Awesome X icon */
}

/* Mobile styles - tablets and phones */
@media (max-width: 991px) {
  /* Show hamburger button */
  .navbar-toggler {
    display: block;
  }

  /* Header adjustments */
  header,
  .site-header,
  .navbar {
    padding: 0.4rem 0 !important;
  }

  .navigation .container-fluid {
    padding: 0;
  }

  /* Logo scaling for mobile - DOUBLE SIZE, LEFT ALIGNED */
  .logo-container {
    margin-left: -25px;
    justify-content: flex-start;
    gap: 0;
  }

  .navbar-header {
    margin-left: 0;
    padding-left: 0;
  }

  .navbar {
    padding-left: 0 !important;
    margin-left: 0 !important;
    position: relative;
  }

  header.navigation,
  .site-header {
    overflow: visible !important;
  }

  .container-fluid {
    overflow: visible !important;
  }

  .logo-img {
    height: 170px;
    top: 12px;
    margin-right: -15px;
  }

  .logo-text {
    font-size: 3.7rem;
    top: 5px;
  }

  .scrolled-header .logo-img {
    height: 136px;
    top: 8px;
  }

  .scrolled-header .logo-text {
    font-size: 3.4rem;
    top: 0;
  }

  /* Navigation collapse */
  .navbar-collapse,
  .collapse.navbar-collapse,
  #navigation.navbar-collapse {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    flex-direction: column;
    z-index: 9999;
    width: 100%;
  }

  .navbar-collapse.show,
  .collapse.navbar-collapse.show,
  #navigation.navbar-collapse.show,
  #navigation.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem;
    width: 100%;
  }

  .navbar-nav > li {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .navbar-nav > li > a {
    font-size: 1.4rem !important;
    padding: 1rem !important;
    display: block;
    width: 100%;
  }

  /* Dropdown menus on mobile - always visible */
  .nav-item.dropdown .dropdown-menu {
    display: block !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .dropdown-menu .dropdown-item {
    text-align: center;
    max-width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1.2rem !important;
  }

  /* Hide dropdown toggle arrow on mobile since submenu is always visible */
  .nav-item.dropdown > .dropdown-toggle {
    pointer-events: none;
  }
}

/* Smaller phones */
@media (max-width: 576px) {
  .logo-img {
    height: 119px;
    top: 8px;
    margin-right: -10px;
  }

  .logo-text {
    font-size: 2.7rem;
  }

  .logo-container {
    margin-left: -15px;
  }

  .scrolled-header .logo-img {
    height: 94px;
  }

  .scrolled-header .logo-text {
    font-size: 2.4rem;
  }

  .navbar-nav > li > a {
    font-size: 1.2rem !important;
  }
}

/* Mobile hero section font sizes */
@media (max-width: 991px) {
  .hero-fullscreen h1.display-4,
  .hero-fullscreen h1 {
    font-size: 3.5rem !important;
  }

  .hero-fullscreen p {
    font-size: 1.6rem !important;
  }

  /* CTA section - From Guatemala, With Care */
  .call-to-action .block h2 {
    font-size: 2.8rem !important;
  }

  .call-to-action .block p {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 576px) {
  .hero-fullscreen h1.display-4,
  .hero-fullscreen h1 {
    font-size: 3rem !important;
  }

  .hero-fullscreen p {
    font-size: 1.4rem !important;
  }

  .hero-fullscreen .container {
    padding: 30px 20px !important;
  }

  /* CTA section - From Guatemala, With Care */
  .call-to-action .block h2 {
    font-size: 2.4rem !important;
  }

  .call-to-action .block p {
    font-size: 1.2rem !important;
  }
}
