/*
 Theme Name:   Kadence Child — inlakech.ch
 Description:  Child theme for inlakech.ch
 Template:     kadence
 Version:      1.0.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:          #FFFFFF;
  --color-bg-soft:     #F7F7F5;
  --color-bg-dark:     #1A1A1A;
  --color-text:        #1A1A1A;
  --color-text-muted:  #666666;
  --color-text-faint:  #999999;
  --color-accent:      #4A7C59;
  --color-accent-bg:   #EEF5F1;
  --color-border:      #E5E5E3;
  --color-border-mid:  #CCCCCA;
  --color-warn-bg:     #FFFBEB;
  --color-warn-border: #FDE68A;
  --color-warn-text:   #92400E;
  --font-head:         'DM Sans', sans-serif;
  --font-body:         'Inter', sans-serif;
  --radius-sm:         6px;
  --radius-md:         10px;
  --radius-lg:         16px;
  --shadow-card:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --max-width:         1160px;
  --section-pad:       5rem 1.5rem;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 0.5px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.primary-navigation a {
  font-size: 14px; color: var(--color-text-muted); text-decoration: none; transition: color .15s;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--color-text); }

.trp-language-switcher a {
  font-size: 12px; padding: 3px 8px;
  border: 0.5px solid var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-text-muted); margin-left: 4px; text-decoration: none;
}
.trp-language-switcher a:hover { color: var(--color-text); }

/* ============================================================
   HERO — VIDEO BACKGROUND
   ============================================================ */
.hero-section {
  position: relative; min-height: 85vh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--color-bg-dark);
}
.hero-section video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.75;
}
.hero-section .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.hero-section .hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 1.5rem 4rem; color: #fff; width: 100%;
}
.hero-content h1 { color: #fff; font-size: clamp(2.25rem,6vw,4rem); max-width: 700px; }
.hero-content p  { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 520px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.hero-pill {
  background: rgba(255,255,255,0.12); border: 0.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85); font-size: 12px; padding: 5px 12px;
  border-radius: 20px; display: inline-flex; align-items: center; gap: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-section video { display: none; }
  .hero-section { background: var(--color-bg-dark); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-pad); }
.section-alt { background: var(--color-bg-soft); }
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-text-faint); margin-bottom: .5rem;
}
.section-title { margin-bottom: .35rem; }
.section-subtitle { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 2rem; }

/* ============================================================
   SERVICE CARDS (Parking)
   ============================================================ */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.service-card {
  background: var(--color-bg); border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color .15s, box-shadow .15s;
}
.service-card:hover { border-color: var(--color-border-mid); box-shadow: var(--shadow-card); }
.service-card.featured { border: 1.5px solid var(--color-accent); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-accent-bg); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 1.25rem;
}
.card-badge {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: 20px; background: var(--color-accent-bg);
  color: var(--color-accent); font-weight: 500; margin-bottom: .75rem;
}
.price-big { font-size: 2rem; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.price-big span { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.price-note { font-size: 12px; color: var(--color-text-faint); margin-bottom: 1rem; }
.card-features { list-style: none; margin: 1rem 0; padding: 0; }
.card-features li {
  font-size: 13px; color: var(--color-text-muted);
  padding: 6px 0; border-top: 0.5px solid var(--color-border);
  display: flex; align-items: center; gap: 8px;
}
.card-features li:first-child { border-top: none; }

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 0.5px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 2rem;
}
.step-item { padding: 1.75rem; border-right: 0.5px solid var(--color-border); }
.step-item:last-child { border-right: none; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 0.5px solid var(--color-border-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--color-text-muted); margin-bottom: 1rem;
}
.step-item h4 { font-size: 1rem; margin-bottom: 6px; }
.step-item p  { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; font-family: var(--font-body);
  cursor: pointer; transition: opacity .15s; text-decoration: none;
  text-align: center; border: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--color-text); color: var(--color-bg); }
.btn-primary:hover { opacity: .85; text-decoration: none; color: var(--color-bg); }
.btn-outline { background: transparent; border: 0.5px solid var(--color-border-mid); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-text); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { opacity: .9; text-decoration: none; color: #fff; }
.btn-full { display: block; width: 100%; }

/* ============================================================
   DATE / TIME PICKER
   ============================================================ */
.inlakech-datepicker-wrap { position: relative; }
.inlakech-cal {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 999;
  background: var(--color-bg); border: 0.5px solid var(--color-border-mid);
  border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 12px; width: 280px; display: none;
}
.inlakech-cal.open { display: block; }
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cal-header span { font-size: 13px; font-weight: 500; }
.cal-nav {
  background: none; border: 0.5px solid var(--color-border);
  border-radius: var(--radius-sm); width: 28px; height: 28px;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day-name { font-size: 10px; text-align: center; color: var(--color-text-faint); padding: 4px 0; }
.cal-day {
  font-size: 12px; text-align: center; padding: 6px 2px;
  border-radius: var(--radius-sm); cursor: pointer; border: none; background: none;
}
.cal-day:hover:not(.disabled):not(.empty) { background: var(--color-bg-soft); }
.cal-day.today { font-weight: 600; color: var(--color-accent); }
.cal-day.selected { background: var(--color-accent); color: #fff; }
.cal-day.disabled { color: var(--color-border); cursor: not-allowed; }
.cal-day.empty { cursor: default; }

.inlakech-timepicker-wrap { position: relative; }
.inlakech-timepicker {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 999;
  background: var(--color-bg); border: 0.5px solid var(--color-border-mid);
  border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 12px; width: 180px; display: none;
}
.inlakech-timepicker.open { display: block; }
.time-scroll { display: flex; gap: 8px; }
.time-col { flex: 1; max-height: 160px; overflow-y: auto; }
.time-col::-webkit-scrollbar { width: 4px; }
.time-col::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.time-opt {
  font-size: 13px; padding: 5px 8px; border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
}
.time-opt:hover { background: var(--color-bg-soft); }
.time-opt.selected { background: var(--color-accent); color: #fff; }
.time-label { font-size: 10px; color: var(--color-text-faint); text-align: center; margin-bottom: 4px; }

/* ============================================================
   PRICE PREVIEW (checkout)
   ============================================================ */
.inlakech-price-preview {
  background: var(--color-accent-bg); border: 0.5px solid var(--color-accent);
  border-radius: var(--radius-md); padding: 12px 16px; margin: 12px 0;
  display: flex; align-items: center; gap: 12px;
}
.preview-label { font-size: 13px; color: var(--color-text-muted); }
.preview-amount { font-size: 20px; font-weight: 500; color: var(--color-accent); }
.preview-note { font-size: 12px; color: var(--color-text-faint); }

/* ============================================================
   WOOCOMMERCE FORMS
   ============================================================ */
.woocommerce-checkout .form-row label,
.inlakech-form label {
  font-size: 12px; color: var(--color-text-muted); margin-bottom: 5px; display: block;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.inlakech-form input, .inlakech-form select, .inlakech-form textarea {
  width: 100%; padding: 9px 12px;
  border: 0.5px solid var(--color-border-mid); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-body); color: var(--color-text);
  background: var(--color-bg); transition: border-color .15s;
}
.woocommerce-checkout .form-row input:focus,
.inlakech-form input:focus, .inlakech-form textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74,124,89,.1);
}
.inlakech-form .form-group { margin-bottom: 1rem; }
.inlakech-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inlakech-parking-fields { margin: 1.5rem 0; padding: 1.5rem; background: var(--color-bg-soft); border-radius: var(--radius-lg); }
.inlakech-parking-fields h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.optional-label { font-size: 11px; color: var(--color-text-faint); font-weight: 400; }
.required { color: #dc2626; }
.form-note { font-size: 12px; color: var(--color-text-faint); text-align: center; margin-top: 8px; }
.woocommerce #place_order {
  background: var(--color-text) !important; color: var(--color-bg) !important;
  border: none !important; padding: 12px 24px !important;
  border-radius: var(--radius-md) !important; font-size: 15px !important;
  font-weight: 500 !important; width: 100%; transition: opacity .15s;
}
.woocommerce #place_order:hover { opacity: .85 !important; }

/* ============================================================
   WARNING BOX
   ============================================================ */
.warning-box {
  background: var(--color-warn-bg); border: 0.5px solid var(--color-warn-border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--color-warn-text); margin: 1rem 0;
}

/* ============================================================
   COMMUNITY PAGE
   ============================================================ */
.inlakech-post-list { display: flex; flex-direction: column; gap: 1rem; }
.inlakech-post-item {
  background: var(--color-bg); border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
}
.inlakech-post-item .post-date {
  font-size: 11px; color: var(--color-text-faint);
  text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 5px;
}
.inlakech-post-item h4 { margin-bottom: 6px; font-size: 1rem; }
.no-items {
  color: var(--color-text-faint); font-size: 14px; padding: 1.5rem;
  text-align: center; border: 0.5px dashed var(--color-border); border-radius: var(--radius-md);
}
.inlakech-notice { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 1rem; }
.inlakech-notice.success { background: var(--color-accent-bg); color: var(--color-accent); }
.inlakech-notice.error   { background: #FEF2F2; color: #991B1B; }

/* ============================================================
   INFO / CONTACTS PAGE
   ============================================================ */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.25rem; margin-top: 1.5rem;
}
.info-card { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 1.5rem; }
.info-card h4 { font-size: 1rem; margin-bottom: 6px; }
.info-card p  { font-size: 13px; color: var(--color-text-muted); margin: 0; line-height: 1.6; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 0.5px solid var(--color-border); font-size: 15px;
}
.contact-row:last-child { border-bottom: none; }
.map-embed { width: 100%; height: 400px; border: 0.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0; }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   THE HOUSE / BLUE ROOM
   ============================================================ */
.amenity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-list li {
  background: var(--color-bg-soft); border: 0.5px solid var(--color-border);
  border-radius: 20px; padding: 5px 12px; font-size: 13px; color: var(--color-text-muted);
}
.legal-note {
  font-size: 12px; color: var(--color-text-faint);
  border-top: 0.5px solid var(--color-border); padding-top: 1rem; margin-top: 2rem;
}

/* ============================================================
   CRASH PAD CARDS
   ============================================================ */
.pad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; margin-top: 1.5rem; }
.pad-card { border: 0.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.pad-card img { width: 100%; height: 180px; object-fit: cover; }
.pad-card-body { padding: 1.25rem; }
.pad-card-body h4 { font-size: 1rem; margin-bottom: 4px; }
.pad-card-body .pad-specs { font-size: 12px; color: var(--color-text-muted); margin-bottom: .75rem; }
.pad-card-body .pad-price { font-size: 1.4rem; font-weight: 500; }
.pad-card-body .pad-price span { font-size: .85rem; font-weight: 400; color: var(--color-text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-bg-dark); color: rgba(255,255,255,.6); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-family: var(--font-head); font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: 13px; font-style: italic; color: rgba(255,255,255,.5); line-height: 1.5; }
.footer-col h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); margin-bottom: 1rem; font-weight: 400; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; flex-wrap: wrap; gap: 8px;
}
.footer-legal { color: rgba(255,255,255,.3); }
.institutional-logos { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.institutional-logos img { height: 36px; width: auto; opacity: .75; filter: brightness(0) invert(1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 3rem 1.25rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-item { border-right: none; border-bottom: 0.5px solid var(--color-border); }
  .step-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-section { min-height: 70vh; }
  .inlakech-form .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .service-grid, .pad-grid { grid-template-columns: 1fr; }
}
