/* Napoli Subtitled: site styles.
   Palette from the logo: navy #0E2747 / #17406B, gold #F2B33D, sea blue #4F8FC0.
   The cookie banner, newsletter, footer, contact and legal-page blocks come from the
   TeeGauge platform; the header and hero below are specific to this site. */

:root {
    --color-bg: #f5f6f8;
    --color-surface: #ffffff;
    --color-text: #1b2430;
    --color-text-muted: #5b6472;
    --color-primary: #0e2747;
    --color-primary-dark: #091b33;
    --color-primary-light: #e8eef6;
    --color-accent: #f2b33d;
    --color-accent-dark: #d99a22;
    --color-border: #dfe3ea;
    --color-info: #17406b;
    --color-info-dark: #0e2747;
    --color-cta: #17406b;
    --color-cta-dark: #0e2747;
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius: 12px;
    --content-width: 1100px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
}

h1, h2, h3 {
    line-height: 1.2;
    color: var(--color-text);
}

a {
    color: var(--color-info);
}

a:hover {
    color: var(--color-primary-dark);
}

.site-content {
    flex: 1 0 auto;
}

/* Header: the logo file already carries the navy background, so the bar matches it */
.site-header {
    background: var(--color-primary);
}

.site-header__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.site-header__brand {
    display: inline-block;
    line-height: 0;
}

.site-header__logo {
    height: 52px;
    width: auto;
}

/* Home page hero */
.hero {
    background: linear-gradient(180deg, var(--color-primary) 0%, #17406b 100%);
    color: #ffffff;
    text-align: center;
    padding: 3.5rem 1.5rem 7rem;
}

.hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.hero__mark {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    margin: 1.5rem 0 0.5rem;
}

.hero__tagline {
    color: var(--color-accent);
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.hero__description {
    color: #dbe5f2;
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 640px;
}

.home-signup {
    max-width: 520px;
    margin: -4.5rem auto 3.5rem;
    padding: 0 1.5rem;
}

.home-signup .newsletter-signup {
    border: 1px solid var(--color-border);
}

/* Footer: the TeeGauge footer blocks come next; the disclaimer is dropped */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.05s ease, background 0.15s ease;
}

.btn--primary {
    background: var(--color-accent);
    color: #1f2937;
}

.btn--primary:hover {
    background: var(--color-accent-dark);
    color: #1f2937;
}

.messages {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    list-style: none;
}

.messages__item {
    padding: 0.8rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary);
}

.messages__item--error {
    background: #fdeceb;
    color: #8a2c22;
    border-color: #e6a49c;
}

.btn:active {
    transform: scale(0.98);
}

.help-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.help-callout__text {
    margin: 0;
    color: var(--color-primary-dark);
    font-size: 1rem;
    max-width: 480px;
}

.help-callout__text strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.help-callout .btn--primary {
    flex-shrink: 0;
}

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.legal-page__body p {
    margin: 0 0 1rem;
}

.contact-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.contact-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-page__intro {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.contact-form__field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form__required {
    color: #b91c1c;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.contact-form .errorlist {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
    color: #b91c1c;
    font-size: 0.85rem;
}

.contact-form button {
    margin-top: 0.5rem;
}

.contact-thanks {
    max-width: 560px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.contact-thanks p {
    color: var(--color-text-muted);
    margin: 1rem 0 2rem;
}

.newsletter-signup {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.newsletter-signup__header {
    background: var(--color-info);
    color: #fff;
    padding: 1rem 1.25rem;
}

.newsletter-signup__header h2,
.newsletter-signup__header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #fff;
}

.newsletter-signup__body {
    padding: 1.25rem;
}

.newsletter-signup__success {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin: 0 0 0.9rem;
}

.newsletter-signup__field {
    position: relative;
    margin-bottom: 0.4rem;
}

.newsletter-signup__field input[type="email"] {
    width: 100%;
    padding: 0.65rem 1.6rem 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
}

.newsletter-signup__field input[type="email"]:focus {
    outline: 2px solid var(--color-info);
    outline-offset: 1px;
}

.newsletter-signup__field .newsletter-signup__required {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
}

.newsletter-signup__required {
    color: #b91c1c;
}

.newsletter-signup__errors {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    color: #b91c1c;
    font-size: 0.78rem;
}

.newsletter-signup__errors:empty {
    display: none;
}

.newsletter-signup__field.newsletter-signup--invalid input[type="email"] {
    border-color: #b91c1c;
}

.newsletter-signup__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.newsletter-signup__checkbox input[type="checkbox"] {
    accent-color: var(--color-info);
    width: 1.05em;
    height: 1.05em;
    margin-top: 0.15em;
    flex-shrink: 0;
}

.newsletter-signup__checkbox.newsletter-signup--invalid input[type="checkbox"] {
    outline: 2px solid #b91c1c;
    outline-offset: 1px;
}

.newsletter-signup__submit {
    display: block;
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 999px;
    background: var(--color-cta);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.newsletter-signup__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-signup__submit:hover {
    background: var(--color-cta-dark);
}

.newsletter-signup__legal {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.newsletter-signup__legal a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.site-footer {
    background: var(--color-primary-dark);
    color: #cfd9e8;
    margin-top: auto;
}

.site-footer__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.site-footer__disclaimer {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.site-footer__disclaimer a {
    color: #fff;
    text-decoration: underline;
}

.site-footer__links {
    font-size: 0.85rem;
    margin: 0;
}

.site-footer__links a {
    color: #fff;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.site-footer__social {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.site-footer__social a {
    display: inline-flex;
    color: #fff;
}

.site-footer__social a:hover {
    color: #cfd9e8;
}

.site-footer__social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

.cookie-consent.is-hidden {
    display: none;
}

.cookie-consent__banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent__banner[hidden],
.cookie-consent__panel[hidden] {
    display: none;
}

.cookie-consent__banner-text h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.cookie-consent__banner-text p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.cookie-consent__banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-consent__btn-manage,
.cookie-consent__btn-decline {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.cookie-consent__btn-manage:hover,
.cookie-consent__btn-decline:hover {
    background: var(--color-bg);
}

.cookie-consent__panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.cookie-consent__panel > p {
    margin: 0 0 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.cookie-consent__category {
    padding: 0.9rem 0;
    border-top: 1px solid var(--color-border);
}

.cookie-consent__category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent__category p {
    margin: 0.4rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.cookie-consent__always-on {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}

.cookie-consent__switch {
    position: relative;
    display: inline-block;
    width: 2.4rem;
    height: 1.4rem;
    flex-shrink: 0;
}

.cookie-consent__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent__slider {
    position: absolute;
    inset: 0;
    background: var(--color-border);
    border-radius: 999px;
    transition: background 0.15s ease;
}

.cookie-consent__slider::before {
    content: "";
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    left: 0.15rem;
    top: 0.15rem;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
    background: var(--color-primary);
}

.cookie-consent__switch input:checked + .cookie-consent__slider::before {
    transform: translateX(1rem);
}

.cookie-consent__panel-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .cookie-consent__banner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent__banner-actions {
        justify-content: flex-end;
    }
}

.newsletter-signup__note {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
