/* =============================================
   Summer Shine — Main Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sun: #f59e0b;
  --dark: #0f172a;
  --mid: #334155;
  --muted: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --font: 'Poppins', sans-serif;
}

body { font-family: var(--font); color: var(--dark); background: var(--white); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}
.btn-primary { background: var(--sky); color: var(--white); }
.btn-primary:hover { background: var(--sky-dark); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,.15); }
.btn-full { display: block; text-align: center; width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-brand {
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: .4rem;
}
.brand-sun { color: var(--sun); font-size: 1.6rem; }

/* Logo banner below navbar */
/* Company logo — swap images/logo.png for your actual file */
.site-logo {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  height: clamp(96px, 10vw, 240px);
  width: auto;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
@media (max-width: 480px) {
  .site-logo { height: 56px; top: 1rem; right: 1rem; }
  .hero-content { padding-right: 74px; }
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: #cbd5e1; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.btn-book {
  background: var(--sky); color: var(--white) !important;
  padding: .45rem 1.2rem; border-radius: 50px;
  font-weight: 600 !important;
}
.btn-book:hover { background: var(--sky-dark); }
.btn-book.active { background: var(--sky-dark); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--dark); padding: 1rem 2rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--dark);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 40%, rgba(14,165,233,.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; padding: 3rem 2rem 3rem 6vw;
}
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); line-height: 1.15; margin-bottom: 1rem; }
.accent { color: var(--sky); }
.hero-sub { color: #cbd5e1; font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- FEATURES ---- */
.features { padding: 5rem 2rem; background: var(--light); text-align: center; }
.features h2 { font-size: 2rem; margin-bottom: 2.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); }
.feature-icon { font-size: 2.2rem; }
.feature-card h3 { margin: .75rem 0 .5rem; font-size: 1.05rem; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---- TEASER ---- */
.teaser { display: flex; align-items: center; gap: 3rem; padding: 5rem 6vw; flex-wrap: wrap; }
.teaser-text { flex: 1 1 280px; }
.teaser-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.teaser-text p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.teaser-images { flex: 1 1 320px; display: flex; gap: 1rem; }
.teaser-half { flex: 1; position: relative; border-radius: var(--radius); overflow: hidden; }
.label {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: rgba(0,0,0,.6); color: var(--white);
  font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 50px;
}
.placeholder-img {
  height: 220px; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; font-weight: 600; font-size: .95rem;
}
.dirty { background: #78716c; color: #d6d3d1; }
.clean { background: #bae6fd; color: var(--sky-dark); }
.teaser-img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); display: block; }

/* ---- PAGE HEADER ---- */
.page-header { text-align: center; padding: 4rem 2rem 2rem; background: var(--dark); color: var(--white); }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.page-header p { color: #94a3b8; font-size: 1.05rem; }

/* ---- BEFORE/AFTER GALLERY ---- */
.gallery { padding: 3rem 2rem 5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-caption { text-align: center; padding: .75rem; font-size: .9rem; color: var(--muted); background: var(--white); }

/* Compare slider */
.compare-wrapper {
  position: relative; overflow: hidden; cursor: col-resize;
  aspect-ratio: 4/3; user-select: none;
}
.compare-before, .compare-after {
  position: absolute; inset: 0;
}
.compare-before img, .compare-after img {
  width: 100%; height: 100%; object-fit: cover;
}
.compare-after { clip-path: inset(0 50% 0 0); }
.compare-label {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 3;
  background: rgba(0,0,0,.55); color: var(--white);
  font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 50px;
}
.after-label { left: auto; right: .6rem; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
  width: 3px; background: var(--white);
  transform: translateX(-50%);
}
.compare-handle::before, .compare-handle::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.compare-handle::before { top: calc(50% - 18px); }
.compare-handle::after { display: none; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: col-resize; z-index: 5;
}

/* ---- CTA BAND ---- */
.cta-band {
  text-align: center; padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--sky-dark), var(--sky));
  color: var(--white);
}
.cta-band h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.cta-band .btn { margin: .4rem; }

/* ---- ESTIMATE ---- */
.estimate-section { padding: 3rem 1rem 5rem; display: flex; justify-content: center; }
.estimate-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; max-width: 500px; width: 100%; }
.pricing-legend { display: flex; gap: 1rem; margin-bottom: 2rem; justify-content: center; flex-wrap: wrap; }
.price-badge {
  display: flex; flex-direction: column; align-items: center;
  background: var(--light); border-radius: var(--radius); padding: .8rem 1.2rem;
  min-width: 90px;
}
.price-badge span { font-size: .8rem; color: var(--muted); }
.price-badge strong { font-size: 1.4rem; color: var(--sky-dark); }
.price-badge small { font-size: .7rem; color: var(--muted); text-align: center; }

.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.form-row label { font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: .5rem; }
.qty-control input[type="number"] {
  width: 64px; text-align: center; border: 2px solid #e2e8f0;
  border-radius: 8px; padding: .4rem; font-size: 1rem; font-family: var(--font);
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--sky);
  background: transparent; color: var(--sky); font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--sky); color: var(--white); }

.estimate-result {
  text-align: center; background: var(--light); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.5rem 0;
}
.result-label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result-amount { font-size: 3rem; font-weight: 700; color: var(--sky-dark); }
.result-breakdown { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* ---- BOOKING ---- */
.book-section { padding: 3rem 1rem 5rem; display: flex; justify-content: center; }
.book-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; max-width: 560px; width: 100%; }

/* Calendar */
.calendar-container { margin-bottom: 1.5rem; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-weight: 600; font-size: 1.05rem; }
.cal-nav { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--sky); line-height: 1; padding: 0 .25rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-day-name { font-size: .75rem; color: var(--muted); padding: .3rem 0; font-weight: 600; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: .9rem; cursor: pointer; border: 2px solid transparent;
  transition: all .15s;
}
.cal-day:hover:not(.cal-empty):not(.cal-past):not(.cal-booked-full) { background: var(--sky); color: var(--white); }
.cal-day.selected { background: var(--sky-dark); color: var(--white); }
.cal-day.cal-past { color: #cbd5e1; cursor: not-allowed; }
.cal-day.cal-booked-full { background: #fee2e2; color: #ef4444; cursor: not-allowed; font-weight: 600; }
.cal-day.cal-today { border-color: var(--sky); font-weight: 700; }
.cal-empty { pointer-events: none; }

/* Timeslots */
.timeslot-container { margin-bottom: 1.5rem; }
.timeslot-container h3 { font-size: 1rem; margin-bottom: .75rem; }
.timeslot-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.timeslot-btn {
  padding: .45rem 1rem; border-radius: 50px;
  border: 2px solid var(--sky); background: transparent;
  color: var(--sky); font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.timeslot-btn:hover:not(:disabled) { background: var(--sky); color: var(--white); }
.timeslot-btn.selected { background: var(--sky-dark); color: var(--white); border-color: var(--sky-dark); }
.timeslot-btn:disabled { border-color: #e2e8f0; color: #cbd5e1; cursor: not-allowed; background: var(--light); }

/* Booking form */
.booking-form { margin-top: .5rem; }
.slot-confirm { font-size: 1rem; color: var(--sky-dark); margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-group input, .form-group textarea {
  width: 100%; border: 2px solid #e2e8f0; border-radius: 8px;
  padding: .6rem .9rem; font-size: .95rem; font-family: var(--font);
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--sky); }
.estimate-summary { background: var(--light); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .75rem; text-align: center; }

/* Success */
.success-message { text-align: center; padding: 2rem; }
.success-icon { font-size: 3rem; }
.success-message h2 { margin: 1rem 0 .5rem; font-size: 1.8rem; }
.success-message p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: #94a3b8; text-align: center; padding: 2rem; font-size: .9rem; line-height: 2; }
.footer a { color: var(--sky); }
.footer a:hover { text-decoration: underline; }
