/*
Theme Name: SMAG Djursland
Theme URI: https://smagdjursland.dk/
Author: M4M Holding ApS
Author URI: https://m4m.dk/
Description: Et hurtigt, responsivt magasintema til SMAGDjursland.dk med fokus på gastronomi, oplevelser, guides og arrangementer på Djursland.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smagdjursland
Tags: news, food-and-drink, blog, grid-layout, custom-logo, custom-menu, featured-images, full-width-template, editor-style, block-styles, wide-blocks, translation-ready
*/

:root {
  --sd-navy: #15354f;
  --sd-navy-2: #294f6b;
  --sd-gold: #c29654;
  --sd-green: #658852;
  --sd-cream: #f7f3eb;
  --sd-sand: #e7dcc9;
  --sd-ink: #15202a;
  --sd-muted: #65717b;
  --sd-white: #fff;
  --sd-border: #dde3e7;
  --sd-radius: 14px;
  --sd-shadow: 0 12px 34px rgba(21,53,79,.10);
  --sd-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sd-ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sd-navy); text-decoration: none; }
a:hover { color: var(--sd-gold); }
button, input, select, textarea { font: inherit; }
.container { width: min(100% - 32px, var(--sd-container)); margin-inline: auto; }
.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 { position: fixed; top: 8px; left: 8px; z-index: 99999; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: #000; box-shadow: var(--sd-shadow); }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--sd-border); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.custom-logo-link img, .brand-logo { width: 76px; height: 76px; object-fit: contain; }
.brand-name { margin-left: 12px; color: var(--sd-navy); font-size: 1.15rem; font-weight: 900; letter-spacing: .02em; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { display: block; padding: 12px 13px; color: var(--sd-navy); font-size: .93rem; font-weight: 800; border-radius: 999px; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: #fff; background: var(--sd-navy); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: var(--sd-navy); color: #fff; border-radius: 10px; padding: 10px 13px; font-weight: 800; }
.header-search { display: flex; align-items: center; }
.header-search a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sd-cream); color: var(--sd-navy); font-size: 1.1rem; }

.hero { padding: 34px 0 18px; background: linear-gradient(180deg, var(--sd-cream), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 22px; }
.hero-main, .hero-side-card, .article-card { position: relative; overflow: hidden; border-radius: var(--sd-radius); background: var(--sd-navy); }
.hero-main { min-height: 520px; }
.hero-side { display: grid; gap: 22px; }
.hero-side-card { min-height: 249px; }
.hero-main img, .hero-side-card img, .article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hero-main:hover img, .hero-side-card:hover img, .article-card:hover img { transform: scale(1.025); }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; padding: clamp(22px, 4vw, 44px); background: linear-gradient(180deg, transparent 25%, rgba(7,20,31,.92)); color: #fff; }
.hero-overlay h1, .hero-overlay h2 { margin: 8px 0 0; line-height: 1.08; color: #fff; }
.hero-overlay h1 { font-size: clamp(2rem, 4.5vw, 4.4rem); max-width: 870px; }
.hero-overlay h2 { font-size: clamp(1.25rem, 2.2vw, 2rem); }
.eyebrow { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--sd-gold); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 52px 0; }
.section-soft { background: var(--sd-cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2, .archive-header h1 { margin: 0; color: var(--sd-navy); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; }
.section-heading p { max-width: 680px; margin: 8px 0 0; color: var(--sd-muted); }
.section-link { flex: none; font-weight: 900; }
.magazine-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.article-card { min-height: 360px; grid-column: span 4; box-shadow: var(--sd-shadow); }
.article-card.wide { grid-column: span 8; }
.article-card.tall { min-height: 500px; }
.article-card .card-content { position: absolute; inset: auto 0 0; padding: 24px; color: #fff; background: linear-gradient(180deg, transparent, rgba(7,20,31,.94)); }
.article-card h3 { margin: 8px 0 4px; color: #fff; line-height: 1.15; font-size: 1.45rem; }
.card-meta { font-size: .82rem; opacity: .85; }
.no-image { background: linear-gradient(135deg, var(--sd-navy), var(--sd-navy-2)); }

.category-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-tile { min-height: 135px; display: flex; flex-direction: column; justify-content: end; padding: 18px; border-radius: var(--sd-radius); color: #fff; background: var(--sd-navy); box-shadow: var(--sd-shadow); }
.category-tile:nth-child(2n) { background: var(--sd-green); }
.category-tile:nth-child(3n) { background: var(--sd-gold); }
.category-tile strong { font-size: 1.15rem; }
.category-tile span { font-size: .85rem; opacity: .9; }

.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card { display: grid; grid-template-columns: 82px 1fr; min-height: 170px; background: #fff; border: 1px solid var(--sd-border); border-radius: var(--sd-radius); overflow: hidden; box-shadow: 0 8px 24px rgba(21,53,79,.06); }
.event-date { display: grid; place-content: center; text-align: center; background: var(--sd-navy); color: #fff; }
.event-date strong { display: block; font-size: 2rem; line-height: 1; }
.event-date span { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.event-body { padding: 18px; }
.event-body h3 { margin: 0 0 8px; line-height: 1.2; }
.event-body p { margin: 0; color: var(--sd-muted); font-size: .92rem; }

.newsletter { padding: 38px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; color: #fff; background: linear-gradient(135deg, var(--sd-navy), #0d2639); border-radius: 20px; }
.newsletter h2 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.newsletter p { margin: 7px 0 0; max-width: 700px; color: rgba(255,255,255,.8); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { min-width: 280px; border: 0; border-radius: 999px; padding: 13px 18px; }
.btn, input[type="submit"], button[type="submit"] { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--sd-gold); color: #fff; font-weight: 900; cursor: pointer; }
.btn:hover { color: #fff; background: var(--sd-green); }

.content-area { width: min(100% - 32px, 860px); margin: 46px auto 72px; }
.site-main.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 46px; width: min(100% - 32px, var(--sd-container)); margin: 46px auto 72px; }
.entry-header h1 { margin: 0 0 16px; color: var(--sd-navy); line-height: 1.08; font-size: clamp(2.2rem, 5vw, 4.6rem); }
.entry-meta { color: var(--sd-muted); font-size: .9rem; }
.entry-thumbnail { margin: 28px 0; border-radius: 18px; overflow: hidden; }
.entry-content { font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { color: var(--sd-navy); line-height: 1.2; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 5px solid var(--sd-gold); background: var(--sd-cream); font-size: 1.2rem; }
.sidebar .widget { margin-bottom: 24px; padding: 22px; border-radius: var(--sd-radius); background: var(--sd-cream); }
.widget-title { margin-top: 0; color: var(--sd-navy); }
.archive-header { margin-bottom: 28px; }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.page-numbers { padding: 8px 13px; border-radius: 8px; background: var(--sd-cream); }
.page-numbers.current { color: #fff; background: var(--sd-navy); }

.site-footer { background: var(--sd-navy); color: rgba(255,255,255,.78); }
.footer-main { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 36px; padding: 48px 0; }
.footer-logo { width: 112px; border-radius: 50%; margin-bottom: 14px; }
.site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-navigation { position: absolute; top: 86px; left: 0; right: 0; display: none; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--sd-border); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation a { border-radius: 8px; }
  .header-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 480px; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .article-card { grid-column: span 6; }
  .article-card.wide { grid-column: span 12; }
  .category-strip { grid-template-columns: repeat(3, 1fr); }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .site-main.with-sidebar { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; }
  .custom-logo-link img, .brand-logo { width: 58px; height: 58px; }
  .brand-name { font-size: .98rem; }
  .primary-navigation { top: 72px; }
  .hero { padding-top: 18px; }
  .hero-main { min-height: 420px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side-card { min-height: 230px; }
  .section { padding: 38px 0; }
  .section-heading { display: block; }
  .section-link { display: inline-block; margin-top: 8px; }
  .article-card, .article-card.wide { grid-column: span 12; min-height: 330px; }
  .category-strip { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 28px; }
  .newsletter-form { display: grid; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
