/*
Theme Name: ANGCR
Theme URI: https://angcr.es
Author: ANGCR
Author URI: https://angcr.es
Description: Tema a medida para la Asociación Nacional de Guardias Civiles Retirados (ANGCR). Incluye portada, secciones de la asociación, noticias, convenios y llamada a la acción para hacerse socio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: angcr
Tags: custom-menu, custom-logo, featured-images, translation-ready
*/

/* =========================================================
   0. VARIABLES
   ========================================================= */
:root{
	--angcr-green-dark:   #16332b;
	--angcr-green:        #1c4235;
	--angcr-green-light:  #d7e4dc;
	--angcr-gold:         #e8a838;
	--angcr-gold-dark:    #d1922a;
	--angcr-cream:        #f6f5f0;
	--angcr-gray:         #eceae2;
	--angcr-ink:          #1c1f1d;
	--angcr-ink-soft:     #4b524d;
	--angcr-white:        #ffffff;

	--font-display: 'Oswald', 'Arial Narrow', sans-serif;
	--font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

	--radius-sm: 4px;
	--container: 1180px;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
	margin:0;
	font-family: var(--font-body);
	color: var(--angcr-ink);
	background: var(--angcr-white);
	line-height: 1.6;
	font-size: 17px;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration:none; }
.main-navigation ul, .footer-col ul{ margin:0; padding:0; list-style:none; }

.entry-content ul{
	margin: 0 0 20px;
	padding-left: 22px;
	list-style: disc;
}
.entry-content ol{
	margin: 0 0 20px;
	padding-left: 22px;
	list-style: decimal;
}
.entry-content li{
	margin-bottom: 6px;
}
h1,h2,h3,h4{
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: .3px;
	line-height: 1.15;
	margin: 0 0 16px;
	color: var(--angcr-green-dark);
}
p{ margin: 0 0 16px; color: var(--angcr-ink-soft); }
.container{
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
.screen-reader-text{
	position:absolute !important;
	clip: rect(1px,1px,1px,1px);
	width:1px; height:1px; overflow:hidden;
}
button, .btn{
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: 14px;
	font-weight: 500;
	cursor:pointer;
	border:none;
	display:inline-block;
	padding: 14px 30px;
	border-radius: var(--radius-sm);
	transition: transform .15s ease, background-color .15s ease;
}
.btn-primary{ background: var(--angcr-green); color: var(--angcr-white); }
.btn-primary:hover{ background: var(--angcr-green-dark); transform: translateY(-1px); }
.btn-gold{ background: var(--angcr-gold); color: var(--angcr-green-dark); }
.btn-gold:hover{ background: var(--angcr-gold-dark); transform: translateY(-1px); }
.btn-outline{ background: transparent; color: var(--angcr-white); border: 2px solid var(--angcr-white); padding: 12px 28px; }
.btn-outline:hover{ background: var(--angcr-white); color: var(--angcr-green-dark); }

.eyebrow-rule{
	width: 56px;
	height: 4px;
	background: var(--angcr-gold);
	margin: 6px 0 22px;
}

/* top thin bar */
.top-bar{
	background: var(--angcr-green-dark);
	height: 8px;
}

/* =========================================================
   2. HEADER
   ========================================================= */
.site-header{
	background: var(--angcr-white);
	border-bottom: 1px solid #ece9e2;
	position: sticky;
	top:0;
	z-index: 500;
}
.header-inner{
	display:flex;
	align-items:center;
	justify-content: space-between;
	gap: 28px;
	padding: 14px 24px;
}
.site-branding{
	display:flex;
	align-items:center;
	gap:16px;
	min-width:0;
}
.site-branding img.custom-logo{
	height: 100px;
	width: 100px;
	object-fit: contain;
}
.branding-text .site-title{
	margin:0;
	font-size: 30px;
	color: var(--angcr-green-dark);
	line-height:1;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.branding-text .site-title a{ color: inherit; }
.branding-text .site-description{
	margin:4px 0 0;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .4px;
	color: var(--angcr-ink-soft);
	text-transform: uppercase;
	max-width: 260px;
	line-height: 1.3;
}

.main-navigation{ margin-left:auto; }
.main-navigation ul{
	display:flex;
	align-items:center;
	gap: 30px;
}
.main-navigation a{
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--angcr-ink);
	padding: 6px 2px;
	border-bottom: 3px solid transparent;
	display:inline-block;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a{
	color: var(--angcr-green);
	border-bottom-color: var(--angcr-gold);
}

.menu-toggle{
	display:none;
	background: var(--angcr-green-dark);
	color:#fff;
	border-radius: var(--radius-sm);
	padding: 10px 14px;
}

/* =========================================================
   3. HERO
   ========================================================= */
.hero{
	position: relative;
	min-height: 560px;
	display:flex;
	align-items:center;
	background-color: var(--angcr-green-dark);
	background-size: cover;
	background-position: center;
	overflow:hidden;
}
.hero::before{
	content:"";
	position:absolute; inset:0;
	background: linear-gradient(90deg, rgba(16,32,26,.92) 0%, rgba(16,32,26,.72) 38%, rgba(16,32,26,.18) 68%, rgba(16,32,26,.05) 100%);
}
.hero-inner{
	position: relative;
	z-index: 2;
	max-width: 640px;
	padding: 60px 24px;
}
.hero h1{
	color: var(--angcr-white);
	font-size: clamp(30px, 4vw, 44px);
	margin-bottom: 18px;
}
.hero .lead{
	color: #e9ece9;
	font-size: 19px;
	margin-bottom: 8px;
}
.hero .eyebrow-rule{ margin-bottom: 26px; }
.hero-actions{
	display:flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 10px;
}

/* Variante: foto completa (ya lleva su propio título/logo), sin recortar */
.hero-full-image{
	min-height: 0;
	background: none;
	display: block;
}
.hero-full-image::before{ content: none; }
.hero-full-image-img{
	display: block;
	width: 100%;
	height: auto;
}
.hero-caption-bar{
	background: var(--angcr-green-dark);
	padding: 22px 24px;
	display: flex;
	justify-content: center;
}
.hero-caption-bar .hero-actions{ margin-top: 0; }
@media (max-width: 640px){
	.hero-caption-bar{ padding: 18px 16px; }
	.hero-caption-bar .hero-actions{ width: 100%; justify-content: center; }
}

/* =========================================================
   4. INTRO / ABOUT
   ========================================================= */
.about-section{
	padding: 88px 0;
}
.about-grid{
	display:grid;
	grid-template-columns: 340px 1fr;
	gap: 64px;
	align-items:center;
}
.about-seal img{
	width:100%;
	max-width: 340px;
	margin: 0 auto;
}
.about-copy h2{ font-size: 34px; }
.about-copy p{ font-size: 17px; }
.about-copy strong{ color: var(--angcr-ink); }

/* =========================================================
   5. FEATURE / VALUE CARDS
   ========================================================= */
.features-section{
	background: var(--angcr-gray);
	padding: 64px 0;
}
.features-grid{
	display:grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 44px;
}
.feature-card{ display:flex; gap:18px; align-items:flex-start; }
.feature-icon{
	flex: 0 0 auto;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--angcr-green-dark);
	display:flex;
	align-items:center;
	justify-content:center;
}
.feature-icon svg{ width: 30px; height:30px; stroke: var(--angcr-gold); fill:none; }
.feature-card h3{
	font-size: 18px;
	margin-bottom: 8px;
}
.feature-card p{ font-size: 15px; margin-bottom:0; }

/* =========================================================
   6. NEWS
   ========================================================= */
.news-section{ padding: 90px 0 70px; text-align:center; }
.news-section .section-heading{
	font-size: 30px;
	display:inline-block;
}
.news-section .eyebrow-rule{ margin-left:auto; margin-right:auto; }
.news-grid{
	margin-top: 46px;
	display:grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	text-align:left;
}
.news-card{
	border: 1px solid #eceae2;
	border-radius: var(--radius-sm);
	overflow:hidden;
	background: var(--angcr-white);
	display:flex;
	flex-direction:column;
}
.news-card .news-thumb{
	aspect-ratio: 16/10.5;
	overflow:hidden;
	background: var(--angcr-gray);
}
.news-card .news-thumb img{ width:100%; height:100%; object-fit:cover; }
.news-card-body{ padding: 22px 22px 26px; flex:1; display:flex; flex-direction:column;}
.news-card h3{ font-size: 18px; margin-bottom:10px; }
.news-card h3 a:hover{ color: var(--angcr-green); }
.news-card p{ font-size: 15px; flex:1; }
.news-card .read-more{
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight:600;
	color: var(--angcr-green);
	text-transform: uppercase;
	letter-spacing:.3px;
}
.news-actions{ margin-top: 48px; }

/* =========================================================
   7. CTA BAND
   ========================================================= */
.cta-band{
	background: var(--angcr-green-dark);
	padding: 56px 0;
}
.cta-inner{
	display:flex;
	align-items:center;
	gap: 30px;
	justify-content: space-between;
	flex-wrap: wrap;
}
.cta-text{ display:flex; align-items:center; gap:24px; max-width: 720px;}
.cta-icon{
	flex: 0 0 auto;
	width: 74px; height:74px;
	border-radius:50%;
	border: 2px solid var(--angcr-gold);
	display:flex; align-items:center; justify-content:center;
}
.cta-icon svg{ width:32px; height:32px; stroke:var(--angcr-gold); fill:none; }
.cta-text h2{ color: var(--angcr-white); font-size: 24px; margin-bottom:10px; }
.cta-text p{ color: #cfd7d2; margin-bottom:0; font-size:15.5px; }

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer{
	background: var(--angcr-green-dark);
	color: #cfd7d2;
	padding-top: 60px;
}
.footer-grid{
	display:grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand{ display:flex; gap:14px; align-items:flex-start; }
.footer-brand img{ width:56px; height:56px; object-fit:contain; }
.footer-brand h3{ color:#fff; font-size:19px; margin-bottom:4px; }
.footer-brand .desc{ font-size:12px; letter-spacing:.3px; color:#a9b6ae; text-transform:uppercase; margin-bottom:10px; }
.footer-brand .tagline{ font-size:14px; color:#cfd7d2; margin-bottom:0; }
.footer-col h4{
	color: var(--angcr-gold);
	font-size: 14px;
	letter-spacing:.4px;
	margin-bottom: 16px;
}
.footer-col ul li{ margin-bottom: 10px; }
.footer-col ul li a{ font-size: 14.5px; color:#cfd7d2; }
.footer-col ul li a:hover{ color: var(--angcr-gold); }
.footer-social{ display:flex; gap:12px; margin-top:4px; }
.footer-social a{
	width:38px; height:38px; border-radius:50%;
	border: 1px solid rgba(255,255,255,.35);
	display:flex; align-items:center; justify-content:center;
}
.footer-social a:hover{ background: var(--angcr-gold); border-color: var(--angcr-gold); }
.footer-social svg{ width:16px; height:16px; fill:#fff; }
.footer-bottom{
	padding: 22px 0;
	text-align:center;
	font-size: 13px;
	color: #92a099;
}

/* =========================================================
   9. INNER PAGE CONTENT (page.php / single.php)
   ========================================================= */
.page-hero{
	background: var(--angcr-green-dark);
	padding: 60px 0 44px;
}
.page-hero h1{ color:#fff; margin-bottom:0; }
.entry-content{ padding: 60px 0 80px; }
.entry-content .container{ max-width: 820px; }
.entry-content img{ border-radius: var(--radius-sm); margin: 12px 0 24px; }
.entry-content h2{ font-size:26px; margin-top:36px; }
.entry-content h3{ font-size:20px; }
.entry-meta{ font-size:13px; color: var(--angcr-ink-soft); margin-bottom:8px; text-transform:uppercase; letter-spacing:.3px; }

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width: 960px){
	.about-grid{ grid-template-columns: 1fr; }
	.about-seal{ max-width:220px; margin:0 auto; }
	.features-grid{ grid-template-columns: 1fr; gap: 34px; }
	.news-grid{ grid-template-columns: 1fr; }
	.footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px){
	.main-navigation{ display:none; }
	.menu-toggle{ display:inline-block; }
	.site-header.nav-open .main-navigation{
		display:block;
		position:absolute;
		top:100%; left:0; right:0;
		background:#fff;
		border-top:1px solid #eceae2;
		box-shadow: 0 12px 20px rgba(0,0,0,.08);
	}
	.site-header.nav-open .main-navigation ul{
		flex-direction:column;
		align-items:flex-start;
		gap:0;
		padding: 8px 24px 18px;
	}
	.site-header.nav-open .main-navigation a{
		display:block;
		width:100%;
		padding: 12px 0;
		border-bottom: 1px solid #f1efe8;
	}
	.cta-inner{ flex-direction:column; align-items:flex-start; }
	.footer-grid{ grid-template-columns: 1fr; }
}
