/*
Theme Name: La Conca Film Commission
Author: La Conca Film Commission
Version: 1.1.0
Text Domain: conca-film-commission
*/

/* =========================================
   CONFIGURACIÓ GENERAL
========================================= */

:root {
    --color-primary: #191919;
    --color-background: #F0F0EE;
    --color-accent: #B9A17C;
    --color-white: #fff;
    --color-muted: #666;
    --color-border: #D8D8D4;
    --font-title: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', Arial, sans-serif;
    --font-brand: 'Manrope', Arial, sans-serif;
    --page-padding: 6%;
    --ease-cinematic: cubic-bezier(.16, 1, .3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--color-background);
    color: var(--color-primary);
    font: 15px/1.7 var(--font-body);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

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

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1;
}

em {
    font-weight: 400;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--color-accent);
    color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 6px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 20px;
    background: white;
    color: #191919;
}

.skip-link:focus {
    top: 15px;
}

/* =========================================
   CAPÇALERA I NAVEGACIÓ
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px var(--page-padding);
    background: transparent;
    color: white;
    transition:
        background .5s,
        color .5s,
        padding .5s,
        box-shadow .5s;
}

.admin-bar .site-header {
    top: 32px;
}

.brand {
    display: flex;
    flex-direction: column;
    width: fit-content;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-brand);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1;
}

.brand-name span {
    color: var(--color-accent);
}

.brand-subtitle {
    font-family: var(--font-brand);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3.5px;
    margin-top: 7px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.7vw, 42px);
}

.main-nav a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-contact {
    border-bottom: 1px solid var(--color-accent);
}

.site-header.scrolled,
.site-header.menu-open {
    background: var(--color-background);
    color: var(--color-primary);
    box-shadow: 0 1px 15px #0001;
}

.site-header.scrolled {
    padding: 16px var(--page-padding);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    margin: 6px 0;
    background: currentColor;
    transition: transform .35s;
}

.menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* =========================================
   PORTADA CINEMATOGRÀFICA
========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-primary);
    color: white;
    padding: 160px var(--page-padding) 150px;
}

.hero-slides,
.slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slides {
    z-index: -3;
}

.slide {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--image-position, center);
}

.hero-overlay {
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            #0009 0%,
            #0005 42%,
            #0001 100%
        ),
        linear-gradient(
            180deg,
            #0006 0%,
            transparent 25%,
            transparent 65%,
            #0007 100%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 26px;
    --enter-delay: .1s;
}

.eyebrow-line {
    width: 42px;
    height: 1px;
    background: var(--color-accent);
}

.hero-title {
    font-size: clamp(75px, 9.5vw, 165px);
    line-height: .96;
    letter-spacing: -.025em;
    margin-bottom: 30px;
}

.title-mask {
    display: block;
    overflow: hidden;
    padding-bottom: .12em;
    margin-bottom: -.08em;
}

.title-line {
    display: block;
}

.first-line {
    --line-delay: .22s;
}

.second-line {
    --line-delay: .4s;
}

.hero-description {
    font-size: clamp(15px, 1.3vw, 20px);
    letter-spacing: .1px;
    color: #fffffff0;
    margin-bottom: 34px;
    --enter-delay: .65s;
}

.hero-action {
    --enter-delay: .85s;
}

/* =========================================
   BOTONS
========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 18px 26px;
    min-height: 58px;
    font-size: 14px;
    font-weight: 500;
    transition: background .4s, color .4s;
}

.button-light {
    background: var(--color-background);
    color: var(--color-primary);
}

.button-light:hover {
    background: var(--color-accent);
}

.button-arrow {
    font-size: 18px;
    transition: transform .4s var(--ease-cinematic);
}

.button:hover .button-arrow {
    transform: translate(3px, -3px);
}

/* =========================================
   PART INFERIOR DE LA PORTADA
========================================= */

.hero-bottom {
    position: absolute;
    bottom: 38px;
    left: var(--page-padding);
    right: var(--page-padding);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    --enter-delay: 1.05s;
}

.scroll-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff73;
    border-radius: 50%;
    font-size: 18px;
    transition: background .4s, color .4s;
}

.scroll-link:hover .scroll-arrow {
    background: white;
    color: #191919;
}

/* =========================================
   CARRUSEL DE FOTOGRAFIES
========================================= */

.carousel-panel {
    display: flex;
    align-items: flex-end;
    gap: 28px;
}

.carousel-details {
    min-width: 150px;
}

.scene-counter {
    display: flex;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.counter-divider,
#slideTotal {
    color: #ffffffa6;
}

.scene-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.scene-name.scene-enter {
    animation: sceneEnter .65s var(--ease-cinematic) both;
}

.progress-track {
    width: 100%;
    height: 2px;
    background: #ffffff4d;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 100%;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.carousel-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    color: white;
    border: 1px solid #ffffff73;
    font-size: 20px;
    transition:
        background .35s,
        color .35s,
        border .35s;
}

.carousel-controls button:hover {
    background: white;
    color: #191919;
    border-color: white;
}

.carousel-controls .pause-button {
    width: 34px;
    border-color: transparent;
    font-size: 14px;
}

/* =========================================
   ANIMACIONS
========================================= */

.hero-ready .title-line {
    animation:
        titleReveal
        1.35s
        var(--ease-cinematic)
        var(--line-delay, 0s)
        both;
}

.hero-ready .soft-enter {
    animation:
        softReveal
        1.15s
        var(--ease-cinematic)
        var(--enter-delay, 0s)
        both;
}

@keyframes titleReveal {
    from {
        transform: translateY(108%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes softReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sceneEnter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 1.1s var(--ease-cinematic),
        transform 1.1s var(--ease-cinematic);
}

.reveal.reveal-pending.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   SECCIONS GENERALS
========================================= */

.section {
    padding: 120px var(--page-padding);
    background: var(--color-background);
}

.section-dark {
    background: var(--color-primary);
    color: white;
}

.section h2 {
    font-size: clamp(55px, 7vw, 110px);
    letter-spacing: -.025em;
    margin: 25px 0;
}

.section p {
    max-width: 600px;
    font-size: 17px;
    line-height: 1.9;
}

.small-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: var(--color-muted);
}

.section-dark .small-label {
    color: var(--color-accent);
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--color-border);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-muted);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 80px;
    padding-top: 45px;
}

.intro-description {
    padding-bottom: 30px;
}

.intro-description p {
    margin: 22px 0 30px;
}

.text-link {
    display: inline-block;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
    font-weight: 500;
    transition: color .3s;
}

.text-link:hover {
    color: var(--color-muted);
}

.section-dark .text-link:hover {
    color: var(--color-accent);
}

/* =========================================
   PEU DE PÀGINA
========================================= */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px var(--page-padding);
    background: var(--color-background);
}

.footer p {
    font-size: 13px;
    color: var(--color-muted);
}

/* =========================================
   MUNICIPIS
========================================= */

.municipal-heading {
    text-align: center;
}

.municipal-heading p {
    margin: 0 auto;
    color: var(--color-muted);
}

.municipal-map {
    max-width: 900px;
    margin: 35px auto 0;
    padding: 12px;
}

.municipal-map svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.municipal-map path {
    cursor: pointer;
    transition: fill .35s, filter .35s;
    outline: none;
}

.municipal-map path:hover,
.municipal-map path:focus-visible,
.municipal-map path.preview {
    fill: #c5b18d;
}

.municipal-map path.active {
    fill: var(--color-accent);
    filter: drop-shadow(0 0 4px #b9a17c99);
}

.municipal-map path:focus-visible {
    stroke: #191919;
    stroke-width: 2;
}

.municipal-selection {
    text-align: center;
    margin: 15px 0 45px;
}

.municipal-selection h3 {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 10px;
}

.municipal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding: 25px 0 12px;
}

.municipal-toolbar h3 {
    font-size: 36px;
}

.municipal-toolbar input {
    font: inherit;
    background: transparent;
    color: inherit;
    border: 1px solid #aaa;
    padding: 10px 14px;
    max-width: 100%;
}

.municipal-list {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));
    gap: 0 24px;
}

.municipal-list button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    background: transparent;
    color: inherit;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 5px;
    font: inherit;
    transition: background .3s, color .3s;
}

.municipal-list button.active {
    background: #B9A17C33;
    color: #765c37;
    font-weight: 600;
}

.municipal-list button:hover {
    color: #765c37;
}

.municipal-source {
    display: block;
    color: var(--color-muted);
    font-size: 11px;
    margin-top: 30px;
}

/* =========================================
   PÀGINES INDEPENDENTS
========================================= */

.inner-page .site-header {
    background: var(--color-background);
    color: var(--color-primary);
}

.inner-page main {
    padding-top: 100px;
    min-height: 80vh;
}

.inner-page .main-nav a[aria-current=page] {
    color: #826c4c;
}

/* =========================================
   LOCALITZACIONS
========================================= */

.locations {
    padding: 100px 0;
    scroll-margin-top: 70px;
}

.loc-head {
    padding: 0 var(--page-padding) 25px;
}

.loc-title {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 50px;
    align-items: end;
    padding: 40px 0;
}

.loc-title h2 {
    font-size: clamp(55px, 8vw, 125px);
    line-height: .95;
}

.loc-title p {
    color: #666;
    line-height: 1.8;
    max-width: 430px;
}

/* =========================================
   FILTRES I BUSCADOR
========================================= */

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters input,
.filters select,
.filters button,
.categories button {
    font: inherit;
    background: transparent;
    border: 1px solid #c4c3bc;
    padding: 12px;
    color: #191919;
    min-height: 46px;
}

.filters input {
    flex: 1;
    min-width: 220px;
}

.filters input:focus,
.filters select:focus {
    outline: 1px solid var(--color-accent);
    border-color: var(--color-accent);
}

.filters button:hover {
    background: #e4e3df;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.categories button {
    font-size: 12px;
    transition:
        background .3s,
        color .3s,
        border-color .3s;
}

.categories button:hover {
    border-color: var(--color-primary);
}

.categories button.active {
    background: #191919;
    color: white;
    border-color: #191919;
}

#locationCount {
    color: var(--color-muted);
    font-size: 13px;
    margin-top: 20px;
}

/* =========================================
   CATÀLEG DE LOCALITZACIONS
========================================= */

#locationsGallery {
    padding: 0 var(--page-padding);
}

.location-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    height: clamp(300px, 29vw, 450px);
}

.location-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border: 0;
    text-align: left;
    color: white;
    background:
        linear-gradient(
            135deg,
            #827a69,
            #38362f
        );
    transition: flex .65s var(--ease-cinematic);
    isolation: isolate;
}

/* FOTOGRAFIA PRINCIPAL */

.location-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform .7s;
}

/* DEGRADAT SOBRE LA FOTOGRAFIA */

.location-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            #0002 0%,
            transparent 30%,
            #0004 55%,
            #000d 100%
        );
    z-index: 1;
    pointer-events: none;
}

/* TEXT DE LES TARGETES */

.location-card .loc-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    z-index: 3;
}

.loc-text small {
    display: block;
    color: #e7d1ae;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loc-text strong {
    display: block;
    font:
        400
        clamp(27px, 2.8vw, 47px)/1.05
        var(--font-title);
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.loc-text span {
    font-size: 12px;
}

.loc-extra {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: .4s;
}

.location-card:hover .loc-extra,
.location-card:focus-visible .loc-extra {
    max-height: 60px;
    opacity: 1;
    margin-top: 12px;
}

.loc-arrow {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid #fff9;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: #0002;
    transition:
        background .3s,
        color .3s;
}

.location-card:hover .loc-arrow {
    background: white;
    color: #191919;
}

.loc-placeholder {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
    color: #fff9;
    z-index: 2;
}

/* =========================================
   EXPANSIÓ INTERACTIVA
========================================= */

@media (hover: hover) and (pointer: fine) {

    .location-card:hover,
    .location-card:focus-visible {
        flex: 2.3 1 0;
    }

    .location-card:hover img {
        transform: scale(1.05);
    }
}

/* FILES AMB MENYS DE QUATRE TARGETES */

@media (min-width: 1001px) {

    .location-row:not(
        :has(.location-card:nth-child(4))
    ) .location-card {
        flex: 0 0 calc((100% - 18px) / 4);
    }
}

/* =========================================
   FITXA DE LOCALITZACIÓ
========================================= */

body.location-dialog-open {
    overflow: hidden;
}

#locationDialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(900px, 94vw);
    max-width: 94vw;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--color-background);
    color: var(--color-primary);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 20px 100px #0005;
}

#locationDialog::backdrop {
    background: #000b;
    backdrop-filter: blur(5px);
}

/* BOTÓ DE TANCAMENT */

#closeLocation {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: white;
    color: #191919;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
    z-index: 10;
    box-shadow: 0 2px 12px #0002;
    transition:
        background .3s,
        color .3s;
}

#closeLocation:hover {
    background: #191919;
    color: white;
}

/* =========================================
   FOTOGRAFIA DE LA FITXA
========================================= */

#locationDialog .dialog-photo {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(180px, 32vw, 340px);
    background: #d8d5cc;
    overflow: hidden;
}

#locationDialog .dialog-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

#dialogPlaceholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--color-muted);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   CONTINGUT DE LA FITXA
========================================= */

#locationDialog .dialog-content {
    position: relative;
    display: block;
    width: 100%;
    padding: clamp(22px, 4vw, 42px);
    background: var(--color-background);
}

#dialogCategory {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #806b49;
    line-height: 1.7;
}

#locationDialog h2 {
    font-family: var(--font-title);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 10px 0 14px;
    overflow-wrap: anywhere;
}

#locationDialog .dialog-content p {
    margin: 0 0 12px;
}

#dialogMunicipality {
    font-size: 15px;
    color: var(--color-muted);
}

#dialogMunicipality::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--color-accent);
    vertical-align: 2px;
}

/* =========================================
   INFORMACIÓ TÈCNICA
========================================= */

.location-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 0;
    margin: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.location-facts > div {
    min-width: 0;
}

.location-facts dt {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--color-muted);
}

.location-facts dd {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

/* =========================================
   DESCRIPCIÓ
========================================= */

#locationDialog h3 {
    font-family: var(--font-title);
    font-size: 32px;
    line-height: 1.15;
    margin: 25px 0 15px;
}

#dialogDescription {
    margin: 0 0 26px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

#dialogDescription p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 12px;
}

#dialogDescription p:last-child {
    margin-bottom: 0;
}

/* =========================================
   GALERIA FOTOGRÀFICA
========================================= */

#dialogGallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 15px 0 28px;
}

#dialogGallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background: #d8d5cc;
}

/* =========================================
   BOTONS DE LA FITXA
========================================= */

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    margin-top: 26px;
    border-top: 1px solid var(--color-border);
}

#locationDialog .location-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 50px;
    margin: 0;
    padding: 12px 22px;
    border: 1px solid var(--color-primary);
    font-size: 13px;
    font-weight: 500;
    transition:
        background .3s,
        color .3s,
        border-color .3s;
}

#dialogMaps {
    background: var(--color-primary);
    color: white;
}

#locationDialog #dialogMaps:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

#locationDialog .location-actions a:not(#dialogMaps):hover {
    background: var(--color-primary);
    color: white;
}

/* =========================================
   ICONES SVG
========================================= */

.global-arrow-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    vertical-align: -.15em;
    color: inherit;
    overflow: visible;
    pointer-events: none;
}

.button-arrow .global-arrow-icon {
    width: 22px;
    height: 22px;
}

.main-nav .global-arrow-icon {
    width: 14px;
    height: 14px;
}

.loc-arrow .global-arrow-icon {
    width: 18px;
    height: 18px;
}

.loc-extra .global-arrow-icon {
    width: 13px;
    height: 13px;
}

.municipal-list .global-arrow-icon {
    width: 16px;
    height: 16px;
}

.news-card .global-arrow-icon {
    width: 18px;
    height: 18px;
}

.contact-arrow .global-arrow-icon {
    width: 22px;
    height: 22px;
}

.text-link .global-arrow-icon,
.contact-external .global-arrow-icon,
.contact-discover .global-arrow-icon {
    width: 15px;
    height: 15px;
}

/* =========================================
   ADAPTACIÓ TABLET
========================================= */

@media (max-width: 1100px) {

    .site-header {
        padding: 22px 5%;
    }

    .site-header.scrolled {
        padding: 14px 5%;
    }

    .brand-name {
        font-size: 32px;
    }

    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 2.8px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 35px 6%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: var(--color-background);
        color: var(--color-primary);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all .4s;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        font-size: 18px;
    }

    .hero-title {
        font-size: clamp(75px, 11vw, 130px);
    }

    .intro-grid {
        gap: 40px;
    }
}

@media (max-width: 1000px) {

    .loc-title {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .location-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
    }

    .location-card {
        height: 340px;
    }

    .loc-text strong {
        font-size: 36px;
    }
}

@media (max-width: 782px) {

    .admin-bar .site-header {
        top: 46px;
    }
}

/* =========================================
   ADAPTACIÓ MÒBIL
========================================= */

@media (max-width: 650px) {

    .hero {
        padding-top: 140px;
        padding-bottom: 190px;
    }

    .hero-title {
        font-size: clamp(48px, 12.5vw, 80px);
        line-height: 1;
        margin-bottom: 24px;
    }

    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .eyebrow-line {
        width: 25px;
    }

    .hero-description {
        font-size: 15px;
        max-width: 300px;
        margin-bottom: 28px;
    }

    .button {
        padding: 15px 20px;
        min-height: 52px;
        gap: 25px;
        font-size: 13px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, #0009, #0002),
            linear-gradient(
                180deg,
                #0006,
                transparent 25%,
                transparent 55%,
                #000a
            );
    }

    .hero-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        bottom: 25px;
    }

    .scroll-link {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .scroll-arrow {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .carousel-panel {
        justify-content: space-between;
        gap: 15px;
    }

    .carousel-details {
        flex: 1;
        min-width: 0;
        max-width: 180px;
    }

    .carousel-controls button {
        width: 40px;
        height: 40px;
    }

    .scene-name {
        font-size: 13px;
    }

    .section {
        padding: 80px var(--page-padding);
    }

    .section h2 {
        font-size: clamp(50px, 12vw, 75px);
    }

    .section p {
        font-size: 16px;
    }

    .section-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 25px;
    }

    .intro-description {
        padding-bottom: 0;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-arrow .global-arrow-icon {
        width: 20px;
        height: 20px;
    }

    .locations {
        padding: 70px 0;
    }

    .loc-title {
        padding: 28px 0;
    }

    .loc-title h2 {
        font-size: clamp(50px, 12vw, 75px);
    }
}

@media (max-width: 600px) {

    .admin-bar .site-header.scrolled {
        top: 0;
    }

    .location-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .location-card {
        height: 340px;
    }

    .loc-text strong {
        font-size: 34px;
    }

    .loc-extra {
        opacity: 1;
        max-height: 60px;
        margin-top: 10px;
    }

    .filters > * {
        width: 100%;
    }

    .filters input {
        min-width: 0;
    }

    #locationDialog {
        width: 94vw;
        max-width: 94vw;
        max-height: 92vh;
        max-height: 92dvh;
    }

    #locationDialog .dialog-photo {
        height: 230px;
    }

    #locationDialog .dialog-content {
        padding: 24px 20px;
    }

    #locationDialog h2 {
        font-size: 38px;
    }

    #locationDialog h3 {
        font-size: 28px;
    }

    .location-facts {
        gap: 12px;
    }

    .location-facts dd {
        font-size: 13px;
    }

    #dialogGallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #locationDialog .location-actions a {
        width: 100%;
    }
}

/* =========================================
   ACCESSIBILITAT
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
    }

    .reveal.reveal-pending {
        opacity: 1;
        transform: none;
    }
}