/*
Theme Name:  ACRD Pardavila
Theme URI:   https://www.acrdpardavila.org
Author:      ACRD Pardavila
Description: Tema a medida – cultura, tradición e comunidade en Pardavila.
Version:     3.0.0
Text Domain: pardavila
*/

/* ══════════════════════════════════════════
   FONTES E VARIABLES
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Paleta Galiza */
    --noite:      #0D1F16;   /* verde bosque noturno */
    --bosque:     #1A3626;   /* verde escuro */
    --verde:      #1D9E75;   /* verde marca */
    --verde-cl:   #52C99A;   /* verde claro */
    --ouro:       #C9952A;   /* ouro gaita / fogueira */
    --ouro-cl:    #F0C96A;   /* ouro claro */
    --pedra:      #FAF7F0;   /* creme / pedra vella */
    --pedra-med:  #EDE8DE;   /* pedra media */
    --terra:      #5C3D1E;   /* terra / madeira */
    --tinta:      #1A1209;   /* tinta escura */
    --muted:      #7A7060;

    --radius:     14px;
    --radius-lg:  22px;
    --shadow-sm:  0 2px 10px rgba(13,31,22,.12);
    --shadow-md:  0 6px 32px rgba(13,31,22,.16);
    --shadow-lg:  0 16px 56px rgba(13,31,22,.22);
    --shadow-ouro: 0 4px 20px rgba(201,149,42,.35);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --ease-out:   cubic-bezier(.22,1,.36,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--tinta);
    background: var(--pedra);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-decoration: none; transition: color .15s; }
a:hover { color: var(--bosque); }

/* ══════════════════════════════════════════
   ANIMACIÓNS
══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(36px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
    from { opacity:0; } to { opacity:1; }
}
@keyframes floatSlow {
    0%,100% { transform:translateY(0) rotate(0deg); }
    40%     { transform:translateY(-18px) rotate(2deg); }
    70%     { transform:translateY(-8px) rotate(-1deg); }
}
@keyframes spinSlow {
    from { transform:rotate(0deg); }
    to   { transform:rotate(360deg); }
}
@keyframes waveFlow {
    0%   { d:path("M0,32 C200,0 400,64 600,32 C800,0 1000,64 1200,32 L1200,80 L0,80Z"); }
    50%  { d:path("M0,48 C200,80 400,16 600,48 C800,80 1000,16 1200,48 L1200,80 L0,80Z"); }
    100% { d:path("M0,32 C200,0 400,64 600,32 C800,0 1000,64 1200,32 L1200,80 L0,80Z"); }
}
@keyframes shimmerGold {
    0%   { background-position:-200% center; }
    100% { background-position: 200% center; }
}
@keyframes pulse {
    0%,100% { transform:scale(1); opacity:1; }
    50%     { transform:scale(1.08); opacity:.8; }
}
@keyframes gradMove {
    0%   { background-position:0% 50%; }
    50%  { background-position:100% 50%; }
    100% { background-position:0% 50%; }
}

/* Entradas ao scroll */
.pard-reveal {
    opacity:0;
    transform:translateY(32px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.pard-reveal.visible { opacity:1; transform:translateY(0); }
.pard-reveal:nth-child(2) { transition-delay:.1s; }
.pard-reveal:nth-child(3) { transition-delay:.2s; }
.pard-reveal:nth-child(4) { transition-delay:.3s; }
.pard-reveal:nth-child(5) { transition-delay:.4s; }
.pard-reveal:nth-child(6) { transition-delay:.5s; }

/* ══════════════════════════════════════════
   BANNER SUPERIOR (header.jpg)
══════════════════════════════════════════ */
.site-banner {
    width: 100%;
    background: var(--noite);
    line-height: 0;
    overflow: hidden;
}
.site-banner__img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: opacity .2s;
}
.site-banner a:hover .site-banner__img { opacity: .92; }

@media (max-width: 640px) {
    .site-banner__img { max-height: 80px; }
}

/* ══════════════════════════════════════════
   CABECEIRA (barra de navegación)
══════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(13,31,22,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,149,42,.2);
    transition: box-shadow .3s;
}
.site-header.scrolled {
    box-shadow: 0 4px 32px rgba(0,0,0,.4);
}
.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-header__logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pedra);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: .5px;
}
.site-header__logo:hover { color: var(--ouro-cl); }
.site-header__logo-mark {
    width: 38px; height: 38px;
    background: var(--ouro);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-ouro);
}

/* Navegación */
.site-nav { display:flex; align-items:center; gap:4px; }
.site-nav a {
    padding: 7px 15px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(250,247,240,.7);
    transition: background .15s, color .15s;
    letter-spacing: .2px;
}
.site-nav a:hover,
.site-nav a.current-menu-item {
    background: rgba(201,149,42,.15);
    color: var(--ouro-cl);
}
.site-nav a.current-menu-item { color: var(--ouro-cl); }
.site-nav .nav-inscribirse {
    background: var(--ouro);
    color: var(--noite) !important;
    margin-left: 10px;
    font-weight: 700;
    animation: pulse 3s ease infinite;
}
.site-nav .nav-inscribirse:hover {
    background: var(--ouro-cl);
    animation: none;
}

/* Hamburguesa */
.site-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 9px;
    color: var(--pedra);
}
.site-header__menu-toggle:hover { background: rgba(255,255,255,.08); }

@media (max-width:820px) {
    .site-header__menu-toggle { display:flex; }
    .site-nav {
        display: none;
        position: fixed;
        top: 70px; left:0; right:0;
        background: var(--noite);
        border-top: 1px solid rgba(201,149,42,.2);
        padding: 16px 24px 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        box-shadow: 0 24px 60px rgba(0,0,0,.5);
        animation: fadeUp .2s var(--ease-out);
        z-index: 199;
    }
    .site-nav.is-open { display:flex; }
    .site-nav a { padding:13px 16px; font-size:16px; }
    .site-nav .nav-inscribirse { text-align:center; margin:10px 0 0; animation:none; }
}

/* ══════════════════════════════════════════
   PE DE PÁXINA
══════════════════════════════════════════ */
.site-footer {
    background: var(--noite);
    color: rgba(250,247,240,.7);
    padding: 64px 28px 32px;
    position: relative;
    overflow: hidden;
}
.site-footer__triskel {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 280px; height: 280px;
    opacity: .04;
    animation: spinSlow 60s linear infinite;
}
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}
.site-footer__brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pedra);
    margin-bottom: 12px;
    letter-spacing: .5px;
}
.site-footer__tagline {
    font-size: 13px;
    color: var(--ouro);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}
.site-footer h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ouro-cl);
    margin-bottom: 16px;
    letter-spacing: .5px;
}
.site-footer nav { display:flex; flex-direction:column; gap:10px; }
.site-footer nav a {
    font-size: 14px;
    color: rgba(250,247,240,.65);
    transition: color .15s, padding-left .2s;
    display: flex; align-items: center; gap: 6px;
}
.site-footer nav a::before {
    content: '›';
    color: var(--ouro);
    font-size: 16px;
    transition: transform .2s;
}
.site-footer nav a:hover {
    color: var(--pedra);
    padding-left: 4px;
}
.site-footer nav a:hover::before { transform: translateX(3px); }
.site-footer__copy {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(201,149,42,.15);
    text-align: center;
    font-size: 13px;
    opacity: .5;
    position: relative;
    z-index: 1;
}
.site-footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.site-footer__social {
    width: 38px; height: 38px;
    background: rgba(201,149,42,.15);
    border: 1px solid rgba(201,149,42,.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ouro-cl);
    font-size: 16px;
    transition: background .2s, transform .2s var(--ease-spring);
    text-decoration: none;
}
.site-footer__social:hover {
    background: var(--ouro);
    color: var(--noite);
    transform: translateY(-3px);
}

@media (max-width:720px) {
    .site-footer__inner { grid-template-columns:1fr; gap:32px; }
}

/* ══════════════════════════════════════════
   UTILIDADES GLOBAIS
══════════════════════════════════════════ */
.screen-reader-text { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.skip-link {
    position:absolute; left:-9999px; top:0; z-index:9999;
    background:var(--ouro); color:var(--noite); padding:8px 20px;
    border-radius:0 0 10px 0; font-weight:700;
}
.skip-link:focus { left:0; }
.aligncenter { display:block; margin:auto; }
.alignleft  { float:left;  margin-right:1.5em; margin-bottom:.5em; }
.alignright { float:right; margin-left:1.5em; margin-bottom:.5em; }
