/* Master Design System for Finca Bee Kind (beekindwinery.com) */
:root {
  --primary: #5c182d;
  --primary-dark: #431020;
  --accent: #c98a2c;
  --accent-hover: #b07421;
  --secondary: #8c4836;
  --dark: #1b211e;
  --text-muted: #59615b;
  --light: #fbf9f5;
  --white: #ffffff;
  --border: #e6dfd5;
  --shadow: 0 10px 30px rgba(92, 24, 45, 0.07);
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent);
}

/* Top utility bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #e5d7c9;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201, 138, 44, 0.25);
}
.top-bar a {
  color: #f7ede2;
  margin-left: 15px;
}
.top-bar a:hover {
  color: var(--accent);
}

/* Header & Navigation */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo img {
  height: 44px;
  width: auto;
}
.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 8px 0;
  display: block;
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--accent);
}

/* Sub-menus styling */
.dropdown-menu, .sub-menu {
  position: absolute !important;
  z-index: 10000 !important;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 270px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  padding: 8px 0;
  display: none;
  list-style: none;
  margin: 0;
}
.nav-item:hover .sub-menu, .nav-item:hover .dropdown-menu {
  display: block;
}
.sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 500;
  border-bottom: 1px solid #f6f3ee;
}
.sub-menu li:last-child a {
  border-bottom: none;
}
.sub-menu li a:hover {
  background-color: #fbf6ef;
  color: var(--primary);
  padding-left: 22px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
}

/* White Ticker */
.ticker-wrap {
  background: #fdfcf9;
  border-top: 1px solid #ece5dc;
  border-bottom: 1px solid #ece5dc;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 600;
}
.ticker-move {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: tickerScroll 48s linear infinite;
}
@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
.ticker-item {
  display: inline-block;
  padding: 0 25px;
}
.ticker-bullet {
  color: var(--accent);
  margin: 0 8px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 90px 0 100px;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(67, 16, 32, 0.88) 0%, rgba(27, 33, 30, 0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201, 138, 44, 0.22);
  border: 1px solid var(--accent);
  color: #f7ede2;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-lead {
  font-size: 1.18rem;
  color: #ede2d5;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: none;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}
.btn-outline-light {
  background-color: transparent;
  border: 1.5px solid #f7ede2;
  color: #f7ede2;
}
.btn-outline-light:hover {
  background-color: #f7ede2;
  color: var(--primary-dark);
}
.btn-outline-primary {
  background-color: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Sections */
.section {
  padding: 70px 0;
}
.section-light {
  background-color: var(--white);
}
.section-alt {
  background-color: #f6f2ec;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.section-badge {
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  margin-bottom: 8px;
  display: inline-block;
}
.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Elastic Cards */
.card-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(92, 24, 45, 0.12);
}
.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-grid:hover .card-img-wrap img {
  transform: scale(1.04);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.card-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-btn {
  margin-top: auto;
}

/* Archetype 3: Tasting & Pairing Sensory Configurator */
.calculator-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 35px;
  box-shadow: 0 14px 40px rgba(92, 24, 45, 0.08);
}
.calc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: block;
}
.calc-select, .calc-input, .calc-range {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background-color: #fdfbf7;
  font-size: 16px !important;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}
.calc-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235c182d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.calc-select:focus, .calc-input:focus {
  border-color: var(--accent);
}
.calc-checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbf9f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.calc-checkbox-item:hover {
  background-color: #f5eedf;
}
.calc-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.calc-summary-panel {
  background: linear-gradient(145deg, #431020, #5c182d);
  color: #ffffff;
  border-radius: 8px;
  padding: 28px;
}
.calc-summary-title {
  font-size: 1.35rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(201, 138, 44, 0.4);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.calc-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.94rem;
  margin-bottom: 10px;
  color: #ede2d5;
}
.calc-summary-total {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffde94;
  border-top: 1.5px dashed rgba(201, 138, 44, 0.5);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-badge-notes {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 14px;
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #fdfbf7;
}
.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 16px;
}

/* Forms general */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  display: block;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background-color: var(--white);
  font-size: 16px !important;
  color: var(--dark);
}
.form-control:focus {
  border-color: var(--accent);
  outline: none;
}

/* Footer */
.site-footer {
  background-color: #210710;
  color: #cbbbae;
  padding: 60px 0 25px;
  border-top: 3px solid var(--accent);
  font-size: 0.92rem;
}
.site-footer h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.site-footer a {
  color: #e5d7c9;
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-bottom {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.arrepentimiento-btn-footer {
  display: inline-block;
  background: #a83232;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.5px;
}
.arrepentimiento-btn-footer:hover {
  background: #882525;
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .mobile-nav-active .sub-menu {
    position: static !important;
    display: block !important;
    box-shadow: none;
    border: none;
    background: #fbf9f5;
    padding-left: 15px;
  }
  .hero-title { font-size: 2.1rem; }
}
