/* ==========================================================================
   SKETCH YOUR TRAVELS BY KUKKI TIMES - DESIGN SYSTEM & STYLES
   Exact typography rules from website-font-reference.pdf
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-cream: #fbf7f0;
  --bg-alt-cream: #f4eee5;
  --bg-gallery: #eaddca;
  --bg-dark: #181816;
  --text-dark: #1c1b18;
  --text-muted: #5c5953;
  --text-light: #fbf7f0;
  --text-light-muted: #b8b3a8;
  --accent-red: #8c1d1d;
  --border-light: #dcd6cb;
  --border-dark: #3a3832;

  /* Typography Families */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'EB Garamond', Times New Roman, serif;
  --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* --- Typography Tokens (Matching Font Specs PDF) --- */
.eyebrow-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.light-eyebrow {
  color: var(--text-light-muted);
}

.tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: center;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.body-text p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #2a2925;
}

.body-text p:last-child {
  margin-bottom: 0;
}

/* --- Graphic Titles Scaling --- */
.graphic-title-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.graphic-title-light {
  filter: brightness(0) invert(0.95);
}


/* --- Buttons (Matching DM Sans 11px uppercase 0.18em) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 14px 28px;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  outline: none;
}

.btn-dark {
  background-color: var(--text-dark);
  color: var(--bg-cream);
  border-color: var(--text-dark);
}

.btn-dark:hover {
  background-color: #33312b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-light {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  border-color: var(--bg-cream);
}

.btn-light:hover {
  background-color: #ffffff;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

/* --- Top Masthead Header --- */
.masthead {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background-color: var(--bg-cream);
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name, .brand-handle {
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-dark);
}

.brand-handle:hover {
  opacity: 0.7;
}

/* --- Hero Section --- */
.hero-section {
  padding: 60px 0 70px 0;
  text-align: center;
  background-color: var(--bg-cream);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero-logo-wrapper {
  max-width: 540px;
  width: 100%;
  margin-bottom: 24px;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-tagline {
  margin-bottom: 18px;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-btn {
  margin-bottom: 40px;
  min-width: 180px;
}

.hero-meta-line {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b665c;
  line-height: 1.8;
}

/* --- Section 1: About Workshop --- */
.about-section {
  background-color: var(--bg-alt-cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.graphic-title-col {
  width: 100%;
  max-width: 240px;
  min-width: 0;
}

.about-text-col,
.why-text-col {
  width: 100%;
  min-width: 0;
}


.highlight-note {
  font-style: italic;
  font-weight: 500;
  color: var(--text-dark) !important;
  margin-top: 8px;
}

/* Workshop Detail Grid */
.workshop-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--text-dark);
  margin-top: 36px;
  background-color: var(--bg-cream);
}

.grid-card {
  padding: 16px 14px;
  border-right: 1px solid var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grid-card:last-child {
  border-right: none;
}

.grid-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.grid-value {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.text-accent {
  color: var(--accent-red);
}

/* --- Section 2: More Than A Memory (Dark) --- */
.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.kit-list {
  list-style: none;
}

.kit-list li {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
}

.kit-list li .dash {
  margin-right: 10px;
  color: var(--text-light-muted);
  user-select: none;
}

.main-kit-list li {
  color: var(--text-light);
}

.sub-kit-list li {
  font-style: italic;
  color: var(--text-light-muted);
}

.memory-right-col {
  padding-top: 20px;
}

/* --- Section 3: Why Sketch? --- */
.why-section {
  background-color: var(--bg-cream);
}

.why-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-dark);
  padding-left: 20px;
  border-left: 3px solid var(--accent-red);
  margin-top: 32px;
}

/* --- Section 4: Straight From The Field (Gallery) --- */
.gallery-section {
  background-color: var(--bg-gallery);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.gallery-header {
  margin-bottom: 36px;
}

.gallery-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin-top: -10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background-color: var(--bg-cream);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: #ddd;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.03);
}

.gallery-caption {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 14px;
  background-color: var(--text-dark);
  color: var(--bg-cream);
}

/* --- Section 5: Your Host --- */
.host-section {
  background-color: var(--bg-cream);
}

.host-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.host-img-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.host-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-name-wrapper {
  max-width: 180px;
  margin-bottom: 4px;
}

.host-name-img {
  width: 100%;
  height: auto;
}

.host-handle {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--accent-red);
  margin-bottom: 24px;
  font-weight: 500;
}

.host-bio {
  margin-bottom: 28px;
}

.reflection-quotes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-box {
  background-color: var(--bg-alt-cream);
  padding: 18px 22px;
  border-left: 2px solid var(--border-light);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: #4a4740;
  line-height: 1.6;
}

/* --- Section 6: Save Your Spot (Form) --- */
.spot-section {
  padding: 90px 0;
  text-align: center;
}

.spot-container {
  max-width: 520px;
}

.text-center {
  text-align: center;
}

.spot-title-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.spot-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 20px;
  color: var(--text-light-muted);
  margin-bottom: 32px;
}

.spot-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 17px;
  outline: none;
  transition: all 0.25s ease;
}

.form-control::placeholder {
  color: #7d786d;
}

.form-control:focus {
  border-color: var(--bg-cream);
  background-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(251, 247, 240, 0.15);
}

.form-control.is-invalid {
  border-color: #e57373;
}

.field-error {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  color: #ff8a80;
  margin-top: 6px;
  min-height: 16px;
}

.form-btn {
  width: 100%;
  padding: 16px;
  font-size: 12px;
  position: relative;
}

.form-privacy-note {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-light-muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* Spinner */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

.btn-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Footer --- */
.site-footer {
  padding: 50px 0;
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-tagline {
  margin-bottom: 8px;
}

.footer-brand {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dark);
}

.footer-details {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-contact {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
}

.footer-contact a {
  text-decoration: underline;
  color: var(--text-dark);
}

.footer-social {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-red);
}

/* --- Confirmation Popup Modal --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 12, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  width: 100%;
  max-width: 460px;
  padding: 40px 32px 32px 32px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--text-dark);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

.modal-body {
  text-align: center;
}

.modal-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.modal-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-banner {
  background-color: var(--bg-alt-cream);
  border: 1px dashed var(--accent-red);
  padding: 16px;
  margin-bottom: 28px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mail-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-banner p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.4;

}

.modal-banner strong {
  color: var(--accent-red);
}

.modal-ok-btn {
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid, .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .graphic-title-img {
    max-width: 260px;
  }

  .host-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .host-img-wrapper {
    max-width: 340px;
    margin: 0 auto;
  }

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

  .grid-card {
    border-bottom: 1px solid var(--text-dark);
  }

  .grid-card:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-heading {
    font-size: 32px;
  }

  .memory-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .memory-right-col {
    padding-top: 0;
    border-top: 1px solid var(--border-dark);
    padding-top: 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .hero-meta-line span {
    display: inline-block;
  }

  .workshop-detail-grid {
    grid-template-columns: 1fr;
  }

  .grid-card {
    border-right: none;
  }

  .modal-dialog {
    padding: 32px 20px 24px 20px;
  }
}
