/*
Theme Name: Findhundeforsikring
Theme URI: https://findhundeforsikring.dk
Description: Blok-tema til findhundeforsikring.dk. Bruges sammen med pluginet "Findhundeforsikring Core".
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Author: findhundeforsikring.dk
Text Domain: findhundeforsikring
License: GPL-2.0-or-later
*/

/* Skip-link og fokus */
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 14px; }
.site-header .wp-block-site-title a { display: inline-flex; align-items: center; gap: 10px; color: var(--wp--preset--color--night); text-decoration: none; }
.site-header .wp-block-site-title a::before {
	content: ""; width: 34px; height: 34px; flex: none; border-radius: 9px;
	background: #1e4632 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M10 15c0-3 2-5 4-5l3 3 3-3c2 0 4 2 4 5v4c0 3-3 6-7 6s-7-3-7-6z' fill='none' stroke='%23F2C14E' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='14.5' cy='17' r='1.2' fill='%23F2C14E'/%3E%3Ccircle cx='19.5' cy='17' r='1.2' fill='%23F2C14E'/%3E%3C/svg%3E") center / 34px no-repeat;
}
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream); }
.site-header .header-cta .wp-block-button__link { padding: 10px 18px; }
@media (max-width: 781px) { .site-header .header-cta { display: none; } }

/* Hovedindhold */
.site-main { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.site-main--flush { padding-top: 0; }
.wp-site-blocks > .site-main--flush { margin-top: 0; }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-top: 0; }
.page-head { margin-bottom: var(--wp--preset--spacing--40); }
.page-head .wp-block-post-title, .page-head h1 { margin: 12px 0 14px; }
.lead, .wp-block-post-excerpt.lead { font-size: 1.2rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.wp-block-post-content > * + h2 { margin-top: 2.6rem; }
.wp-block-post-content > .fhf.alignwide, .wp-block-post-content > .fhf-hero { margin-block: var(--wp--preset--spacing--50); }
.wp-block-post-content > .fhf-hero:first-child { margin-top: 0; }
.wp-block-post-featured-image img { border-radius: 16px; }

/* Faktaboks (citatblok-stil) */
.wp-block-quote.is-style-fhf-fact { border-radius: 14px; font-style: normal; }
.wp-block-quote.is-style-fhf-fact p { margin: 0; }
.wp-block-quote.is-style-fhf-fact p + p { margin-top: 0.6em; }

/* FAQ */
.wp-block-details summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; }
.wp-block-details > p { margin-top: 12px; color: #3a413c; }
.wp-block-details + .wp-block-details { margin-top: 0; }

/* Tabeller */
.wp-block-table table { background: #fff; border-radius: 12px; overflow: hidden; border-collapse: collapse; }
.wp-block-table th { background: var(--wp--preset--color--forest); color: #fff; text-align: left; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--wp--preset--color--line); padding: 12px 14px; }
.wp-block-table { overflow-x: auto; }

/* Lister med guides */
.guide-grid .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.guide-grid .wp-block-post-featured-image { margin: 0; }
.guide-grid .wp-block-post-featured-image img { border-radius: 0; }
.guide-grid .wp-block-post > :not(.wp-block-post-featured-image) { margin-inline: 22px; }
.guide-grid .wp-block-post > :last-child { margin-bottom: 22px; }
.guide-grid .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.guide-grid .wp-block-post-terms a { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--gold-dark); text-decoration: none; }
.guide-grid .wp-block-post-terms { margin-top: 18px; }

/* Footer */
.site-footer { background: var(--wp--preset--color--night); color: #c9d6cd; font-size: 0.925rem; padding-block: var(--wp--preset--spacing--50); }
.site-footer a { color: #c9d6cd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 10px; font-family: var(--wp--preset--font-family--body); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .footer-brand { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; margin-top: 32px; font-size: 0.85rem; }

/* 404 og søgning */
.wp-block-search__input { border-radius: 10px; border: 1px solid #b9b5a7; padding: 12px 14px; min-height: 48px; }
.wp-block-search__button { border-radius: 10px; }
