/* Design tokens: shared palette used throughout the site. */

:root {
    --navy: #102c45;
    --gold: #e7b75e;
    --ink: #20364a;
    --muted: #526778;
    --paper: #f4f7f8;
}

/* Global sizing and typography defaults. */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 16px/1.65 system-ui,sans-serif;
    color: var(--ink);
    background: white;
}

a {
    color: #235c77;
}

/* Keyboard focus indicators for interactive elements. */

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline: 3px solid #b47a19;
    outline-offset: 3px;
}

h1,h2,h3,p {
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(1.8rem,3vw,2.8rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

h3 {
    line-height: 1.3;
}

button,input,select,textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button,.button {
    border: 0;
    border-radius: 5px;
    padding: .7rem 1.1rem;
}

.button {
    display: inline-block;
    background: var(--gold);
    color: #172b3b;
    font-weight: 750;
    text-decoration: none;
}

/* Contact strip and header navigation. */

.top {
    background: var(--navy);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: .45rem max(5%,calc((100% - 1200px)/2));
    font-size: .85rem;
}

.top a {
    color: white;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 5%;
    gap: 1rem;
    background: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--navy);
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
}

.brand small {
    display: block;
    font-size: .65rem;
    letter-spacing: .19em;
}

.star {
    font-size: 2.8rem;
    color: #b47a19;
}

nav {
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
}

#menu {
    display: none;
}

/* Hero carousel: inactive slides are hidden; active slide is displayed. */

.hero {
    position: relative;
    background: var(--navy);
    color: white;
    overflow: hidden;
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(.85rem,1.5vw,1.05rem);
    font-weight: 500;
    padding: 2rem 7% 0;
    margin: 0;
    color: #e9d9b8;
}

.slide {
    display: none;
    min-height: 470px;
    background-image: linear-gradient(90deg,#102c45 0%,#102c45 36%,#102c45bb 49%,transparent 75%),var(--art);
    background-size: cover,auto 115%;
    background-position: center,right center;
    background-repeat: no-repeat;
}

.slide.active {
    display: flex;
    align-items: center;
    animation: appear .5s ease;
}

.slide-copy {
    padding: 2rem 7% 5rem;
    max-width: 680px;
    width: 58%;
}

.slide h2 {
    font-size: clamp(2.5rem,5vw,4.5rem);
    line-height: 1.02;
}

.slide p:not(.eyebrow) {
    color: #e0e8ee;
    max-width: 500px;
}

.eyebrow {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 800;
    color: #98661b;
}

.hero .eyebrow {
    color: var(--gold);
}

/* Carousel playback and slide selection controls. */

.controls {
    position: absolute;
    bottom: 1rem;
    left: 7%;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.controls button {
    background: #ffffff20;
    color: white;
    padding: .35rem .7rem;
}

.controls button[aria-pressed=true] {
    background: var(--gold);
    color: var(--navy);
}

/* Circular indicators override the original generic button styling. */

#dots {
    display: flex;
    gap: .3rem;
}

/* Trust strip and reusable content layout. */

.trust {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    padding: 1.3rem 5%;
    background: #eaf0f3;
    font-weight: 650;
    font-size: .9rem;
}

.section {
    max-width: 1280px;
    margin: auto;
    padding: 4.5rem 5%;
}

.intro {
    max-width: 650px;
    color: var(--muted);
}

/* Insurance service card grid. */

.services {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.3rem;
    margin-top: 2rem;
}

.service {
    border: 1px solid #dce4e8;
    border-radius: 9px;
    overflow: hidden;
}

/* Service-card photographs are independent of the hero carousel.
   The desktop image is the default; portrait phones select the mobile image.
   The aspect ratio reserves space before the background loads. */
.service .service-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background-color: var(--paper);
    background-image: var(--service-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
}

/* Auto insurance service card. */
.service#auto {
    --service-desktop: url("service-auto-desktop.webp");
    --service-mobile: url("service-auto-mobile.webp");
}

/* Home insurance service card. */
.service#home {
    --service-desktop: url("service-home-desktop.webp");
    --service-mobile: url("service-home-mobile.webp");
}

/* Business insurance service card. */
.service#business {
    --service-desktop: url("service-business-desktop.webp");
    --service-mobile: url("service-business-mobile.webp");
}

/* Life insurance service card. */
.service#life {
    --service-desktop: url("service-life-desktop.webp");
    --service-mobile: url("service-life-mobile.webp");
}

/* Health insurance service card. */
.service#health {
    --service-desktop: url("service-health-desktop.webp");
    --service-mobile: url("service-health-mobile.webp");
}

/* Portrait phones: use the portrait asset and preserve its proportions.
   Landscape phones and tablets retain the landscape card banner. */
@media (max-width: 800px) and (orientation: portrait) {
    .service .service-banner {
        aspect-ratio: 9 / 16;
        background-image: var(--service-mobile);
    }
}


.service div {
    padding: 1.3rem;
}

.service p {
    color: var(--muted);
}

.service a {
    font-weight: 700;
}

/* Two-column content and form layout. */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.panel,form {
    background: var(--paper);
    padding: 2rem;
    border-radius: 9px;
}

/* Insurance engagement process steps. */

.process {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    padding-left: 1.5rem;
}

.process li {
    padding: 1rem;
    background: var(--paper);
    border-radius: 6px;
}

.consult {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 3.5rem 5%;
}

/* Form fields and submission feedback. */

label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
}

input:not([type=checkbox]),select,textarea {
    display: block;
    width: 100%;
    padding: .65rem;
    border: 1px solid #aebdc6;
    border-radius: 4px;
    background: white;
    margin-top: .3rem;
    color: var(--ink);
}

.check {
    font-size: .9rem;
    font-weight: 400;
}

.status {
    margin-top: .6rem;
}

/* Footer and privacy preference prompt. */

footer {
    background: var(--navy);
    color: white;
    padding: 2.5rem 5%;
}

footer a {
    color: #f2d69b;
}

#cookie {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    max-width: 360px;
    background: white;
    border: 1px solid #c4d0d7;
    box-shadow: 0 8px 30px #0003;
    padding: 1.3rem;
    border-radius: 8px;
    z-index: 10;
}

#accept {
    background: var(--gold);
}

/* Keyboard-accessible skip link. */

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    background: white;
    z-index: 20;
}

@keyframes appear {
    from {
        opacity: .5;
    }
    to {
        opacity: 1;
    }
}

@media(max-width:800px) {
    #menu {
        display: block;
    }
    header {
        flex-wrap: wrap;
    }
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: start;
        gap: .8rem;
    }
    nav.open {
        display: flex;
    }
    .slide {
        background-size: cover,auto 100%;
        background-image: linear-gradient(90deg,#102c45ee,#102c4599),var(--art);
        min-height: 420px;
    }
    .slide-copy {
        width: 100%;
        max-width: 600px;
    }
    .services,.process {
        grid-template-columns: repeat(2,1fr);
    }
    .split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .trust {
        flex-wrap: wrap;
    }
    .section {
        padding: 3rem 5%;
    }
}

@media(max-width:480px) {
    .services,.process {
        grid-template-columns: 1fr;
    }
    .top {
        font-size: .72rem;
    }
    .panel,form {
        padding: 1rem;
    }
    .controls {
        left: 5%;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    .slide.active {
        animation: none;
    }
}

/* Version 1.2: circular carousel indicators, independent navigation and viewport sections. */

#dots {
    gap: .65rem;
    align-items: center;
}

#dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid white;
    border-radius: 50%;
    background: transparent;
    position: relative;
}

#dots button::after {
    content: "";
    position: absolute;
    inset: -5px;
}

#dots button[aria-pressed="true"] {
    background: var(--gold);
    border-color: var(--gold);
}

header {
    position: relative;
    z-index: 5;
}

/* Desktop navigation and independent hamburger dropdown. */

#nav {
    margin-left: auto;
}

#menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--paper);
    color: var(--navy);
    flex-shrink: 0;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.menu-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

#menu[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

#menu[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#dropdown-nav {
    position: absolute;
    top: 100%;
    right: 5%;
    width: min(300px, 90vw);
    max-height: 75vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
    background: white;
    border: 1px solid #dce4e8;
    border-radius: 8px;
    box-shadow: 0 12px 30px #102c4530;
}

#dropdown-nav[hidden] {
    display: none;
}

#dropdown-nav a {
    padding: .65rem .85rem;
    border-radius: 4px;
}

#dropdown-nav a:hover, #dropdown-nav a:focus-visible {
    background: var(--paper);
}

/* Minimum height, not fixed height: content can grow on small screens. */

main > section {
    min-height: 100vh;
    min-height: 100svh;
}

main > .section:not(.split), .consult {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main > .split {
    align-items: center;
    align-content: center;
}

.hero {
    display: flex;
    flex-direction: column;
}

.hero .slide.active {
    flex: 1;
}

/* Telephone, SMS and email engagement links. */

.channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
}

.channel-note {
    margin: 1rem 0 0;
}

.quote-channels {
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    margin: 1.5rem 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
    #nav {
        display: none;
    }
    header {
        flex-wrap: nowrap;
    }
}

@media (max-width: 800px) {
    main > .split {
        align-content: center;
    }
    .hero .slide {
        min-height: 420px;
    }
}

/* ==========================================================
   RESPONSIVE CAROUSEL BACKGROUNDS
   ==========================================================
   Image URLs are relative to this stylesheet.
   Desktop and mobile photographs can be configured separately.
   Existing SVG illustrations provide a fallback if photos are absent.
   Focal points control which part of a cropped image stays visible.
   ========================================================== */

/* Auto insurance background configuration. */
.slide[data-art="auto"] {
    --art: url("auto.svg");
    --art-desktop: url("auto-desktop.webp");
    --art-mobile: url("auto-mobile.webp");
    --art-focus: right center;
    --mobile-focus: center center;
}

/* Home insurance background configuration. */
.slide[data-art="home"] {
    --art: url("home.svg");
    --art-desktop: url("home-desktop.webp");
    --art-mobile: url("home-mobile.webp");
    --art-focus: right center;
    --mobile-focus: center center;
}

/* Business insurance background configuration. */
.slide[data-art="business"] {
    --art: url("business.svg");
    --art-desktop: url("business-desktop.webp");
    --art-mobile: url("business-mobile.webp");
    --art-focus: right center;
    --mobile-focus: center center;
}

/* Life insurance background configuration. */
.slide[data-art="life"] {
    --art: url("life.svg");
    --art-desktop: url("life-desktop.webp");
    --art-mobile: url("life-mobile.webp");
    --art-focus: right center;
    --mobile-focus: center center;
}

/* Health insurance background configuration. */
.slide[data-art="health"] {
    --art: url("health.svg");
    --art-desktop: url("health-desktop.webp");
    --art-mobile: url("health-mobile.webp");
    --art-focus: right center;
    --mobile-focus: center center;
}

/* Desktop and landscape tablets: keep the text on the left.
   Background layers are painted front to back: gradient, photograph,
   and original illustration. The photograph covers the fallback. */
.hero .slide {
    background-color: var(--navy);
    background-image:
        linear-gradient(
            90deg,
            rgba(16, 44, 69, 0.98) 0%,
            rgba(16, 44, 69, 0.85) 25%,
            rgba(16, 44, 69, 0.45) 50%,
            rgba(16, 44, 69, 0.05) 100%
        ),
        var(--art-desktop),
        var(--art);
    background-size: cover, cover, cover;
    background-position: center, var(--art-focus, center), right center;
    background-repeat: no-repeat;
}

.hero .slide-copy {
    overflow-wrap: break-word;
}

/* Portrait phones and small tablets: use a portrait photograph.
   The vertical gradient darkens the lower area behind the text.
   Minimum height allows the content to grow without clipping. */
@media (max-width: 800px) and (orientation: portrait) {
    .hero .slide {
        background-image:
            linear-gradient(
                180deg,
                rgba(16, 44, 69, 0.05) 0%,
                rgba(16, 44, 69, 0.15) 30%,
                rgba(16, 44, 69, 0.75) 60%,
                rgba(16, 44, 69, 0.98) 100%
            ),
            var(--art-mobile),
            var(--art);
        background-size: cover, cover, cover;
        background-position: center, var(--mobile-focus, center), center;
        background-repeat: no-repeat;
        min-height: 100vh;
        min-height: 100svh;
    }

    /* Align the visible slide content near the bottom. */
    .hero .slide.active {
        align-items: flex-end;
    }

    /* Reserve bottom space for the carousel navigation controls. */
    .hero .slide-copy {
        width: 100%;
        max-width: none;
        padding: 2rem 7% 6rem;
        background: none;
    }
}

/* Short landscape screens: restore the horizontal composition. */
@media (max-width: 1000px) and (orientation: landscape) and (max-height: 500px) {
    .hero .slide {
        background-image:
            linear-gradient(
                90deg,
                rgba(16, 44, 69, 0.98) 0%,
                rgba(16, 44, 69, 0.80) 35%,
                rgba(16, 44, 69, 0.10) 100%
            ),
            var(--art-desktop),
            var(--art);
        background-size: cover, cover, cover;
        background-position: center, var(--art-focus, right center), right center;
        background-repeat: no-repeat;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero .slide.active {
        align-items: center;
    }

    .hero .slide-copy {
        width: 70%;
        padding: 2rem 7% 5rem;
        background: none;
    }
}


/* Official agency logo: preserve its intrinsic aspect ratio.
   Keep the full wordmark visible without stretching or clipping. */
.brand {
    flex-shrink: 0;
    max-width: 75%;
}

.brand .brand-logo {
    display: block;
    width: clamp(130px, 18vw, 200px);
    max-width: 100%;
    height: auto;
}

/* Collapse the horizontal navigation before the logo and links collide.
   The existing hamburger navigation remains available. */
@media (min-width: 801px) and (max-width: 1050px) {
    header > #nav {
        display: none;
    }
}

/* Compact logo for narrow mobile screens. */
@media (max-width: 480px) {
    .brand .brand-logo {
        width: 130px;
    }
}

/*  unsupported */
#webservice_contact, #webservice_quotation{
    display:none;
}
