﻿@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* Exact Calebasse Colors based on the site */
  --bg-main: #fcfbf9; /* Very light beige/cream for main background */
  --bg-card: #ffffff;
  --bg-footer: #3d5045;
  --bg-light: #f5f2ea;
  
  --brand-primary: #3d5045; /* True Calebasse Green */
  --brand-light: #5a7062;
  --brand-dark: #2c3a32;
  --accent-color: #d1b581; /* Calebasse Gold / Straw color */
  --accent-hover: #e0c897;
  
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #ffffff;
  
  --border-light: #eae5d9;
  --border-medium: #d8d0bf;
  
  --error-color: #c94b4b;
  --error-bg: #fbeded;
  --success-color: #4b8b5a;
  --success-bg: #edf6ef;

  /* Calebasse Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Montserrat', -apple-system, sans-serif;
  
  /* Calebasse Shadows & Radius */
  --shadow-sm: 0 2px 10px rgba(61, 80, 69, 0.05);
  --shadow-md: 0 4px 20px rgba(61, 80, 69, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-main);
  background-color: var(--bg-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-primary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

a {
  color: var(--brand-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

a:hover {
  color: var(--accent-color);
}

code {
  font-family: 'Courier New', Courier, monospace;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--brand-dark);
  font-size: 0.85em;
  border: 1px solid var(--border-light);
}

.muted {
  color: var(--text-muted);
  font-weight: 300;
}

/* --- Layout Structure --- */

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.page {
  padding: 3rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* --- Header / Navigation (Calebasse Style) --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 15px rgba(0,0,0,0.03);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.brand {
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.brand-icon {
  height: 45px;
  width: auto;
}

.brand strong {
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* --- Hero Section --- */

.hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 1.5rem auto 0;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 300;
  line-height: 1.8;
}

/* --- Cards / Sections --- */

.card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 0; /* Calebasse uses square or very slightly rounded edges */
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card::before {
  /* Subtle decorative border inside */
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(226, 223, 211, 0.4);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--brand-primary);
}

.card h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.card-head h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  text-align: left;
}

/* --- Alerts --- */

.alert {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  color: var(--brand-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.alert.error {
  border-left-color: var(--error-color);
  background: var(--error-bg);
  color: var(--error-color);
}

/* --- Forms & Inputs --- */

.form-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

label {
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="url"] {
  border: 1px solid var(--border-medium);
  border-radius: 0;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  transition: all 0.3s ease;
  font-family: var(--font-body);
  color: var(--text-main);
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

input::placeholder {
  color: #a0a0a0;
  font-weight: 300;
}

/* --- Buttons (Calebasse Style) --- */

button {
  display: inline-block;
  width: fit-content;
  border: 1px solid var(--brand-primary);
  border-radius: 0;
  padding: 0.8rem 2rem;
  cursor: pointer;
  background: var(--brand-primary);
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
}

button:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
}

button.secondary {
  background: transparent;
  color: var(--brand-primary);
}

button.secondary:hover {
  background: var(--bg-light);
  color: var(--brand-primary);
}

.center-btn {
  margin: 1rem auto 0;
  display: block;
}

/* --- Tables Structure --- */

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th, td {
  text-align: left;
  padding: 1.2rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--bg-main);
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

tr:hover td {
  background-color: var(--bg-main);
}

tr:last-child td {
  border-bottom: none;
}

/* --- QR Result Block --- */

.qr-result {
  background: var(--bg-light);
  border: 1px solid var(--border-medium);
}

.qr-grid {
  display: grid;
  gap: 2.5rem;
}

.qr-result img {
  width: min(250px, 100%);
  height: auto;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  padding: 1rem;
  margin: 0 auto;
  display: block;
}

.qr-info-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* --- Destinations List --- */

.dest-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.destination {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.destination::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.destination.active {
  background: var(--bg-card);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.destination.active::before {
  background: var(--accent-color);
}

.destination-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.destination-title strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--brand-primary);
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-color);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.row-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.row-form input {
  flex: 1;
  min-width: 250px;
  margin: 0; 
}

.row-form button {
  padding: 0.8rem 1.5rem;
}

/* --- Stats / Analytics Block --- */

.stats-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--brand-primary);
  color: var(--text-light);
  border: none;
}

.stat::before {
  border-color: rgba(255,255,255,0.1);
}

.stat-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--accent-color);
}

.stat-value {
  margin: 0.5rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 4vw + 2rem, 5rem);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1;
}

/* --- Media Queries --- */

@media (min-width: 768px) {
  .qr-grid {
    grid-template-columns: 280px 1fr;
    align-items: center;
  }
  
  .qr-result img {
    margin: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
