:root {
  --color-cream: #e3d6b6;
  --color-dark: #1c1c1c;
  --color-text: #2b2b2b;
  --color-white: #ffffff;
  --color-teal: #50b7b6;
  --color-teal-dark: #3d9291;
  /* Pale mint for the script heading over the dark "about" overlay. */
  --color-teal-pale: #a9dbd9;
  /* Warm tan used sparingly for small accents on dark/photo backgrounds
     (contact detail values, card "+" marks). */
  --color-tan-accent: #c9b98a;
  --font-main: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-script: 'Alex Brush', cursive;
  /* Overridden in px by script.js (window.innerHeight) so section height
     always matches the scroller's translate amount exactly, including on
     mobile browsers whose address bar changes the visible viewport. */
  --app-height: 100vh;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: var(--app-height);
  font-family: var(--font-main);
  color: var(--color-text);
  overflow: hidden;
  overscroll-behavior: none;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { line-height: 1.6; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  padding: 17px 34px;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.15s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary,
.btn-secondary {
  background-color: var(--color-teal);
  color: var(--color-white);
}
.btn-primary:hover,
.btn-secondary:hover { background-color: var(--color-teal-dark); }

/* ---------- Fullpage scroller ---------- */
#fullpage {
  position: relative;
  height: var(--app-height);
  width: 100%;
  transition: transform 0.85s cubic-bezier(0.645, 0.045, 0.355, 1);
  will-change: transform;
}

.fp-section {
  height: var(--app-height);
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Side dot navigation */
.fp-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  /* Thin dark hairline so the dot stays visible over light sections too,
     not just the dark/photo ones. */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  background: transparent;
  position: relative;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.fp-dot span {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  pointer-events: none;
}
.fp-dot:hover span { opacity: 1; }
.fp-dot.active {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
}

/* ---------- Section 1: Hero ---------- */
.hero {
  display: flex;
  height: 100%;
  width: 100%;
}
.hero-left {
  width: 40%;
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  padding: 0 8%;
}
.logo-text {
  font-family: var(--font-script);
  color: var(--color-white);
}
.hero-content .logo-text {
  font-size: 5rem;
  margin-bottom: 6px;
}
.hero-content .tagline {
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 32px;
}
.hero-right {
  width: 60%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grime-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.window-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 9px 18px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.window-hint.hidden { opacity: 0; }

.window-reflection {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 46%,
    rgba(255, 255, 255, 0.16) 60%,
    rgba(255, 255, 255, 0.32) 66%,
    rgba(255, 255, 255, 0.1) 72%,
    transparent 84%
  );
}

/* ---------- Section 2: About ---------- */
.about {
  height: 100%;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.15);
}
.about-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  padding: 0 24px;
  color: var(--color-white);
}
.about-content h2 {
  font-family: var(--font-script);
  font-size: 4.2rem;
  font-weight: 400;
  color: var(--color-teal-pale);
  margin-bottom: 18px;
}
.about-content p {
  font-size: 1rem;
  color: #eaeaea;
  margin-bottom: 32px;
}

/* ---------- Section 3: Services ---------- */
.services {
  height: 100%;
  width: 100%;
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.services-inner {
  width: 100%;
  max-width: 1100px;
  padding: 0 32px;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(28, 28, 28, 0.6);
  margin-bottom: 10px;
}
.services-inner > h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 48px;
  max-width: 480px;
}
.service-cards {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.service-card {
  background: var(--color-white);
  border: none;
  border-radius: 6px;
  padding: 36px 30px;
  flex: 1 1 220px;
  min-width: 200px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}
.service-card:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}
.service-icon {
  width: 56px;
  height: 56px;
  color: var(--color-dark);
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.card-plus {
  display: block;
  font-size: 1.2rem;
  color: var(--color-tan-accent);
}

/* ---------- Section 4: Contact ---------- */
.contact {
  height: 100%;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #222;
  display: flex;
  align-items: center;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.2);
}
.contact-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  color: var(--color-white);
}
.contact-left .logo-text {
  font-size: 4rem;
  margin-bottom: 24px;
}
.contact-right { min-width: 260px; }
.contact-right .eyebrow { color: var(--color-white); margin-bottom: 22px; }
.contact-item { margin-bottom: 20px; }
.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}
.contact-item p { font-size: 0.95rem; color: var(--color-tan-accent); }
.contact-item a:hover { color: var(--color-white); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--color-white);
  border-radius: 8px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 24px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.modal-close:hover { color: var(--color-dark); }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 11px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  color: var(--color-dark);
}
.form-row textarea { resize: none; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  background: #fff;
}
.form-row input.form-date-alt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350b7b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 38px;
  cursor: pointer;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; margin: 0; }

/* ---------- Flatpickr calendar theme ---------- */
.flatpickr-calendar {
  font-family: var(--font-main);
  background: var(--color-white);
  border: 1px solid #e2ddd0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  border-radius: 8px;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--color-cream); }
.flatpickr-months { background: var(--color-cream); border-radius: 8px 8px 0 0; padding: 6px 0; }
.flatpickr-months .flatpickr-month { color: var(--color-dark); fill: var(--color-dark); }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--color-dark);
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month { fill: var(--color-teal-dark); }
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--color-teal); }
span.flatpickr-weekday {
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--color-teal-dark);
}
.flatpickr-day { border-radius: 999px; color: var(--color-dark); }
.flatpickr-day.today { border-color: var(--color-teal); }
.flatpickr-day:hover,
.flatpickr-day:focus { background: var(--color-teal-pale); border-color: var(--color-teal-pale); }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: #c9c2b0; }
.flatpickr-day.today:not(.selected) { color: var(--color-teal-dark); }

.form-submit {
  width: 100%;
  margin-top: 6px;
}
.form-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin: 14px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.form-status.success { color: #2a8f5f; }
.form-status.error { color: #c0392b; }

/* ---------- Responsive ---------- */
/* The fullpage scroller stays active on mobile too (script.js drives it
   off touch swipes); sections below are resized to fit one screen each
   instead of falling back to normal document scroll. */
@media (max-width: 900px) {
  .fp-nav {
    right: 14px;
    gap: 12px;
  }
  .fp-dot { width: 9px; height: 9px; }
  .fp-dot span { display: none; }

  .hero { flex-direction: column; }
  .hero-left, .hero-right { width: 100%; }
  .hero-left {
    flex: 1;
    padding: 24px 7%;
  }
  .hero-right { width: 100%; height: 40%; flex-shrink: 0; }
  .hero-content .logo-text { font-size: 3.2rem; margin-bottom: 6px; }
  .hero-content .tagline { font-size: 0.95rem; margin-bottom: 22px; }

  .btn { padding: 13px 24px; font-size: 0.85rem; }

  .about-content { padding: 0 22px; }
  .about-content h2 { font-size: 2.6rem; margin-bottom: 12px; }
  .about-content p { font-size: 0.88rem; margin-bottom: 20px; }

  .services-inner { padding: 0 22px; }
  .eyebrow { font-size: 0.7rem; }
  .services-inner > h2 { font-size: 1.15rem; margin-bottom: 24px; }
  .service-cards { gap: 10px; flex-wrap: nowrap; }
  .service-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 16px 8px;
    text-align: center;
  }
  .service-icon { width: 34px; height: 34px; margin: 0 auto 12px; }
  .service-card h3 { font-size: 0.7rem; line-height: 1.25; margin-bottom: 8px; }
  .card-plus { font-size: 1rem; }

  .contact-inner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 26px;
    padding: 0 22px;
  }
  .contact-left .logo-text { font-size: 2.8rem; margin-bottom: 16px; }
  .contact-item { margin-bottom: 12px; }
  .contact-item h4 { font-size: 0.8rem; }
  .contact-item p { font-size: 0.85rem; }
}
