/*
 * Miami Pro Shop: one landing page, English, Spanish and Portuguese.
 * Colors come from the logo: cyan (the sun dome and "Pro Shop") and violet
 * ("Miami" and the ring), on a "Miami night" dark for the header, hero, steps
 * and footer, where the logo's transparent inside reads as intended.
 * Phone first: the base rules are for phones; wider screens are added in the
 * min-width blocks at the end. "Reduce motion" turns off smooth scrolling,
 * hover movement and the floating brand chips.
 */

/* ==================== Tokens ==================== */
:root {
    --night: #160d2b;         /* header, hero, steps, footer */
    --night-700: #21143d;
    --night-600: #2d1b52;
    --cyan: #42e0e3;          /* logo: sun dome, "Pro Shop" */
    --cyan-600: #1cc4c8;
    --cyan-100: #d9f8f9;
    --cyan-50: #f1fcfc;
    --teal-700: #00787b;      /* cyan as text on white */
    --violet: #d064f2;        /* logo: "Miami", the ring */
    --violet-700: #9a34c4;    /* violet as text on white */
    --violet-100: #f5e4fc;
    --ink: #1d1530;
    --muted: #5e5872;
    --line: #e7e2f0;
    --soft: #f7f4fb;
    --error: #c62828;
    --success: #1f7a3d;
    --radius: 18px;
    --shadow: 0 1px 2px rgb(22 13 43 / 6%), 0 8px 24px rgb(22 13 43 / 8%);
    --shadow-lg: 0 2px 6px rgb(22 13 43 / 8%), 0 24px 48px rgb(22 13 43 / 14%);
    --gutter: 16px;
    --header: 68px;
    --display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ==================== Base ==================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
h1, h2, h3 { margin: 0; color: var(--night); line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h3 { font: 600 19px/1.3 var(--display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--violet-700); }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 8px; background: var(--cyan); color: var(--night); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--night); }
.icon { flex: none; }

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    border: 2px solid transparent; border-radius: 999px;
    font: 700 16px/1.2 var(--sans); text-align: center; text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn--primary { background: var(--cyan); color: var(--night); box-shadow: 0 6px 18px rgb(66 224 227 / 30%); }
.btn--primary:hover { background: var(--violet); color: var(--night); box-shadow: 0 6px 18px rgb(208 100 242 / 35%); }
.btn--primary:disabled { background: #a9ecee; box-shadow: none; cursor: default; }
/* On the dark hero: an outlined white button. */
.btn--ghost { border-color: rgb(255 255 255 / 40%); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: #fff; color: var(--night); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
    .btn--primary:not(:disabled):hover { transform: translateY(-1px); }
}

/* ==================== Header ==================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(22 13 43 / 94%);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__logo { width: 44px; height: 44px; }
.brand__text { display: grid; min-width: 0; line-height: 1.15; }
.brand__name { font: 700 17px/1.15 var(--display); white-space: nowrap; }
.brand__tag { overflow: hidden; color: rgb(255 255 255 / 66%); font-size: 12px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; text-overflow: ellipsis; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: rgb(255 255 255 / 82%); font-size: 15.5px; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { background: rgb(255 255 255 / 8%); color: #fff; }

/* EN | ES | PT: three links styled as a switch; the current language is filled. */
.lang-toggle {
    display: flex; flex: none; padding: 3px;
    border: 1px solid rgb(255 255 255 / 16%); border-radius: 999px; background: rgb(255 255 255 / 6%);
}
.lang-toggle a {
    display: grid; place-items: center; min-width: 36px; height: 32px; padding: 0 7px;
    border-radius: 999px; color: rgb(255 255 255 / 72%); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
}
.lang-toggle a:hover { color: #fff; }
.lang-toggle a[aria-current] { background: var(--cyan); color: var(--night); }

.header-cta { display: none; }

/* ==================== Shared section parts ==================== */
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section__head h2 { font-size: clamp(29px, 6vw, 42px); }
.section__head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.kicker, .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    color: var(--violet-700); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* ==================== Hero ==================== */
.hero {
    position: relative; overflow: hidden;
    padding: 36px 0 56px;
    background:
        radial-gradient(55% 55% at 88% 18%, rgb(208 100 242 / 30%), transparent 70%),
        radial-gradient(50% 50% at 6% 92%, rgb(66 224 227 / 18%), transparent 70%),
        linear-gradient(180deg, var(--night) 0%, #1e1040 100%);
    color: #fff;
}
.eyebrow {
    padding: 6px 14px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 999px; background: rgb(255 255 255 / 7%);
    color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none;
}
.eyebrow .icon { color: var(--cyan); }
.hero__inner { display: grid; gap: 40px; }
.hero h1 { color: #fff; font-size: clamp(36px, 9.4vw, 58px); line-height: 1.07; }
.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero__text { max-width: 560px; margin-top: 18px; color: rgb(255 255 255 / 80%); font-size: 18.5px; }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__trust { display: grid; gap: 8px; margin-top: 26px; font-size: 15.5px; font-weight: 500; }
.hero__trust li { display: flex; align-items: center; gap: 10px; }
.hero__trust .icon { color: var(--cyan); }

/* The round logo with a glow, three brand logos floating around it and the
   categories in a pill underneath. */
.hero__media { position: relative; width: 100%; max-width: 360px; margin: 0 auto; padding-bottom: 44px; }
.hero__badge {
    width: 78%; margin: 0 auto; border-radius: 50%;
    background: radial-gradient(circle, rgb(66 224 227 / 10%), transparent 70%);
    box-shadow: 0 0 90px rgb(208 100 242 / 30%);
}
.hero__badge img { width: 100%; height: auto; }
.hero__chip {
    position: absolute; padding: 4px 8px; border-radius: 14px; background: #fff;
    box-shadow: 0 12px 30px rgb(0 0 0 / 35%);
}
.hero__chip img { width: 84px; height: auto; }
/* Placed on the ring's empty corners, never over "Miami Pro Shop". */
.hero__chip--1 { top: 4%; left: -2%; }
.hero__chip--2 { top: 44%; right: -4%; }
.hero__chip--3 { bottom: 20%; left: -2%; }   /* above the categories pill */
.hero__tag {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    padding: 8px 18px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 999px;
    background: rgb(255 255 255 / 8%); color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
    .hero__chip { animation: float 6s ease-in-out infinite; }
    .hero__chip--2 { animation-delay: -2s; }
    .hero__chip--3 { animation-delay: -4s; }
}
@keyframes float {
    50% { transform: translateY(-8px); }
}

/* ==================== Categories ==================== */
.categories { display: grid; gap: 24px; max-width: 560px; margin: 0 auto; }
.category {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.category__photo { aspect-ratio: 3 / 2; background: var(--line); }
.category__photo img { width: 100%; height: 100%; object-fit: cover; }
.category__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 22px 24px; }
.category__sub { color: var(--teal-700); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category__body h3 { font-size: 23px; }
.category__text { color: var(--muted); flex: 1; }
.category__brands {
    margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line);
    color: var(--night); font-size: 14.5px; font-weight: 600;
}
.category__cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; font-weight: 700; text-decoration: none; }
.category__cta:hover { text-decoration: underline; }

/* ==================== Brands ==================== */
.brand-groups { display: grid; gap: 32px; }
.brand-group__title {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
    color: var(--muted); font: 700 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}
.brand-group__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* Flex, not grid, so a short row (Marine has 4 brands) is centered. */
.brand-grid { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-tile {
    display: grid; place-items: center; flex: 0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols));
    padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.brand-tile:hover { border-color: var(--cyan-600); box-shadow: var(--shadow); }
.brand-tile img { width: 100%; max-width: 160px; height: auto; }

/* ==================== Benefits ==================== */
.benefits__list { display: grid; gap: 16px; }
.benefit {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-content: start;
    padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.benefit__icon {
    grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px;
    border-radius: 14px; background: var(--cyan-100); color: var(--teal-700);
}
.benefit:nth-child(even) .benefit__icon { background: var(--violet-100); color: var(--violet-700); }
.benefit p { color: var(--muted); font-size: 15.5px; }

/* ==================== How it works (dark band) ==================== */
.section--night {
    background:
        radial-gradient(50% 70% at 100% 100%, rgb(208 100 242 / 20%), transparent 70%),
        radial-gradient(40% 60% at 0% 0%, rgb(66 224 227 / 12%), transparent 70%),
        var(--night);
    color: #fff;
}
.section--night h2, .section--night h3 { color: #fff; }
.section--night .kicker { color: var(--cyan); }
.steps { display: grid; gap: 16px; }
.step {
    position: relative; padding: 26px 22px 24px;
    border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--radius); background: rgb(255 255 255 / 5%);
}
.step__num {
    position: absolute; top: 14px; right: 20px;
    background: linear-gradient(180deg, var(--cyan), var(--violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font: 700 46px/1 var(--display);
}
.step__icon {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
    border-radius: 14px; background: rgb(66 224 227 / 14%); color: var(--cyan);
}
.step p { margin-top: 6px; color: rgb(255 255 255 / 76%); font-size: 15.5px; }
.steps__cta { display: flex; justify-content: center; margin-top: 36px; }

/* ==================== Contact ==================== */
.section--contact { background: linear-gradient(180deg, var(--cyan-50), #fff 70%); }
.contact { display: grid; gap: 32px; }
.contact__intro > p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.contact-list { display: grid; gap: 10px; margin-top: 26px; }
.contact-list a {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    color: var(--night); font-size: 17px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
    transition: border-color .2s, box-shadow .2s;
}
.contact-list a:hover { border-color: var(--cyan-600); box-shadow: var(--shadow); color: var(--night); }
.contact-list small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.contact-list__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--night); color: var(--cyan); }
.address-card {
    margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; color: var(--muted); font-size: 15px;
}
.address-card__title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--night); font-weight: 700; }
.address-card__title .icon { color: var(--violet-700); }
.address-card__reach { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.address-card__reach .icon { color: var(--teal-700); }

.form-card {
    padding: 24px 18px; border: 1px solid var(--line); border-radius: 22px;
    background: #fff; box-shadow: var(--shadow-lg);
}
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--night); font-size: 15px; font-weight: 700; }
.req { color: var(--violet-700); }
.field input,
.field textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #cfc8dc; border-radius: 12px; background: #fff;
    color: var(--ink); font: 16px/1.4 var(--sans);
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a849a; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--cyan-600); outline: none; box-shadow: 0 0 0 4px rgb(66 224 227 / 25%); }
.field__error { color: var(--error); font-size: 14px; }
.field__error:empty { display: none; }
.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field--turnstile { min-height: 65px; }
.form__note { color: var(--muted); font-size: 13.5px; text-align: center; }
.form-status { font-size: 16px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success {
    padding: 14px 16px; border-radius: 12px; background: #e3f6ea; color: var(--success);
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ==================== 404 ==================== */
.not-found { text-align: center; }
.not-found .container { max-width: 640px; }
.not-found__code {
    background: linear-gradient(90deg, var(--cyan-600), var(--violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font: 800 96px/1 var(--display);
}
.not-found h1 { margin-top: 8px; font-size: 40px; }
.not-found p:not(.not-found__code) { margin: 14px 0 28px; color: var(--muted); font-size: 18px; }

/* ==================== Footer ==================== */
.site-footer { padding: 48px 0 28px; background: var(--night); color: rgb(255 255 255 / 78%); font-size: 15.5px; }
.site-footer__inner { display: grid; gap: 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img { flex: none; width: 64px; height: 64px; }
.site-footer__name { color: #fff; font: 700 19px/1.3 var(--display); }
.site-footer__text { max-width: 380px; margin-top: 4px; }
.site-footer h2 { margin-bottom: 12px; color: #fff; font: 700 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.site-footer__contact ul { display: grid; gap: 10px; }
.site-footer__contact a,
.site-footer__address { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.site-footer__contact a:hover { color: var(--cyan); }
.site-footer__contact .icon { color: var(--cyan); flex: none; }
.site-footer__legal {
    display: grid; gap: 4px; margin-top: 36px; padding-top: 22px;
    border-top: 1px solid rgb(255 255 255 / 14%); font-size: 13.5px;
}

/* ==================== Phone action bar ==================== */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 96%); box-shadow: 0 -6px 20px rgb(22 13 43 / 14%);
    transition: transform .25s;
}
.action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
    border-radius: 12px; font-size: 13.5px; font-weight: 700; line-height: 1.1; text-decoration: none;
}
.action-bar__email { background: var(--night); color: #fff; }
.action-bar__cta { background: var(--cyan); color: var(--night); }
.action-bar a:hover { filter: brightness(1.08); }
.action-bar__email:hover { color: #fff; }
.action-bar__cta:hover { color: var(--night); }
/* Hidden while the quote form is on screen (main.js), so it never covers
   the form's button or the keyboard. */
.action-bar.is-hidden { transform: translateY(110%); }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
    .action-bar { transition: none; }
}

/* ==================== Narrowest phones (320–429 px) ==================== */
/* The tagline needs ~430 px next to the logo and the EN/ES/PT toggle (the
   Portuguese one is the longest). */
@media (max-width: 429px) {
    .brand__tag { display: none; }
}
@media (max-width: 359px) {
    .site-header__inner { gap: 8px; }
    .brand { gap: 8px; }
    .brand__logo { width: 38px; height: 38px; }
    .brand__name { font-size: 15px; white-space: normal; }   /* wraps only if it must */
    .lang-toggle a { min-width: 32px; padding: 0 5px; }
    .btn--lg { padding-inline: 16px; }
    .hero__tag { font-size: 13px; padding-inline: 14px; }
    /* Smaller chips, kept clear of "Miami" and "Pro Shop". */
    .hero__chip { padding: 3px 6px; border-radius: 10px; }
    .hero__chip img { width: 64px; }
    .hero__chip--2 { top: 16%; }
    .hero__chip--3 { bottom: 24%; }
}

/* ==================== Wider screens ==================== */
@media (min-width: 480px) {
    .action-bar a { flex-direction: row; gap: 8px; min-height: 48px; font-size: 15px; }
    .hero__media { max-width: 400px; }
    .hero__chip img { width: 100px; }
}

@media (min-width: 560px) {
    :root { --gutter: 24px; }
    .hero__actions { display: flex; flex-wrap: wrap; }
    .benefits__list { grid-template-columns: 1fr 1fr; }
    .benefit { grid-template-columns: 1fr; }
    .benefit__icon { grid-row: auto; margin-bottom: 10px; }
    .form__row { grid-template-columns: 1fr 1fr; }
    .form-card { padding: 32px 30px; }
}

@media (min-width: 760px) {
    :root { --header: 76px; }
    .brand-tile { padding: 10px; border-radius: 14px; }
    body { padding-bottom: 0; }
    .action-bar { display: none; }
    .section { padding: 88px 0; }
    .brand__logo { width: 48px; height: 48px; }
    .header-cta { display: inline-flex; }
    .brand-grid { --cols: 4; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .site-footer__inner { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

@media (min-width: 900px) {
    .categories { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 24px; }
}

@media (min-width: 960px) {
    .hero { padding: 64px 0 88px; }
    .hero__inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
    .hero__media { max-width: 460px; }
    .hero__chip { padding: 6px 10px; }
    .hero__chip img { width: 112px; }
    .hero__chip--1 { left: -6%; }
    .hero__chip--2 { right: -10%; }
    .hero__chip--3 { bottom: 7%; left: -8%; }
    .benefits__list { grid-template-columns: repeat(4, 1fr); }
    .contact { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
    .contact__intro { position: sticky; top: calc(var(--header) + 32px); }
    .form-card { padding: 40px; }
}

@media (min-width: 1100px) {
    .site-nav { display: block; margin-right: 8px; }
    .site-header__inner { gap: 14px; }
    .brand-grid { --cols: 6; }
}
