/* ============================================================
   5Star Projects — stylesheet
   Brand: navy #0E1B3D / #14264F  ·  gold #C8A24A
   ============================================================ */

:root {
  --navy-900: #0E1B3D;
  --navy-800: #14264F;
  --navy-700: #1B335F;
  --gold-500: #C8A24A;
  --gold-400: #D9B868;
  --gold-300: #E7CE8E;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f6f9;
  --wa: #25d366;
  --wa-dark: #1da851;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14,27,61,.06), 0 4px 12px rgba(14,27,61,.05);
  --shadow-md: 0 10px 30px rgba(14,27,61,.10);
  --shadow-lg: 0 24px 60px rgba(14,27,61,.18);
  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; color: var(--navy-900); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: #fff; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 1.06rem; padding: 1.05em 1.7em; }
.btn--block { width: 100%; }
.btn--primary { --btn-bg: var(--navy-900); }
.btn--whatsapp { --btn-bg: var(--wa); }
.btn--whatsapp:hover { background: var(--wa-dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.ico-wa { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-400); margin: 0 0 .9rem;
}
.eyebrow--dark { color: var(--gold-500); }
.gold { color: var(--gold-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: .98; letter-spacing: .02em; }
.brand__text strong { font-size: 1.18rem; font-weight: 800; color: var(--navy-900); }
.brand__text span { font-size: .66rem; font-weight: 700; letter-spacing: .34em; color: var(--gold-500); }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav > a:not(.btn) { font-weight: 600; color: var(--ink); font-size: .98rem; position: relative; padding: 4px 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-500); transition: width .22s var(--ease);
}
.nav > a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: .6em 1.15em; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(200,162,74,.22), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(27,51,95,.6), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.hero__inner { padding: clamp(3.5rem, 8vw, 6.5rem) 22px clamp(3rem, 6vw, 5rem); max-width: 860px; }
.hero .eyebrow { color: var(--gold-300); }
.hero__title { color: #fff; margin-bottom: .5rem; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; margin: 0; padding: 0; }
.hero__trust li { display: flex; flex-direction: column; gap: .15rem; padding-left: 1rem; border-left: 2px solid var(--gold-500); }
.hero__trust strong { font-size: 1.02rem; }
.hero__trust span { font-size: .9rem; color: rgba(255,255,255,.7); }

.hero__tags { border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); }
.hero__tags-track { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; padding: 1rem 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.hero__tags-track .dot { color: var(--gold-400); font-size: .7rem; }
.hero__tags-track span:not(.dot) { color: rgba(255,255,255,.92); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section__head .section__sub { margin-top: .4rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.3rem; }
ol.grid { list-style: none; margin: 0; padding: 0; } /* no default <ol> numbers on the process steps */
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--process { grid-template-columns: repeat(4, 1fr); }
.grid--work { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

/* ---------- Services ---------- */
.service { display: flex; flex-direction: column; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dfe3ec; }
.service__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 14px; margin-bottom: 1.1rem;
  color: var(--navy-800);
  background: linear-gradient(135deg, #fff, #f1f3f8);
  border: 1px solid var(--line);
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { margin-bottom: .35rem; }
.service p { color: var(--muted); margin: 0; }
.service--cta {
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900));
  border: none; color: #fff; justify-content: center;
}
.service--cta h3 { color: #fff; }
.service--cta p { color: rgba(255,255,255,.78); margin-bottom: 1.3rem; }
.service--cta .btn { align-self: flex-start; }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why__intro h2 { margin-top: .2rem; }
.why__intro .section__sub { margin-bottom: 1.8rem; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.why__list li { display: flex; gap: .9rem; }
.why__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--navy-900);
  background: rgba(200,162,74,.16);
}
.why__icon svg { width: 22px; height: 22px; }
.why__list h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.why__list p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Process ---------- */
.grid--process { counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; box-shadow: var(--shadow-sm); }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-weight: 800; font-size: 1.2rem; color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Work tiles (replace with photos) ---------- */
.work-tile {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; color: #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.work-tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,27,61,.05), rgba(14,27,61,.72));
}
.work-tile figcaption {
  position: relative; z-index: 1; padding: 1.1rem 1.2rem; font-weight: 700; font-size: 1.02rem;
}
.work-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Branded placeholder gradients per tile */
.work-tile--a { background-image: linear-gradient(135deg, #1B335F, #0E1B3D); }
.work-tile--b { background-image: linear-gradient(135deg, #1f4a7a, #14264F); }
.work-tile--c { background-image: linear-gradient(135deg, #2a3f6b, #0E1B3D); }
.work-tile--d { background-image: linear-gradient(135deg, #A9842F, #5e4a1c); }
.work-tile--e { background-image: linear-gradient(135deg, #C8A24A, #7a5f23); }
.work-tile--f { background-image: linear-gradient(135deg, #233a63, #0E1B3D); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; }
.cta-band__inner { padding: clamp(2.6rem, 5vw, 4rem) 22px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__intro .section__sub { margin-bottom: 1.8rem; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__ico { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-400); }
.contact__ico svg { width: 22px; height: 22px; }
.contact__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact__list a, .contact__list div > span:last-child { font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.contact__list a:hover { color: var(--navy-700); }

.contact__card {
  background: linear-gradient(160deg, #fff, #f4f6fa);
  border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem;
  box-shadow: var(--shadow-md); text-align: center;
}
.contact__logo { height: 64px; width: auto; margin: 0 auto 1rem; }
.contact__card h3 { font-size: 1.4rem; }
.contact__card p { color: var(--muted); margin-bottom: 1.5rem; }
.contact__call { display: inline-block; margin-top: 1rem; color: var(--muted); font-weight: 600; }
.contact__call:hover { color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding-top: 3.2rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; }
.brand--footer .brand__mark { height: 42px; }
.brand--footer .brand__text strong { color: #fff; }
.footer__brand p { margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a, .footer__contact a { color: rgba(255,255,255,.72); font-size: .96rem; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-400); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.4rem 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }
.footer__bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fab-whatsapp svg { width: 32px; height: 32px; }
.fab-whatsapp::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab-whatsapp:hover { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .fab-whatsapp::after { animation: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--services, .grid--work { grid-template-columns: repeat(2, 1fr); }
  .grid--process { grid-template-columns: repeat(2, 1fr); }
  .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 22px 1.4rem; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav > a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 540px) {
  .grid--services, .grid--work, .grid--process, .why__list { grid-template-columns: 1fr; }
  .hero__trust { gap: 1rem 1.4rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .btn--block, .cta-band .btn { width: 100%; }
  /* full-width, easy-to-tap hero buttons */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .brand__mark { height: 44px; }
  .container { padding-inline: 18px; }
}

/* very small phones */
@media (max-width: 360px) {
  .brand__text strong { font-size: 1.05rem; }
  .brand__text span { letter-spacing: .28em; }
  .hero__trust { flex-direction: column; gap: .9rem; }
}
