/*
  © 2025 Jose Ramos-Falcon
  All rights reserved.
  This stylesheet is proprietary and protected under copyright law.
  Do not copy, reproduce, or distribute without explicit written permission.
*/

@font-face {
  font-family: 'GreatVibes-Regular';
  src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #cdd0d3;
  --bg-span: #000;
  --surface: #ffffff;
  --text: #243029;
  --muted: #000;
  --brand: #3A66D2;
  --brand-2: #3A66D2;
  --border: #e3e7e5;
  --shadow: 0 8px 24px rgba(24, 32, 28, 0.08);
}

[data-theme="dark"] {
  --bg: #0f1412;
  --bg-span: #fff;
  --surface: #141a17;
  --text: #e8eee9;
  --muted: #81a4ff;
  --brand: #3A66D2;
  --brand-2: #3A66D2;
  --border: #243029;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
}

img { 
  max-width: 100%; 
  display: block; 
  border-radius: 12px; 

}

.container { 
  width: min(1100px, 92%); 
  margin: 0 auto; 
}

.skip-link {
  position: absolute; 
  left: -999px; 
  top: -999px;
}
.skip-link:focus {
  left: 8px; 
  top: 8px; 
  z-index: 1000; 
  background: var(--surface);
  padding: 8px 12px; 
  border-radius: 6px; 
  border: 1px solid var(--border);
}

.site-header {
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
img.logo { width: 55px;}
.logo { color: var(--brand); }
.brand-name {
  font-family: "GreatVibes-Regular", cursive;
  font-size: 2rem; 
  line-height: 1.79rem; 
  display: block; 
}
.brand-tagline { display: block; color: var(--muted); font-size: 0.9rem; }

.nav-toggle { display: none; }
.nav-list { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
.nav a { text-decoration: none; color: var(--text); padding: 6px 8px; border-radius: 6px; }
.nav a:hover { background: var(--surface); }

button#menuToggle.menu-toggle {
  display: none;
}
.theme-toggle {
  border: 1px solid var(--border); 
  background: var(--surface); 
  color: var(--text);
  padding: 6px 10px; 
  border-radius: 8px; 
  box-shadow: var(--shadow);
}

.hero { position: relative; }
.hero-media img {
  scale: 16 / 4; 
  width: 100%; 
  height: clamp(520px, 80dvh, 620px); 
  object-fit: cover;
  border-radius: 0; 
}
.hero-content {
  position: relative; margin-top: -80px; background: color-mix(in oklab, var(--surface) 85%, transparent);
  padding: 24px; border-radius: 16px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
}
.btn-primary { background: var(--brand); color: #fff; border-color: color-mix(in oklab, var(--brand) 80%, #0000); }
.btn-secondary { background: var(--surface); color: var(--text); }

.section { padding: 56px 0; }
.section-alt { background: color-mix(in oklab, var(--surface) 70%, var(--bg)); }
.section-header h2 { margin: 0 0 8px; font-size: 1.6rem; }
.section-header p { color: var(--muted); margin: 0 0 20px; }

.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.step-index {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-2); color: #fff; font-weight: 600;
}

.facility-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.facility-grid figure { margin: 0; }
.facility-grid figcaption { color: var(--muted); margin-top: 8px; text-align: center; }

.slider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.slides {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow: hidden; scroll-behavior: smooth;
}
.slide { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.slider-prev, .slider-next {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}

.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px;
}
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px;
}
div.info-block {
  margin-bottom: 1rem;
}
.form-field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  color: var(--text);
  appearance: none; /* removes default browser styling */
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23243029' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23e8eee9' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

.field-hint { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.info-block h3 { margin: 0 0 6px; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-brand { font-family: "GreatVibes-Regular", cursive; font-size: 2rem;}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { color: var(--muted); }

ul.footer-links li a {
  text-decoration: none;
  color: var(--text);
}

.footer-legal {
  text-align: center;
}



@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-header .container { grid-template-columns: 1fr auto auto; }
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
  .hero-content { margin-top: -40px; }
  .hero-media img {
    scale: 16 / 4; 
    width: 100%; 
    height: clamp(220px, 50dvh, 420px); 
    object-fit: cover;
    border-radius: 0; 
  }
  /*.nav-toggle { display: inline-block; }
  .nav-list { display: none; position: absolute; right: 16px; top: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; box-shadow: var(--shadow); }
  .nav-list.show { display: grid; gap: 8px; }*/
  .nav {
    display: none;
    flex-direction: column;
    background: var(--bg);
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 1rem;
  }
  img.logo {
    margin-left: -1rem;
  }
  strong.brand-name {
    font-size: 1.55rem;
    width: 100%;
  }
  button#menuToggle.menu-toggle {
    top: calc(env(safe-area-inset-top) + 10px);
    display: flex;
    left: 20px;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 22px;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  /* Hamburger bars */
  button#menuToggle.menu-toggle {
    background-color: var(--bg);
  }
  button#menuToggle.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 4px;
    background-color: var(--bg-span); /* visible on dark background */
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease;
    transform-origin: center;
  }
  /* Transform to X when active */
  /* Perfect iPhone-safe hamburger → X */
  button#menuToggle.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
  }

  button#menuToggle.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  button#menuToggle.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }



  .nav.active { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul li { margin: 1rem 2rem; }
  .menu-toggle { display: block; margin-left: 2px; }

  .theme-toggle {
    margin: 0rem;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .footer-brand { font-size: 1.75rem;}

  ul.footer-links li a {
    text-decoration: none;
    color: var(--text);
  }
  .info-block#phone-contact {
    text-decoration: none;
    color: var(--text);
  }
}
