/* Kraynov Concierge — Apple-style redesign */
/* Light backgrounds, clean typography, generous whitespace */

:root {
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-gold: #c9a227;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Offset anchors so content appears below fixed header */
#manual-visit,
#about,
#services,
#packages,
#contact {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header — light, minimal */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-overlay {
  display: none;
}

.nav a {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
}

/* Hero — light, large headline */
.hero {
  padding: 48px 22px 56px;
  background: var(--bg-secondary);
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: start;
  gap: 12px;
}

.hero-content,
.hero-image-wrap {
  min-width: 0;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-sub {
  margin: 0 0 0 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
}

.hero-area {
  margin: 0 0 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--accent-gold);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 5rem; /* space so buttons align with bottom of photo */
  margin-bottom: 12px;
  width: 100%;
}

.hero-trust {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.hero-trust.hero-area {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--accent-gold);
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: -1.5rem; /* pull image up so hair aligns with H1 */
}

.hero-image {
  max-width: 280px;
  max-height: 420px;
  width: auto;
  height: auto;
  min-width: 0;
  object-fit: contain;
  object-position: center top;
  border-radius: var(--radius-lg);
}

/* Buttons — Apple style */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.08);
}

/* Sections */
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 22px;
}

.section--alt {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

#about.section--alt {
  margin-top: 2rem;
}

.section h2 {
  margin: 0 0 28px;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section h3 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}

.section h3:first-child {
  margin-top: 0;
}

.section-inner p,
.section-inner .lead {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text-primary);
}

.section-inner .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.section-inner ul {
  margin: 0 0 20px;
  padding-left: 1.35rem;
  line-height: 1.7;
}

.section-inner li {
  margin-bottom: 8px;
}

/* Service cards — minimal, clean */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--border);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 15px;
  color: var(--text-secondary);
}

.service-card li {
  margin-bottom: 6px;
}

.service-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-more {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.service-card .service-card-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.service-card-clone {
  display: none;
}

/* Package cards */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.package-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.package-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.package-price {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.package-price span {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.package-card ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.package-card li {
  margin-bottom: 6px;
}

.package-card .package-tagline,
.package-card p:last-child {
  margin: 0;
  margin-top: auto;
  padding-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Manual CTA */
.manual-cta {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  border: 1px solid var(--border);
  text-align: center;
}

.manual-cta h3 {
  margin-top: 0;
}

.manual-cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.manual-cta-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: left;
}

.manual-cta-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.manual-cta-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.manual-cta .btn {
  margin-top: 16px;
}

/* Schedule Visit Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 22px;
  pointer-events: none;
}

.modal.is-open {
  display: flex;
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: saturate(0.8);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.modal-panel h3 {
  margin: 0 0 24px;
  font-size: 1.25rem;
}

.modal-form label {
  display: block;
  margin-bottom: 20px;
}

.modal-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal-form input {
  width: 100%;
  padding: 12px 16px;
  font-size: 17px;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.modal-form .btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
}

/* Google Places autocomplete dropdown — above modal */
.pac-container {
  z-index: 300 !important;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Contact */
.contact-section {
  background: var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}

.contact-info {
  margin: 0;
}

.contact-info p {
  margin: 0 0 8px;
  font-size: 17px;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form-wrap {
  max-width: 100%;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.contact-form-wrap h3 {
  margin-top: 0;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 17px;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 22px;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  pointer-events: none;
}

.nav-overlay.is-open {
  display: flex;
  pointer-events: auto;
}

.nav-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 0;
}

.nav-overlay-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 48px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  min-width: 260px;
}

.nav-overlay-panel a {
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 0;
}

.nav-overlay-close {
  margin-top: 24px;
  padding: 12px 28px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #f5f5f7;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 48px 22px 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrap {
    order: 0;
    justify-content: center;
    width: 100%;
  }

  .hero-image {
    max-width: 280px;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center top;
    margin: 0 auto;
    display: block;
  }

  .hero-ctas {
    justify-content: center;
  }

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

  .section {
    padding: 56px 22px;
  }

  .service-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin-right: -22px;
    padding-left: 0;
    padding-right: 5%;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .service-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    flex: 0 0 85vw;
    width: 85vw;
    min-width: 260px;
    max-width: 320px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    flex-shrink: 0;
    overflow: hidden;
  }

  .section h2 {
    font-size: 2rem;
  }

  .package-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin-right: -22px;
    margin-bottom: 56px;
    padding-left: 0;
    padding-right: 5%;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .package-grid::-webkit-scrollbar {
    display: none;
  }

  .package-card {
    flex: 0 0 85vw;
    width: 85vw;
    min-width: 280px;
    max-width: 360px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    flex-shrink: 0;
    overflow: hidden;
  }

  .manual-cta-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .manual-cta {
    padding: 32px 22px;
  }

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