/* ======================================
   CRETAN EDITORIAL Design System
   Premium Magazine-Style Layout
   Location Voiture Heraklion
   ====================================== */

/* ============ TYPOGRAPHY & BASE ============ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Monochrome with Mediterranean Accent */
  --black: #0A0A0A;
  --white: #FAFAFA;
  --grey-dark: #2A2A2A;
  --grey-mid: #666666;
  --grey-light: #E5E5E5;
  --accent-terracotta: #C45329;
  --accent-aegean: #1a5f7a;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing - Swiss Grid Inspired */
  --unit: 8px;
  --gutter: calc(var(--unit) * 3);
  --section-padding: calc(var(--unit) * 15);

  /* Shadows - Brutalist */
  --shadow-brutal: 12px 12px 0 rgba(10, 10, 10, 0.15);
  --shadow-brutal-hover: 16px 16px 0 rgba(10, 10, 10, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ============ FIXED SIDEBAR NAVIGATION ============ */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 80px;
  height: 100vh;
  background: var(--black);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--gutter) 0;
}

.sidebar-logo {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: auto;
  cursor: pointer;
}

.progress-indicator {
  width: 2px;
  height: 200px;
  background: var(--grey-dark);
  position: relative;
  margin: var(--gutter) 0;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent-terracotta);
  transition: height 0.3s ease;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  margin-top: auto;
}

.sidebar-links a {
  color: var(--grey-mid);
  font-size: 0.75rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.sidebar-links a:hover {
  color: var(--white);
}

/* Main content offset for sidebar */
.main-content {
  margin-left: 80px;
}

/* ============ SPLIT-SCREEN HERO ============ */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Diagonal cut shape */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 58%;
  width: 100px;
  height: 100%;
  background: var(--white);
  transform: skewX(-8deg);
  z-index: 2;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.hero-left {
  width: 60%;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.hero-number {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-family: var(--font-serif);
  font-size: 200px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

.hero-right {
  width: 40%;
  background: var(--white);
  padding: calc(var(--unit) * 10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-mid);
  margin-bottom: var(--unit);
}

.hero-right h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--gutter);
  color: var(--black);
}

.hero-right p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--grey-dark);
  margin-bottom: calc(var(--unit) * 5);
  max-width: 500px;
}

/* Booking form - Brutal Style */
.booking-form {
  background: var(--grey-light);
  padding: var(--gutter);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-brutal);
  transition: box-shadow 0.3s ease;
}

.booking-form:hover {
  box-shadow: var(--shadow-brutal-hover);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-bottom: var(--gutter);
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: calc(var(--unit) / 2);
  color: var(--grey-dark);
}

.form-field input {
  padding: calc(var(--unit) * 1.5);
  border: 2px solid var(--black);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  transform: translateX(4px) translateY(-4px);
  box-shadow: -4px 4px 0 var(--black);
}

.btn-primary {
  width: 100%;
  padding: calc(var(--unit) * 2);
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-terracotta);
  transition: left 0.4s ease;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

/* ============ SECTION NUMBERS ============ */
.section-with-number {
  position: relative;
  padding: var(--section-padding) 0;
}

.section-number {
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: var(--font-serif);
  font-size: clamp(120px, 15vw, 200px);
  font-weight: 900;
  color: rgba(10, 10, 10, 0.04);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.section-header {
  max-width: 1400px;
  margin: 0 auto calc(var(--unit) * 8);
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-terracotta);
  margin-bottom: var(--unit);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--gutter);
}

.section-header p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--grey-dark);
  max-width: 700px;
}

/* ============ ASYMMETRIC MAGAZINE GRID ============ */
.magazine-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  position: relative;
  z-index: 1;
}

/* First card - Hero card */
.grid-card:nth-child(1) {
  grid-column: span 8;
  grid-row: span 2;
}

.grid-card:nth-child(2) {
  grid-column: span 4;
}

.grid-card:nth-child(3) {
  grid-column: span 4;
}

.grid-card:nth-child(4) {
  grid-column: span 5;
}

.grid-card:nth-child(5) {
  grid-column: span 7;
}

/* Card styles - Brutalist */
.grid-card {
  background: var(--white);
  border: 2px solid var(--black);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.grid-card:hover {
  transform: translate(4px, -4px);
  box-shadow: -8px 8px 0 rgba(10, 10, 10, 0.15);
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.3s ease;
}

.grid-card:hover .card-image {
  filter: grayscale(0%);
}

.card-content {
  padding: var(--gutter);
}

.card-tag {
  display: inline-block;
  padding: calc(var(--unit) / 2) var(--unit);
  background: var(--black);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--unit);
}

.card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--unit);
  line-height: 1.3;
}

.card-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-dark);
  margin-bottom: var(--gutter);
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--unit) / 2);
  list-style: none;
  margin-bottom: var(--gutter);
}

.card-features li {
  font-size: 0.8rem;
  padding: calc(var(--unit) / 2) var(--unit);
  border: 1px solid var(--grey-mid);
  color: var(--grey-dark);
}

.card-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-terracotta);
  margin-bottom: var(--gutter);
}

.btn-secondary {
  display: inline-block;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
  transform: translate(2px, -2px);
  box-shadow: -4px 4px 0 var(--accent-terracotta);
}

/* ============ VERTICAL TYPOGRAPHY ============ */
.vertical-text {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-light);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ============ PULL QUOTES ============ */
.pull-quotes-section {
  background: var(--grey-light);
  padding: var(--section-padding) 0;
  position: relative;
}

.quotes-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: calc(var(--gutter) * 2);
}

.pull-quote {
  position: relative;
  padding: calc(var(--unit) * 5);
  background: var(--white);
  border-left: 4px solid var(--accent-terracotta);
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 900;
  color: rgba(196, 83, 41, 0.1);
  line-height: 1;
}

.pull-quote-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: var(--gutter);
  position: relative;
  z-index: 1;
}

.pull-quote-author {
  display: flex;
  align-items: center;
  gap: var(--unit);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--black);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: calc(var(--unit) / 4);
}

.author-rating {
  color: var(--accent-terracotta);
  font-size: 0.9rem;
}

/* ============ ACCORDION - Minimal Style ============ */
.accordion-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--section-padding) var(--gutter);
}

.accordion-item {
  border-bottom: 1px solid var(--grey-light);
  margin-bottom: var(--gutter);
}

.accordion-trigger {
  width: 100%;
  padding: var(--gutter) 0;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  transition: color 0.3s ease;
}

.accordion-trigger:hover {
  color: var(--accent-terracotta);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--black);
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--black);
  transition: all 0.3s ease;
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
}

.accordion-item.active .accordion-icon {
  border-color: var(--accent-terracotta);
  transform: rotate(90deg);
}

.accordion-item.active .accordion-icon::before,
.accordion-item.active .accordion-icon::after {
  background: var(--accent-terracotta);
}

.accordion-item.active .accordion-icon::after {
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding-bottom: var(--gutter);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--grey-dark);
}

/* ============ FOOTER ============ */
footer {
  background: var(--black);
  color: var(--white);
  padding: calc(var(--section-padding) / 2) 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--gutter) * 2);
}

.footer-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: var(--gutter);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--grey-mid);
  text-decoration: none;
  display: block;
  padding: calc(var(--unit) / 2) 0;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: calc(var(--gutter) * 2);
  margin-top: calc(var(--gutter) * 2);
  border-top: 1px solid var(--grey-dark);
  color: var(--grey-mid);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .sidebar-nav {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero::before {
    display: none;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left {
    height: 60vh;
  }

  .magazine-grid .grid-card {
    grid-column: span 12 !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-number {
    font-size: 80px;
    right: 20px;
  }

  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .hero-number {
    font-size: 100px;
    bottom: 20px;
    left: 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

/* ============ UTILITY SECTIONS ============ */

/* Distance Matrix Table */
.distance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: var(--gutter);
  border: 2px solid var(--black);
}

.distance-table th,
.distance-table td {
  padding: calc(var(--unit) * 2);
  text-align: left;
  border-bottom: 1px solid var(--grey-light);
}

.distance-table th {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.distance-table tr:last-child td {
  border-bottom: none;
}

.distance-table tr:hover {
  background: var(--grey-light);
}

.distance-table .destination {
  font-weight: 600;
  font-size: 1.05rem;
}

.distance-table .distance {
  color: var(--accent-terracotta);
  font-weight: 700;
}

/* Seasonal Calendar */
.seasonal-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
}

.season-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--gutter);
  transition: all 0.3s ease;
}

.season-card:hover {
  transform: translate(4px, -4px);
  box-shadow: -8px 8px 0 rgba(10, 10, 10, 0.15);
}

.season-month {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: calc(var(--unit) / 2);
}

.season-temp {
  display: inline-block;
  padding: calc(var(--unit) / 2) var(--unit);
  background: var(--grey-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--unit);
}

.season-card ul {
  list-style: none;
  margin-top: var(--unit);
}

.season-card li {
  padding: calc(var(--unit) / 2) 0;
  font-size: 0.95rem;
  color: var(--grey-dark);
  display: flex;
  align-items: flex-start;
  gap: calc(var(--unit) / 2);
}

.season-card li::before {
  content: '→';
  color: var(--accent-terracotta);
  font-weight: 700;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: calc(var(--unit) * 3);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--black);
  min-width: 600px;
}

.comparison-table th {
  background: var(--black);
  color: var(--white);
  padding: calc(var(--unit) * 2);
  font-weight: 700;
  text-align: center;
  border-right: 1px solid var(--grey-dark);
}

.comparison-table th:first-child {
  text-align: left;
  background: var(--grey-dark);
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table td {
  padding: calc(var(--unit) * 1.5);
  border-bottom: 1px solid var(--grey-light);
  border-right: 1px solid var(--grey-light);
  text-align: center;
}

.comparison-table td:first-child {
  font-weight: 600;
  text-align: left;
  background: var(--grey-light);
}

.comparison-table td:last-child {
  border-right: none;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: #27AE60;
  font-size: 1.3rem;
  font-weight: 900;
}

.comparison-table .cross {
  color: #E74C3C;
  font-size: 1.3rem;
}

/* Checklist */
.checklist-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: calc(var(--gutter) * 2);
}

.checklist-category h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: var(--gutter);
  padding-bottom: calc(var(--unit) / 2);
  border-bottom: 2px solid var(--accent-terracotta);
}

.checklist-category ul {
  list-style: none;
}

.checklist-category li {
  padding: calc(var(--unit) * 1.5);
  margin-bottom: calc(var(--unit) / 2);
  border: 1px solid var(--grey-light);
  background: var(--white);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: var(--unit);
}

.checklist-category li:hover {
  border-color: var(--accent-terracotta);
  transform: translateX(4px);
}

.checkbox-icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--black);
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-category li:hover .checkbox-icon {
  border-color: var(--accent-terracotta);
}

/* Extended Routes Cards */
.extended-routes-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: calc(var(--gutter) * 2);
}

.extended-route-card {
  background: var(--white);
  border: 2px solid var(--black);
  overflow: hidden;
  transition: all 0.3s ease;
}

.extended-route-card:hover {
  transform: translate(4px, -4px);
  box-shadow: -8px 8px 0 rgba(10, 10, 10, 0.15);
}

.route-header {
  padding: var(--gutter);
  background: var(--grey-light);
  border-bottom: 2px solid var(--black);
}

.route-stats {
  display: flex;
  gap: var(--gutter);
  margin-bottom: var(--unit);
}

.route-stat {
  display: flex;
  align-items: center;
  gap: calc(var(--unit) / 2);
  font-size: 0.9rem;
  font-weight: 600;
}

.route-stat-icon {
  font-size: 1.2rem;
}

.route-body {
  padding: var(--gutter);
}

.route-body h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: var(--unit);
}

.route-stops {
  margin: var(--gutter) 0;
}

.route-stop {
  display: flex;
  align-items: flex-start;
  gap: var(--unit);
  margin-bottom: var(--unit);
  padding-bottom: var(--unit);
  border-bottom: 1px solid var(--grey-light);
}

.route-stop:last-child {
  border-bottom: none;
}

.stop-number {
  width: 30px;
  height: 30px;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.stop-info h5 {
  font-weight: 700;
  margin-bottom: calc(var(--unit) / 4);
}

.stop-info p {
  font-size: 0.9rem;
  color: var(--grey-dark);
}

/* ============ UTILITIES ============ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-center {
  text-align: center;
}

/* Kinetic Number Animation */
@keyframes rollIn {
  from {
    transform: translateY(100%) rotate(20deg);
    opacity: 0;
  }

  to {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

.section-number.animated {
  animation: rollIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}