/* ============================================================
   Savicool — Stylesheet v1.0
   ============================================================ */

:root {
  --blue:         #1B4FD8;
  --blue-dark:    #1340B0;
  --blue-light:   #EEF2FF;
  --stone:        #44403C;
  --stone-light:  #F5F4F2;
  --stone-mid:    #78716C;
  --gold:         #C9A84C;
  --red:          #DC2626;
  --red-light:    #FEE2E2;
  --whatsapp:     #25D366;

  --bg:           #F8F8F7;
  --bg-white:     #FFFFFF;
  --text-main:    #1C1917;
  --text-muted:   #6B6B68;
  --border:       rgba(0,0,0,0.08);
  --border-med:   rgba(0,0,0,0.14);

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --container:    900px;
  --nav-h:        64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text-main); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: opacity 0.18s, background 0.18s; text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: var(--bg-white); color: var(--text-main); border: 0.5px solid var(--border-med); }
.btn--ghost:hover { background: #EEECEA; }
.btn--gold { background: var(--gold); color: #1C1917; font-weight: 600; }
.btn--gold:hover { opacity: 0.88; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { opacity: 0.88; }
.btn--outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }
.btn--sm { padding: 7px 16px; font-size: 13px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg-white); border-bottom: 0.5px solid var(--border); height: var(--nav-h); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo-mark { width: 34px; height: 34px; background: var(--blue); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; flex-shrink: 0; }
.nav__logo-mark--sm { width: 26px; height: 26px; font-size: 11px; }
.nav__logo-name { font-size: 15px; font-weight: 600; color: var(--text-main); letter-spacing: -0.2px; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { font-size: 13px; color: var(--text-muted); transition: color 0.18s; }
.nav__links a:hover, .nav__active { color: var(--text-main) !important; font-weight: 500; }
.nav__contact { display: flex; align-items: center; gap: 1rem; }
.nav__phone { font-size: 13px; font-weight: 500; color: var(--text-main); }
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 100%; height: 1.5px; background: var(--text-main); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* BREADCRUMB */
.breadcrumb { display: inline-flex; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 1.5rem; transition: color 0.18s; }
.breadcrumb:hover { color: var(--text-main); }

/* HERO */
.hero { padding: 4rem 0 3.5rem; }
.hero--inner { padding-top: 2.5rem; }
.hero__pre { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); font-weight: 500; margin-bottom: 0.75rem; }
.page--obras .hero__pre { color: var(--stone); }
.hero__title { font-family: var(--font-serif); font-size: clamp(32px, 5.5vw, 52px); font-weight: 400; line-height: 1.15; letter-spacing: -0.5px; color: var(--text-main); margin-bottom: 1.25rem; }
.hero__title em { color: var(--blue); font-style: italic; }
.page--obras .hero__title em { color: var(--stone); }
.hero__desc { font-size: 16px; color: var(--text-muted); max-width: 580px; margin-bottom: 2rem; line-height: 1.75; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* SELECTOR (index) */
.selector { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 3rem; }
.selector__card { display: flex; flex-direction: column; background: var(--bg-white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; cursor: pointer; transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s; text-decoration: none; color: inherit; }
.selector__card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.selector__card--blue:hover { border-color: var(--blue); }
.selector__card--stone:hover { border-color: var(--stone); }
.selector__icon { width: 64px; height: 64px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.selector__card--blue .selector__icon { background: var(--blue-light); color: var(--blue); }
.selector__card--stone .selector__icon { background: var(--stone-light); color: var(--stone); }
.selector__tag { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.selector__body { flex: 1; }
.selector__title { font-family: var(--font-serif); font-size: 26px; font-weight: 400; color: var(--text-main); margin-bottom: 10px; line-height: 1.2; }
.selector__desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.selector__list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.75rem; }
.selector__list li { font-size: 13px; color: var(--text-muted); padding-left: 14px; position: relative; }
.selector__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.selector__card--stone .selector__list li::before { background: var(--stone); }
.selector__cta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); margin-top: auto; transition: gap 0.18s; }
.selector__card--stone .selector__cta { color: var(--stone); }
.selector__card:hover .selector__cta { gap: 10px; }

/* TRUST BAR */
.trust { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--bg-white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; flex-wrap: wrap; }
.trust__item { padding: 1.25rem 1.5rem; text-align: center; flex: 1; min-width: 120px; }
.trust__num { display: block; font-family: var(--font-serif); font-size: 24px; color: var(--blue); line-height: 1; margin-bottom: 3px; }
.trust__label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.trust__sep { width: 0.5px; height: 40px; background: var(--border); }

/* CONTACT BAR */
.contact-bar { background: var(--blue); padding: 2rem 0; }
.contact-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-bar__title { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 2px; }
.contact-bar__sub { font-size: 13px; color: rgba(255,255,255,0.7); }
.contact-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* SECTION */
.section { padding: 4rem 0; }
.section--bg { background: var(--bg-white); }
.section__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); font-weight: 500; margin-bottom: 6px; }
.page--obras .section__label { color: var(--stone-mid); }
.section__title { font-family: var(--font-serif); font-size: clamp(22px, 3.5vw, 32px); font-weight: 400; color: var(--text-main); margin-bottom: 2rem; }

/* SERVICES GRID */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.service-card { background: var(--bg-white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color 0.2s, transform 0.18s; }
.section--bg .service-card { background: var(--bg); }
.service-card:hover { border-color: var(--border-med); transform: translateY(-2px); }
.service-card--highlight { border-color: var(--red); }
.service-card__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.service-card__icon--blue { background: var(--blue-light); color: var(--blue); }
.service-card__icon--stone { background: var(--stone-light); color: var(--stone); }
.service-card__icon--red { background: var(--red-light); color: var(--red); }
.service-card__title { font-size: 15px; font-weight: 500; color: var(--text-main); margin-bottom: 8px; }
.service-card__desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.service-card__link { font-size: 12px; font-weight: 500; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; transition: gap 0.18s; }
.page--obras .service-card__link { color: var(--stone); }
.service-card__link--urgent { color: var(--red); }
.service-card:hover .service-card__link { gap: 7px; }

/* PILLARS */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pillar { background: var(--bg-white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.section--bg .pillar { background: var(--bg); }
.pillar__num { font-family: var(--font-serif); font-size: 28px; color: var(--blue); opacity: 0.3; line-height: 1; margin-bottom: 0.75rem; }
.page--obras .pillar__num { color: var(--stone); }
.pillar__title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.pillar__desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* CTA SECTION */
.cta-section { padding: 0 0 4rem; }
.cta-box { background: var(--blue); border-radius: var(--radius-lg); padding: 3.5rem 2rem; text-align: center; }
.cta-box--stone { background: var(--stone); }
.cta-box__title { font-family: var(--font-serif); font-size: clamp(22px, 3.5vw, 30px); font-weight: 400; color: #fff; margin-bottom: 0.75rem; }
.cta-box__desc { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 2rem; line-height: 1.75; }
.cta-box__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* HERO INDEX */
.hero .container { text-align: center; }
.hero .hero__desc { margin-left: auto; margin-right: auto; }
.hero .hero__actions { justify-content: center; }

/* FOOTER */
.footer { border-top: 0.5px solid var(--border); background: var(--bg-white); padding-top: 2rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 1.5rem; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.footer__sub { font-size: 12px; color: var(--text-muted); }
.footer__links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; justify-content: center; }
.footer__links a { font-size: 13px; color: var(--text-muted); transition: color 0.18s; }
.footer__links a:hover { color: var(--text-main); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-top: 0.5px solid var(--border); font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem; }
.footer__bottom nav { display: flex; gap: 1rem; }
.footer__bottom nav a { font-size: 12px; color: var(--text-muted); transition: color 0.18s; }
.footer__bottom nav a:hover { color: var(--text-main); }

/* RESPONSIVE */
@media (max-width: 680px) {
  .selector { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__links.is-open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-white); border-bottom: 0.5px solid var(--border); padding: 1.25rem 1.5rem; gap: 1rem; z-index: 99; }
  .nav__burger { display: flex; }
  .nav__contact .nav__phone { display: none; }
  .trust { flex-direction: column; }
  .trust__sep { width: 80%; height: 0.5px; }
  .contact-bar__inner { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
