/*
 * main.css — Design tokens, reset, typography, layout primitives.
 * fredi-theme-vidona
 */

/* ================================================================
   DESIGN TOKENS
   Single source of truth: Vidona Color System / UI Tokens / Button
   System (Vidona-Style.txt). Every other stylesheet in the theme
   consumes these variables — update the palette here only.
   ================================================================ */
:root {
	/* ── Color System ──────────────────────────────────────────── */
	--color-primary-navy: #082D5E; /* Headings, primary buttons, dark sections */
	--color-deep-blue:    #005F9F; /* Interactive states, links, accents */
	--color-brand-blue:   #007CB0; /* Primary accent / CTA background */
	--color-cyan-blue:    #0FAED0; /* Secondary accents, gradients */
	--color-light-cyan:   #31C4E8; /* Hover highlights, subtle emphasis */
	--color-text-dark:    #092850; /* Body text on light backgrounds */
	--color-white:        #FFFFFF;

	/* Semantic aliases — consumed throughout the theme's CSS */
	--primary-color:     var(--color-primary-navy);
	--secondary-color:   var(--color-brand-blue);
	--accent-color:      var(--color-cyan-blue);
	--accent-color-hover: var(--color-light-cyan);
	--text-color:        var(--color-text-dark);
	--background-color:  var(--color-white);
	--dark-bg:            var(--color-primary-navy);
	--dark-section:       var(--color-primary-navy);
	--white:              var(--color-white);
	--cream:              var(--color-white);
	--border-subtle:     rgba(9, 40, 80, 0.12);
	--border-dark:       rgba(255, 255, 255, 0.14);
	--overlay-dark:      rgba(8, 45, 94, 0.82);

	/* ── Button System ─────────────────────────────────────────── */
	--btn-primary-bg:         var(--color-primary-navy);
	--btn-primary-bg-hover:   var(--color-deep-blue);
	--btn-primary-text:       var(--color-white);
	--btn-secondary-border:   var(--color-primary-navy);
	--btn-secondary-text:     var(--color-primary-navy);
	--btn-secondary-bg-hover: rgba(8, 45, 94, 0.05);
	--link-color:             var(--color-deep-blue);

	/* Typography */
	--font-display: 'Arial Black', 'Arial Bold', Impact, 'Haettenschweiler',
	                'Franklin Gothic Bold', Charcoal, sans-serif;
	--font-body:    Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;

	/* ── UI Tokens ─────────────────────────────────────────────── */
	--radius:        12px;
	--card-padding:  clamp(1.5rem, 3vw, 2rem);  /* 24–32px */
	--section-space: clamp(6rem, 10vw, 9rem);   /* 96–144px vertical */
	--container-w:   clamp(1200px, 92vw, 1280px);
	--shadow-subtle: 0 2px 16px rgba(9, 40, 80, 0.08);

	/* Sizing */
	--nav-h:    60px;
	--max-w:    var(--container-w);
	--pad:      clamp(1rem, 4vw, 3rem);
	--gap-px:   3px;
	--gap-sm:   1rem;
	--gap-md:   2rem;
	--gap-lg:   4rem;
	--gap-xl:   var(--section-space);

	/* Transitions */
	--ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================================
   RESET
   ================================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin:  0;
	padding: 0;
}

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

body {
	font-family: var(--font-body);
	background-color: var(--background-color);
	color: var(--text-color);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}

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

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

ul,
ol {
	list-style: none;
}

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

/* ================================================================
   SCREEN-READER ONLY
   ================================================================ */
.aa-sr-only,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	clip: auto;
	height: auto;
	left: 6px;
	top: 7px;
	width: auto;
	z-index: 100000;
	background: var(--white);
	color: var(--primary-color);
	padding: 0.5rem 1rem;
	font-weight: 700;
	font-size: 0.9rem;
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.aa-container {
	max-width: var(--max-w);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--pad);
	padding-right: var(--pad);
}

/* ================================================================
   SHARED TEXT PRIMITIVES
   ================================================================ */
.aa-label {
	display: block;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-color);
	opacity: 0.5;
	margin-bottom: 0.8rem;
}

.aa-headline {
	font-family: var(--font-display);
	font-size: clamp(1.85rem, 4.2vw, 3.6rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	color: var(--text-color);
	margin-bottom: 1.5rem;
}

.aa-body-text {
	font-size: 0.82rem;
	line-height: 1.78;
	color: rgba(9, 40, 80, 0.62);
	max-width: 490px;
	margin-bottom: 2rem;
}

/* ================================================================
   BUTTONS — Button System (Primary / Secondary / Text Link)
   ================================================================ */
.aa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 2.2rem;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.2s var(--ease-out),
	            color 0.2s var(--ease-out),
	            border-color 0.2s var(--ease-out);
}

.aa-btn:focus-visible {
	outline: 2px solid var(--color-deep-blue);
	outline-offset: 2px;
}

.aa-btn:disabled,
.aa-btn[aria-disabled='true'] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Primary — solid navy, white text */
.aa-btn--primary {
	background-color: var(--btn-primary-bg);
	color: var(--btn-primary-text);
	border-color: var(--btn-primary-bg);
}

.aa-btn--primary:hover,
.aa-btn--primary:focus-visible {
	background-color: var(--btn-primary-bg-hover);
	border-color: var(--btn-primary-bg-hover);
}

/* Secondary — transparent, navy border + text */
.aa-btn--secondary {
	background-color: transparent;
	color: var(--btn-secondary-text);
	border-color: var(--btn-secondary-border);
}

.aa-btn--secondary:hover,
.aa-btn--secondary:focus-visible {
	background-color: var(--btn-secondary-bg-hover);
}

/* View-more link — Text Link component (color #005F9F, underline on hover only) */
.aa-view-more {
	display: block;
	text-align: center;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--link-color);
	text-decoration: none;
	padding: 0.6rem;
}

.aa-view-more:hover,
.aa-view-more:focus-visible {
	text-decoration: underline;
	outline: none;
}

/* ================================================================
   SKIP LINK (ACCESSIBILITY)
   ================================================================ */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	background: var(--accent-color);
	color: var(--primary-color);
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.5rem 1.25rem;
	z-index: 9999;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 0;
}

/* ================================================================
   ABOUT SECTION — TWO-COLUMN LAYOUT
   ================================================================ */
.aa-about {
	background-color: var(--cream);
	padding: var(--gap-xl) var(--pad);
}

.aa-about__grid {
	max-width: var(--max-w);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

/* ================================================================
   WORDPRESS NATIVE ELEMENTS
   ================================================================ */

/* Alignments */
.alignleft  { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignwide   { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull   { width: 100%; max-width: 100%; }

/* WP caption */
.wp-caption { max-width: 100%; }
.wp-caption-text {
	font-size: 0.78rem;
	color: rgba(9, 40, 80, 0.55);
	margin-top: 0.4rem;
	text-align: center;
}

/* Gallery */
.gallery { display: grid; gap: 4px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item img  { width: 100%; height: 100%; object-fit: cover; }

/* WooCommerce — align its default buttons with the Button System's Primary look */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background-color: var(--btn-primary-bg);
	color: var(--btn-primary-text);
	border: 1px solid var(--btn-primary-bg);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.72rem 2rem;
	transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.woocommerce #respond input#submit:focus-visible {
	background-color: var(--btn-primary-bg-hover);
	border-color: var(--btn-primary-bg-hover);
	color: var(--btn-primary-text);
	outline: none;
}

.woocommerce a.added_to_cart {
	color: var(--link-color);
}

/* ================================================================
   SINGULAR / BLOG CONTENT
   ================================================================ */
.ftvd-content {
	max-width: 760px;
	margin: 0 auto;
	padding: var(--gap-xl) var(--pad);
}

.ftvd-content h1,
.ftvd-content h2,
.ftvd-content h3,
.ftvd-content h4,
.ftvd-content h5,
.ftvd-content h6 {
	font-family: var(--font-display);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin-bottom: 0.75rem;
	margin-top: 2rem;
}

.ftvd-content p {
	font-size: 1rem;
	line-height: 1.8;
	margin-bottom: 1.25rem;
	color: rgba(9, 40, 80, 0.8);
}

/* Text Link component — color #005F9F, underline on hover only */
.ftvd-content a {
	color: var(--link-color);
	text-decoration: none;
}

.ftvd-content a:hover,
.ftvd-content a:focus-visible {
	text-decoration: underline;
}

.ftvd-content ul,
.ftvd-content ol {
	list-style: revert;
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

.ftvd-content blockquote {
	border-left: 4px solid var(--accent-color);
	padding-left: 1.25rem;
	margin: 2rem 0;
	font-size: 1.1rem;
	font-style: italic;
	color: rgba(9, 40, 80, 0.7);
}

.ftvd-content figure { margin: 2rem 0; }

.ftvd-content img {
	width: 100%;
	height: auto;
	border-radius: 0;
}

/* Entry meta */
.ftvd-entry-meta {
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(9, 40, 80, 0.5);
	margin-bottom: 2rem;
}

.ftvd-entry-meta span + span::before {
	content: ' · ';
}

/* Post thumbnail */
.ftvd-post-thumbnail {
	width: 100%;
	max-height: 520px;
	overflow: hidden;
	margin-bottom: 2rem;
}

.ftvd-post-thumbnail img,
.ftvd-post-thumbnail video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Pagination */
.ftvd-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: var(--gap-md) var(--pad);
}

.ftvd-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.85rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.ftvd-pagination .page-numbers.current,
.ftvd-pagination .page-numbers:hover {
	background-color: var(--btn-primary-bg);
	color: var(--white);
	border-color: var(--btn-primary-bg);
}

.ftvd-pagination .page-numbers:focus-visible {
	outline: 2px solid var(--color-deep-blue);
	outline-offset: 2px;
}

/* Post archive cards */
.ftvd-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: var(--gap-xl) var(--pad);
}

.ftvd-archive-card {
	display: flex;
	flex-direction: column;
}

.ftvd-archive-card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
	background-color: var(--dark-section);
	margin-bottom: 1rem;
}

.ftvd-archive-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease-out);
}

.ftvd-archive-card:hover .ftvd-archive-card__thumb img {
	transform: scale(1.05);
}

.ftvd-archive-card__title {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin-bottom: 0.5rem;
}

.ftvd-archive-card__title a:hover {
	color: var(--link-color);
}

.ftvd-archive-card__excerpt {
	font-size: 0.82rem;
	line-height: 1.7;
	color: rgba(9, 40, 80, 0.62);
	flex-grow: 1;
	margin-bottom: 1rem;
}

.ftvd-archive-card__meta {
	font-size: 0.6rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(9, 40, 80, 0.45);
}

/* 404 */
.ftvd-404-wrap {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--gap-xl) var(--pad);
}

.ftvd-404-code {
	font-family: var(--font-display);
	font-size: clamp(6rem, 20vw, 16rem);
	font-weight: 900;
	line-height: 0.9;
	color: var(--accent-color);
	letter-spacing: -0.04em;
}

.ftvd-404-msg {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 4vw, 3rem);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.015em;
	margin: 1rem 0 2rem;
}

/* Search form */
.ftvd-search-wrap {
	max-width: 560px;
	margin: 0 auto;
	padding: var(--gap-xl) var(--pad);
}

.ftvd-search-form {
	display: flex;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius);
	overflow: hidden;
}

.ftvd-search-form input[type='search'] {
	flex: 1;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	border: none;
	background-color: var(--white);
	outline: none;
}

.ftvd-search-form input[type='search']:focus-visible {
	box-shadow: inset 0 0 0 2px var(--color-deep-blue);
}

.ftvd-search-form button[type='submit'] {
	background-color: var(--btn-primary-bg);
	color: var(--btn-primary-text);
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s;
}

.ftvd-search-form button[type='submit']:hover,
.ftvd-search-form button[type='submit']:focus-visible {
	background-color: var(--btn-primary-bg-hover);
	outline: none;
}
