@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_slnt,wght.woff2') format('woff2-variations'),
       url('../fonts/Inter-VariableFont_slnt,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-VariableFont_wght.woff2') format('woff2-variations'),
       url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --primary: #3d2b1f; /* Coffee Brown */
  --secondary: #4b6f44; /* Forest Green */
  --accent: #a67b5b; /* Light Roast */
  --bg-cream: #fdfbf7; /* Creamy Background */
  --text-dark: #2c241e;
  --text-light: #f5f5dc;
  --glass: rgba(255, 255, 255, 0.85);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
}

/* --- Sections Shared --- */
section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

nav.scrolled .logo,
nav.scrolled .nav-links a,
nav.scrolled .mobile-menu-btn {
  color: var(--primary);
}

nav.scrolled .logo-img {
  filter: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 45px;
  height: 45px;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.2);
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Hero Section --- */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-content h1 {
  color: white;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: #f0f0f0;
  margin-bottom: 25px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #3a5834;
  transform: scale(1.05);
}

/* --- Comparison Table Premium Redesign --- */
.comparison-container {
  margin: 60px auto 50px;
  max-width: 1100px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  color: var(--text-dark);
}

.comparison-table th {
  background: linear-gradient(135deg, var(--primary), #5d4037);
  color: white;
  padding: 30px 20px;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  text-align: left;
  border: none;
}

.comparison-table td {
  padding: 22px 20px;
  border-bottom: 1px solid #f1f1f1;
  transition: var(--transition);
}

/* Zebra Striping & Hover */
.comparison-table tr:nth-child(even) td:not(.liberika-col) {
  background-color: #fafafa;
}

.comparison-table tr:hover td {
  background-color: #fff9f0;
}

/* Liberika Column Highlighting */
.liberika-col {
  background-color: #fffaf0 !important;
  border-left: 2px solid rgba(166, 123, 91, 0.2);
  border-right: 2px solid rgba(166, 123, 91, 0.2);
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

.liberika-col.header-highlight {
  background: linear-gradient(135deg, var(--accent), #8b5e3c) !important;
  color: white;
  text-align: center;
  border: none;
}

.badge-fokus {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4af37;
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  white-space: nowrap;
}

/* Row Headers with Icons */
.row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary);
}

.row-header i {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: var(--secondary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 20px 60px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -12px;
  background-color: var(--bg-cream);
  border: 4px solid var(--secondary);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover::after {
  background-color: var(--secondary);
  transform: scale(1.2);
}

.left {
  left: 0;
}
.right {
  left: 50%;
}
.right::after {
  left: -12px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Cards --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.beginner-tip {
  background: linear-gradient(135deg, var(--primary), #5d4037);
  color: white;
  padding: 25px 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.beginner-tip-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beginner-tip h4 {
  color: #d4af37;
  margin-bottom: 5px;
}

.beginner-tip p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card-icon {
  color: var(--secondary);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.9;
  line-height: 1.6;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* --- Footer --- */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 80px 20px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.footer-info h3,
.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

.footer-links li {
  list-style: none;
  margin-bottom: 12px;
}

.footer-links a {
  color: #f0f0f0;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
  padding-left: 8px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* --- Contact Form --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--secondary);
  color: white;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 20px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  /* Mobile Table Layout */
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table th,
  .comparison-table td,
  .comparison-table tr {
    display: block;
  }

  .comparison-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .comparison-table tr {
    border: 1px solid #eee;
    margin-bottom: 30px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
  }

  .comparison-table td {
    border: none;
    border-bottom: 1px solid #f9f9f9;
    position: relative;
    padding: 15px 20px 15px 45%;
    text-align: right;
    font-size: 0.9rem;
  }

  .comparison-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    width: 40%;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
  }

  .comparison-table tr::before {
    content: attr(data-variety);
    display: block;
    padding: 12px;
    background: var(--primary);
    color: white;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .comparison-table tr.liberika-card::before {
    background: var(--accent);
  }

  .comparison-table tr.liberika-card {
    border: 2px solid var(--accent);
    transform: scale(1.02);
    margin: 40px 0;
  }

  .liberika-card .badge-fokus {
    top: -15px;
    display: block !important;
  }

  .liberika-card td {
    background-color: #fffaf0 !important;
  }

  /* Navbar Mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    gap: 35px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--primary);
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1002;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
  }

  .menu-overlay.active {
    display: block;
  }

  /* General Mobile Adjustments */
  section {
    padding: 60px 20px;
  }
  .section-title h2 {
    font-size: 2rem;
  }

  [style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .image-stack {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Timeline Mobile */
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 15px;
    margin-bottom: 20px;
  }
  .timeline-item::after {
    left: 21px;
  }
  .right {
    left: 0;
  }

  /* Hero Mobile */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  /* Table Mobile */
  .comparison-container {
    margin: 20px -20px;
    border-radius: 0;
  }
  th,
  td {
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  /* Contact Mobile */
  .contact-container {
    padding: 30px 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0;
    overflow: hidden;
  }

  .contact-info {
    padding: 0;
    margin-bottom: 30px;
  }

  .contact-info h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
  }

  .contact-info p,
  .contact-info strong {
    font-size: 15px;
    line-height: 1.6;
  }

  .contact-form {
    padding: 0;
    width: 100%;
  }

  .form-group {
    margin-bottom: 15px;
    width: 100%;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
  }

  .form-control {
    width: 100% !important;
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: block;
    font-family: inherit;
  }

  .form-control::placeholder {
    font-size: 14px;
    opacity: 0.7;
  }

  textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }

  #submitBtn.btn-primary {
    width: 100% !important;
    min-height: 50px;
    margin-top: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50px !important;
  }

  .social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    justify-content: flex-start;
  }

  .social-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .beginner-tip {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .logo {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
  .image-stack {
    grid-template-columns: 1fr !important;
  }
}
