/* ── Tisacrest — Apple-esque Design System ── */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 980px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 52px;
  --section-padding: 100px;
  --max-width: 980px;
  --max-width-wide: 1120px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: var(--max-width-wide); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px !important;
  font-weight: 400;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

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

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 17px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 60px) 24px 80px;
  background: var(--bg-alt);
}

.hero-content { max-width: 720px; }

.hero-overline {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero .subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section Common ── */
.section {
  padding: var(--section-padding) 24px;
}
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-overline {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-card { cursor: pointer; display: flex; flex-direction: column; align-items: center; }

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 113, 227, 0.4), 0 0 20px rgba(0, 113, 227, 0.15); }
  50% { box-shadow: 0 0 14px rgba(0, 113, 227, 0.6), 0 0 32px rgba(0, 113, 227, 0.25); }
}

.btn-glow {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: glow-pulse 2s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-card:hover .btn-glow {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.service-price {
  display: inline-block;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Forms ── */
.form-container {
  max-width: 560px;
  margin: 0 auto;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 17px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}

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

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

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

.form-msg {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  min-height: 22px;
}

/* ── Result Sections (Success/Cancel) ── */
.result-section {
  display: none;
  padding: var(--section-padding) 24px;
  text-align: center;
}

.result-section.visible { display: block; }

.result-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.result-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Footer ── */
.site-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer small {
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a:hover { color: var(--accent); }

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

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

.modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-btn { width: 100%; }

.modal-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .hero { min-height: auto; padding: calc(var(--header-height) + 48px) 24px 64px; }
  .hero h1 { font-size: 36px; }
  .hero .subtitle { font-size: 18px; }

  .services-grid { grid-template-columns: 1fr; }

  .service-card { padding: 28px 24px; }

  .form-card { padding: 28px 20px; }

  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
