/* ========================================================
   Wild Flour Grain & Bakery — Custom Styles
   Colors:
     --terracotta: #E07A5F
     --cream: #F4F1DE
     --navy: #3D405B
     --sage: #81B29A
   ======================================================== */

:root {
  --custom-terracotta: #E07A5F;
  --custom-terracotta-dark: #C4603F;
  --custom-cream: #F4F1DE;
  --custom-cream-dark: #E8E3C8;
  --custom-navy: #3D405B;
  --custom-navy-light: #575A78;
  --custom-sage: #81B29A;
  --custom-sage-dark: #5F8E73;
  --border-light: rgba(61, 64, 91, 0.12);
}

/* Base resets & typography */
body {
  font-family: var(--font-body);
  color: var(--custom-navy);
  background-color: #FAF8F2;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--custom-navy);
}

/* Sidebar Custom Brand & Links */
.sidebar {
  background: #2B2D42;
  box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}

.sidebar__brand {
  padding: 1.8rem 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(244, 241, 222, 0.12);
}

.sidebar__logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar__logo-icon {
  width: 44px;
  height: 44px;
  background: var(--custom-terracotta);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #FFF;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.35);
}

.sidebar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.15;
}

.sidebar__logo-text span {
  color: var(--custom-terracotta);
}

.sidebar__tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #A8CFBA;
  margin-top: 6px;
}

.sidebar__nav {
  padding: 1.2rem 0;
}

.sidebar__nav-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 241, 222, 0.4);
  padding: 0.6rem 1.5rem 0.3rem;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  color: rgba(244, 241, 222, 0.75);
  transition: all 0.25s ease;
  position: relative;
}

.sidebar__nav a:hover,
.sidebar__nav a.active {
  color: #FFF;
  background: rgba(224, 122, 95, 0.15);
}

.sidebar__nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 65%;
  background: var(--custom-terracotta);
  border-radius: 0 4px 4px 0;
  transition: transform 0.25s ease;
}

.sidebar__nav a:hover::before,
.sidebar__nav a.active::before {
  transform: translateY(-50%) scaleY(1);
}

/* Inner Page Hero Banner */
.page-hero {
  background: linear-gradient(135deg, #2B2D42 0%, #3D405B 60%, #4A4E69 100%);
  color: #FFF;
  padding: 4.5rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 122, 95, 0.25);
  color: #F4F1DE;
  border: 1px solid rgba(224, 122, 95, 0.45);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-hero-title em {
  font-style: italic;
  color: var(--custom-terracotta);
}

.page-hero-lead {
  font-size: 1.1rem;
  color: rgba(244, 241, 222, 0.85);
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(244, 241, 222, 0.6);
}

.breadcrumb-trail a {
  color: var(--custom-terracotta-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-trail a:hover {
  color: #FFF;
}

.breadcrumb-separator {
  color: rgba(244, 241, 222, 0.4);
}

/* Main Content Container */
.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

/* Editorial Block & Typography */
.content-block {
  background: #FFF;
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(61, 64, 91, 0.05);
  border: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.content-block h2 {
  font-size: 1.8rem;
  color: var(--custom-navy);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.content-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--custom-terracotta);
  border-radius: 2px;
}

.content-block h3 {
  font-size: 1.35rem;
  color: var(--custom-navy);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.content-block p {
  margin-bottom: 1.2rem;
  color: #4A4E69;
}

.content-block ul,
.content-block ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #4A4E69;
}

.content-block li {
  margin-bottom: 0.6rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.feature-card {
  background: #FFF;
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(61, 64, 91, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 64, 91, 0.09);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(224, 122, 95, 0.12);
  color: var(--custom-terracotta);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--custom-navy);
}

.feature-card p {
  font-size: 0.92rem;
  color: #575A78;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Custom Interactive Calculator */
.calc-container {
  background: #FFF;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 28px rgba(61, 64, 91, 0.07);
  margin-bottom: 3rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-field-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--custom-navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-select,
.calc-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  background-color: #FAFAFA;
  color: var(--custom-navy);
  transition: border-color 0.2s, background-color 0.2s;
}

.calc-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233D405B' d='M1.41 0L6 4.58L10.59 0L12 1.41L6 7.41L0 1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

.calc-select:focus,
.calc-input:focus {
  outline: none;
  border-color: var(--custom-terracotta);
  background-color: #FFF;
}

.calc-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #4A4E69;
  cursor: pointer;
}

.calc-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--custom-terracotta);
}

.calc-result-box {
  background: linear-gradient(145deg, #2B2D42, #3D405B);
  color: #FFF;
  border-radius: 18px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(43, 45, 66, 0.2);
}

.calc-result-header {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--custom-sage-light);
  margin-bottom: 0.5rem;
}

.calc-result-price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.calc-result-currency {
  font-size: 0.85rem;
  color: rgba(244, 241, 222, 0.7);
  margin-bottom: 1.5rem;
}

.calc-result-summary {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #E8E3C8;
  margin-bottom: 1.8rem;
}

/* Team Card */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-card {
  background: #FFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(61, 64, 91, 0.05);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-card-body {
  padding: 1.5rem;
}

.team-card h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--custom-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.team-desc {
  font-size: 0.88rem;
  color: #575A78;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-item {
  background: #FFF;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--custom-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #FAF8F2;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--custom-terracotta);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.4rem;
  font-size: 0.95rem;
  color: #4A4E69;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Site Footer */
.site-footer {
  background: #232536;
  color: #F4F1DE;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--custom-terracotta);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  color: #FFF;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--custom-terracotta);
}

.footer-col p {
  font-size: 0.88rem;
  color: rgba(244, 241, 222, 0.75);
  line-height: 1.7;
}

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

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(244, 241, 222, 0.75);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--custom-terracotta-light);
  padding-left: 4px;
}

.afip-badge-wrap {
  margin-top: 1rem;
}

.afip-badge-img {
  width: 65px;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s;
}

.afip-badge-img:hover {
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 222, 0.1);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(244, 241, 222, 0.6);
}

.footer-legal-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(244, 241, 222, 0.75);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--custom-terracotta-light);
}

/* Responsive Main margin */
@media (max-width: 1024px) {
  .main {
    margin-left: 0 !important;
  }
}
