/* ============================================
   Via Domus — Design System & Base Styles
   Light theme · Teal gradient · Professional
   ============================================ */

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

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --border: rgba(0,0,0,0.11);
  --text: rgba(0,0,0,0.678);
  --text-dark: #296A6E;
  --muted: rgba(0,0,0,0.51);
  --teal: #0891b2;
  --teal-light: #D1E4E6;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --shadow: 0 10px 25px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
  --max-w: 70rem;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.875;
  font-weight: 300;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

h1, h2, h3, h4 { font-family: 'Geologica', sans-serif; color: var(--text-dark); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); font-weight: 500; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 1.875rem; height: 3.75rem; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 1em; font-weight: 400;
  transition: transform 0.125s ease, background-color 0.125s ease; white-space: nowrap;
}
.btn:hover { transform: scale(1.04); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0e7490; color: #fff; }
.btn-outline { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover { background: #f5f5f5; }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); display: flex; align-items: center; transition: var(--transition); background: transparent; }
.nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: 'Geologica', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text-dark); }
.nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: var(--text); transition: color var(--transition); }
.nav-links a:hover { color: var(--teal); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; z-index: 1001; }
.nav-toggle span { display: block; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--surface); flex-direction: column; align-items: flex-start; padding: 100px 32px 32px; gap: 24px; transition: var(--transition); border-left: 1px solid var(--border); box-shadow: -4px 0 20px rgba(0,0,0,0.1); z-index: 999; }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: var(--transition); z-index: 998; }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
}

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.722) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 8rem 1.5rem 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; width: 100%; }
.hero-text h1 { margin-bottom: 1.5rem; text-shadow: 0 0 2rem #fff; }
.hero-text p { margin-bottom: 2rem; line-height: 1.875; }
.hero-image { display: flex; justify-content: center; }
.hero-image img { max-width: 100%; border-radius: var(--radius); }
@media (max-width: 768px) { .hero-content { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; gap: 2rem; } .hero-image { order: -1; } }

section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; align-items: flex-start; gap: 1rem; transition: transform 0.125s ease, border-color 0.125s ease; }
.service-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.service-icon { width: 48px; height: 48px; background: rgba(8,145,178,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--teal); }
.service-icon svg { width: 22px; height: 22px; fill: currentColor; }
.service-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; line-height: 1.6; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; border: 1px dashed var(--border); padding: 1.5rem; }
.about-image img { width: 100%; border-radius: var(--radius-sm); }
.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; }
.about-list { margin-top: 1.5rem; }
.about-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 1em; line-height: 1.875; }
.about-list li::before { content: '✓'; color: var(--teal); font-weight: bold; flex-shrink: 0; margin-top: 0.3rem; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Parallax */
.parallax-section { position: relative; min-height: 20rem; display: flex; align-items: center; background-attachment: fixed; background-size: cover; background-position: center; }
.parallax-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,105,112,0.529) 0%, #FFFFFF 100%); z-index: 1; }
.parallax-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 5rem 1.5rem; width: 100%; }
@media (max-width: 768px) { .parallax-section { background-attachment: scroll; min-height: 15rem; } }

/* Forms */
.booking-section { background: linear-gradient(135deg, rgba(95,135,148,0.8) 0%, rgba(24,107,97,0.722) 82%); border-radius: var(--radius); padding: 3rem; color: #fff; }
.booking-section h2 { color: #fff; margin-bottom: 0.5rem; }
.booking-section > p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-dark); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 1em; font-weight: 300; transition: border-color var(--transition); height: 3.5rem; line-height: 3.5rem; }
.form-textarea { height: auto; line-height: 1.875; padding: 1rem; min-height: 8rem; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px rgba(8,145,178,0.2); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 35px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; font-size: 0.9rem; margin-bottom: 1rem; }
.form-check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--teal); }
.form-check-card { background: #f9f9f9; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 1rem; }
.form-submit { width: 100%; padding: 1rem; background: var(--teal); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 1em; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background var(--transition); margin-top: 0.5rem; }
.form-submit:hover { background: #0e7490; }
.form-submit:disabled { background: #ccc; cursor: not-allowed; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; font-size: 1em; }
.contact-icon { width: 40px; height: 40px; background: rgba(8,145,178,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; }
.footer-col h4 { font-family: 'Geologica', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text); font-size: 0.9rem; padding: 0.25rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; } }

/* WhatsApp */
.whatsapp-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); transition: transform 0.25s ease; }
.whatsapp-fab:hover { transform: scale(1.1); color: #fff; }
.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Legal */
.legal-page { padding: 8rem 0 4rem; }
.legal-content { max-width: 50rem; margin: 0 auto; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--teal); }
.legal-content p { margin-bottom: 1rem; line-height: 1.875; }
.legal-content ul { margin: 0.75rem 0 1rem 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; padding-left: 0.5rem; }
.back-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; color: var(--teal); font-weight: 500; transition: gap 0.25s ease; }
.back-btn:hover { gap: 0.75rem; color: var(--teal); }
.back-btn svg { width: 18px; height: 18px; fill: currentColor; }
