/* Twogether Forward, gemensam stilmall
 * Färger och typsnitt enligt Christophers designunderlag.
 * Kontrast kontrollerad mot WCAG AA.
 */

:root {
    --navy: #102F4F;
    --navy-deep: #0B2540;
    --orange: #C85A1B;        /* bara för viktiga knappar, vit text kräver stor fet text */
    --orange-dark: #A84A14;
    --gold: #E7A34A;          /* aldrig som text på ljus bakgrund */
    --paper: #F7F3ED;
    --sand: #EDE4D8;
    --ink: #202124;
    --ink-soft: #575C63;
    --on-navy: #F7F3ED;
    --on-navy-soft: #C5D0DC;
    --line: rgba(16, 47, 79, 0.14);

    --font-head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap: 74rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --space-section: clamp(4rem, 9vw, 7.5rem);
    --radius-btn: 0.625rem;
    --radius-media: 1.125rem;
}

/* Grund */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
.h3 {
    margin: 0 0 0.5em;
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
}

h3,
.h3 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    max-width: 65ch;
    margin: 0 0 1em;
}

a {
    color: var(--navy);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

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

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

.lead {
    color: var(--ink-soft);
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.55;
}

.small {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Smal textspalt som ändå linjerar med sidans vänsterkant */
.narrow > * {
    max-width: 46rem;
}

.skip-link {
    position: absolute;
    top: -10rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-btn);
    background: var(--navy);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* Förhandsvisning före lansering */

.preview-bar {
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.preview-bar a {
    color: var(--ink);
    font-weight: 600;
}

/* Sidhuvud och meny */

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.75rem;
}

.brand {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-head);
    font-size: 1.3125rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--navy);
}

.nav-desktop ul {
    display: flex;
    gap: 1.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-desktop a {
    display: block;
    padding-block: 0.5rem;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-desktop a:hover {
    border-bottom-color: var(--gold);
    color: var(--navy);
}

.nav-desktop a[aria-current="page"] {
    border-bottom-color: var(--orange);
    color: var(--navy);
}

.nav-mobile {
    display: none;
}

.nav-mobile summary {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-btn);
    color: var(--navy);
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    list-style: none;
}

.nav-mobile summary::-webkit-details-marker {
    display: none;
}

.nav-mobile .when-open,
.nav-mobile[open] .when-closed {
    display: none;
}

.nav-mobile[open] .when-open {
    display: inline;
}

.nav-mobile[open] summary {
    background: var(--navy);
    color: var(--paper);
}

.nav-mobile nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 1.5rem 2rem -1.5rem rgba(16, 47, 79, 0.35);
}

.nav-mobile ul {
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    list-style: none;
}

.nav-mobile a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-mobile a[aria-current="page"] {
    color: var(--orange-dark);
}

@media (max-width: 75em) {
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: block;
    }
}

/* Knappar */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-btn);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
    background: var(--navy);
    color: #fff;
}

.btn--primary:hover {
    background: var(--navy-deep);
    color: #fff;
}

.btn--secondary {
    border-color: var(--navy);
    background: transparent;
    color: var(--navy);
}

.btn--secondary:hover {
    background: var(--navy);
    color: #fff;
}

/* Orange med vit text klarar kontrastkravet bara som stor fet text, därav 19 px */
.btn--accent {
    background: var(--orange);
    color: #fff;
    font-size: 1.1875rem;
}

.btn--accent:hover {
    background: var(--orange-dark);
    color: #fff;
}

.btn--outline-light {
    border-color: rgba(247, 243, 237, 0.7);
    background: transparent;
    color: var(--paper);
}

.btn--outline-light:hover {
    border-color: var(--paper);
    background: rgba(247, 243, 237, 0.1);
    color: var(--paper);
}

.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Sektioner */

.section {
    padding-block: var(--space-section);
}

.section--flush-top {
    padding-top: 0;
}

.section--tight {
    padding-top: 0;
}

.section--sand {
    background: var(--sand);
}

.section--navy {
    background: var(--navy);
    color: var(--on-navy);
}

.section--navy h2,
.section--navy h3 {
    color: var(--on-navy);
}

.section--navy .lead,
.section--navy .small {
    color: var(--on-navy-soft);
}

.section--navy a:not([class]) {
    color: var(--on-navy);
}

.section--navy a:not([class]):hover {
    color: var(--gold);
}

.section--navy :focus-visible {
    outline-color: var(--gold);
}

.page-head {
    padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}

.page-head h1 {
    max-width: 18ch;
}

.page-head .lead {
    max-width: 42rem;
}

/* Startsidans hero */

.hero {
    padding-block: clamp(1.5rem, 4vw, 4rem) var(--space-section);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-tagline {
    margin-bottom: 1.25rem;
    color: var(--navy);
    font-family: var(--font-head);
    font-size: clamp(1.125rem, 1.7vw, 1.375rem);
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.4;
}

.hero h1 {
    font-size: clamp(2.75rem, 6.2vw, 5.25rem);
    line-height: 1;
}

.hero-sub {
    color: var(--ink-soft);
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
}

/* Bild och text sida vid sida */

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 5.5rem);
    align-items: center;
}

.split--reverse .split__media {
    order: 2;
}

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-block: 2.5rem;
}

.duo__item h3 {
    margin-top: 1.5rem;
}

/* Lindas resa: linjen som inte är rak */

.journey {
    max-width: 34rem;
    margin: 2rem 0 0.5rem;
}

.journey svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.journey__labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0.75rem 0 0;
    padding: 0;
    color: var(--on-navy-soft);
    font-family: var(--font-head);
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
}

.journey__labels li:nth-child(2) {
    text-align: center;
}

.journey__labels li:nth-child(3) {
    text-align: right;
}

.statement {
    margin: 2.5rem 0;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.statement span {
    display: block;
}

.statement span:last-child {
    margin-top: 0.6em;
}

/* Rutiner i fyra delar */

.routine-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.routine-list--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.routine-list li {
    padding-top: 1.25rem;
    border-top: 3px solid var(--navy);
    scroll-margin-top: 2rem;
}

.routine-list h3 a,
.routine-list .h3 a {
    text-decoration: none;
}

.routine-list h3 a:hover {
    text-decoration: underline;
}

.disclosure-note {
    max-width: 48rem;
    margin-top: 3.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--paper);
    font-size: 0.9375rem;
}

/* Videor */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin: 2.5rem 0;
    padding: 0;
    list-style: none;
}

.video-card {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.video-card .ph {
    transition: transform 0.2s ease;
}

.video-card:hover .ph {
    transform: translateY(-3px);
}

.video-card__title {
    display: block;
    margin-top: 0.75rem;
    font-weight: 600;
}

/* Riktiga bilder */

.photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-media);
    object-fit: cover;
}

.photo--portrait {
    aspect-ratio: 4 / 5;
}

@media (max-width: 48em) {
    .photo--portrait {
        aspect-ratio: 4 / 3;
    }
}

/* Bildplatshållare tills riktiga bilder finns */

.ph {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius-media);
    color: #fff;
}

.ph--sunset {
    background:
        linear-gradient(to bottom, rgba(16, 47, 79, 0) 70%, #1d3f60 70%, #102F4F 100%),
        radial-gradient(circle at 68% 70%, #ffe1a6 0 6%, rgba(255, 225, 166, 0) 6.5%),
        linear-gradient(to bottom, #1b3f63 0%, #5d4a5c 38%, #c8743a 62%, #e7a34a 70%);
}

.ph--sand {
    background:
        repeating-linear-gradient(135deg, rgba(16, 47, 79, 0.05) 0 12px, rgba(16, 47, 79, 0) 12px 24px),
        var(--sand);
}

.ph--portrait {
    aspect-ratio: 4 / 5;
}

.ph--landscape {
    aspect-ratio: 3 / 2;
}

.ph--vertical {
    aspect-ratio: 9 / 16;
}

.ph--square {
    aspect-ratio: 1;
}

.ph__label {
    margin: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(11, 37, 64, 0.78);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
}

.section--sand .ph--sand {
    background:
        repeating-linear-gradient(135deg, rgba(16, 47, 79, 0.06) 0 12px, rgba(16, 47, 79, 0) 12px 24px),
        var(--paper);
}

/* Text som ska skrivas av Christopher och Linda */

.todo {
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 3px solid var(--gold);
    color: var(--ink-soft);
    font-style: italic;
}

.section--navy .todo {
    color: var(--on-navy-soft);
}

/* Produkter och länder */

.ad-label {
    padding-block: 0.75rem;
    background: var(--navy);
    color: var(--paper);
    font-size: 0.9375rem;
    font-weight: 600;
}

.market-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.market-list a {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 1.25rem;
    border: 2px solid var(--navy);
    border-radius: var(--radius-btn);
    background: var(--paper);
    color: var(--navy);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.market-list a:hover {
    background: var(--navy);
    color: #fff;
}

.market-list__name {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
}

.market-list__native {
    font-size: 0.9375rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: 2.5rem 0 4rem;
    padding: 0;
    list-style: none;
}

.product__name {
    margin-top: 1.25rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.handoff {
    max-width: 46rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-media);
    background: var(--sand);
}

.handoff h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Kontakt och textsidor */

.contact-email {
    margin-top: 2rem;
    font-family: var(--font-head);
    font-size: clamp(1.375rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.link-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 600;
    list-style: none;
}

.prose > * {
    max-width: 44rem;
}

.prose h2 {
    margin-top: 2.75rem;
    font-size: clamp(1.375rem, 2.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.prose h2:first-child {
    margin-top: 0;
}

/* Sidfot */

.site-footer {
    padding-block: 4rem 2rem;
    background: var(--navy-deep);
    color: var(--on-navy-soft);
    font-size: 0.9375rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.site-footer .brand {
    color: var(--paper);
    font-size: 1.5rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
}

.footer-heading {
    margin: 0 0 0.875rem;
    color: var(--paper);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.site-footer ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: var(--paper);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.site-footer :focus-visible {
    outline-color: var(--gold);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(247, 243, 237, 0.15);
}

.footer-bottom p {
    margin: 0;
}

/* Sidan före lansering */

body.soon {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: 3rem var(--gutter);
    background: var(--navy);
    color: var(--on-navy);
}

.soon__inner {
    max-width: 44rem;
}

.soon .brand {
    display: block;
    margin-bottom: 0;
    color: var(--paper);
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    line-height: 1;
    white-space: normal;
}

.soon__tagline {
    margin: 1.25rem 0 2rem;
    color: var(--gold);
    font-family: var(--font-head);
    font-size: clamp(1.0625rem, 2vw, 1.375rem);
    font-weight: 500;
    letter-spacing: 0.035em;
}

.soon__email {
    margin-top: 2rem;
}

.soon__email a {
    color: var(--on-navy-soft);
}

.soon__email a:hover {
    color: var(--gold);
}

.soon :focus-visible {
    outline-color: var(--gold);
}

/* Mindre skärmar */

@media (max-width: 60em) {
    .routine-list,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48em) {
    .hero-grid,
    .split,
    .duo {
        grid-template-columns: 1fr;
    }

    .split--reverse .split__media {
        order: 0;
    }

    /* Stående bilder blir lägre på mobil så att texten syns snabbare */
    .ph--portrait {
        aspect-ratio: 4 / 3;
    }

    .market-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-grid {
        grid-template-columns: none;
        grid-auto-columns: 68%;
        grid-auto-flow: column;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        scroll-snap-type: x mandatory;
    }

    .video-grid li {
        scroll-snap-align: start;
    }

    .video-grid--page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-columns: auto;
        grid-auto-flow: row;
        overflow-x: visible;
    }

    .routine-list--three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 36em) {
    .routine-list,
    .product-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn-row .btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
