/* Ascó Turisme — light flexbox redesign */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f6f6;
  --color-bg-muted: #efefef;
  --color-primary: #772d84;
  --color-accent: #cc342b;
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-footer: #444444;
  --color-border: #e2e2e2;
  --font: "Archivo", "Segoe UI", sans-serif;
  --max: 1100px;
  --header-h: 72px;
  --radius: 2px;
  --ease: 0.25s ease;
}

@font-face {
  font-family: "Archivo";
  src: url("/s/archivo/v19/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLyTOxK-vA.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/s/archivo/v19/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxI.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/s/archivo/v19/k3kBo8UDI-1M0wlSfdzyIEkpwTM29hr-8mTYCx6muLRm.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover {
  color: var(--color-primary);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand img {
  height: 48px;
  width: auto;
}
.brand:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-list a:hover,
.nav-list a.is-active {
  color: var(--color-accent);
}

.nav-list .has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: 0.1em;
}

.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  z-index: 50;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  display: block;
}
.submenu a {
  text-transform: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0;
  padding: 0.55rem 1rem;
}
.submenu a:hover {
  background: var(--color-bg-soft);
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-border);
}
.lang-switch a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 0.35rem;
  text-transform: uppercase;
}
.lang-switch a:hover,
.lang-switch a.is-active {
  color: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(68vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(34, 34, 34, 0.15) 0%, rgba(68, 34, 84, 0.72) 55%, rgba(34, 34, 34, 0.88) 100%),
    linear-gradient(135deg, #5a1f66 0%, #772d84 40%, #3d1a45 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(204, 52, 43, 0.25), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}
.hero-inner {
  position: relative;
  padding: 3.5rem 0 3rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.hero-brand {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  max-width: 28ch;
  line-height: 1.35;
  animation: fadeUp 0.8s ease 0.12s both;
}
.hero p {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  opacity: 0.92;
  animation: fadeUp 0.8s ease 0.22s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff !important;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-primary) !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.8s ease 0.32s both;
}

/* Sections */
main {
  flex: 1;
}

.section {
  padding: 3.25rem 0;
}
.section-alt {
  background: var(--color-bg-soft);
}
.section-head {
  margin-bottom: 1.75rem;
}
.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--color-primary);
}
.section-head p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 55ch;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.feature {
  flex: 1 1 220px;
  padding: 1.5rem 0;
  border-top: 3px solid var(--color-primary);
  transition: border-color var(--ease);
}
.feature:hover {
  border-top-color: var(--color-accent);
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
}
.feature p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.intro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.intro-grid > * {
  flex: 1 1 280px;
}
.intro-grid h2 {
  margin-top: 0;
  color: var(--color-primary);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
}
.link-list a:hover {
  color: var(--color-accent);
}
.link-list a span {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.85rem;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.tile {
  flex: 1 1 240px;
  background: #fff;
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.35rem;
  transition: border-color var(--ease), transform var(--ease);
}
.section-alt .tile {
  background: #fff;
}
.tile:hover {
  border-left-color: var(--color-accent);
  transform: translateY(-2px);
}
.tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.tile p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--color-primary), #5a1f66 55%, #3d1a45);
  color: #fff;
  padding: 2.75rem 0;
}
.cta-band h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}
.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  max-width: 48ch;
}

/* Page content */
.page-header {
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.75rem;
}
.page-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--color-primary);
}
.page-header p {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
}

.page-content {
  padding-bottom: 3rem;
}
.page-content h2 {
  color: var(--color-primary);
  margin-top: 2rem;
}
.page-content ul {
  padding-left: 1.2rem;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.contact-block > * {
  flex: 1 1 240px;
}
.contact-block dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.75rem;
}
.contact-block dd {
  margin: 0.2rem 0 0;
}

.dir-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.dir-item {
  flex: 1 1 260px;
  padding: 1.1rem 1.2rem;
  background: var(--color-bg-soft);
  border-top: 2px solid var(--color-primary);
}
.dir-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.dir-item p {
  margin: 0.2rem 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.blog-container {
  padding: 0 0 2rem;
}
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.blog-card {
  flex: 1 1 280px;
  padding: 1.25rem;
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-primary);
}
.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.blog-title a {
  color: var(--color-text);
}
.blog-title a:hover {
  color: var(--color-accent);
}
.blog-preview {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.blog-preview p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: #ddd;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: #f0a8a4;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid > * {
  flex: 1 1 180px;
}
.footer-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 0.4rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #bbb;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social-list a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem 1rem;
  }
  .site-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 0.75rem;
    background: var(--color-bg-soft);
  }
  .has-sub.is-open > .submenu {
    display: block;
  }
  .lang-switch {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .header-inner {
    position: relative;
  }
}
