/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

:root {
  --bg: #F2F2F0;
  --text: #1A1A1A;
  --cobalt: #0047AB;
  --terracotta: #C4613A;
  --white: #FFFFFF;
  --grey-lt: #E8E8E4;
  --grey-md: #B0B0AA;
  --uvlanto-accent: #C8E64C;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.75; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color .3s; }
a:hover { color: var(--terracotta); }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 3px solid var(--text); padding: 0 5vw; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1320px; margin: auto; }
.logo { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--text); letter-spacing: 2px; text-transform: uppercase; }
.logo span { color: var(--cobalt); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: .88rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; color: var(--text); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--terracotta); transition: width .3s; }
.nav-links a:hover::after { width: 100%; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; min-width: 44px; min-height: 44px; justify-content: center; }
.burger span { display: block; width: 26px; height: 2.5px; background: var(--text); transition: .3s; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
.hero { padding: 60px 5vw 50px; max-width: 1320px; margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.hero-left { }
.hero-tag { display: inline-block; background: var(--cobalt); color: var(--white); font-size: .72rem; text-transform: uppercase; letter-spacing: 3px; padding: 6px 16px; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.12; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-right { border-left: 3px solid var(--grey-lt); padding-left: 32px; }
.hero-right p { font-size: 1.05rem; color: #444; margin-bottom: 14px; }
.hero-right .author { font-size: .82rem; color: var(--grey-md); text-transform: uppercase; letter-spacing: 1px; }

/* SECTIONS */
.section { padding: 50px 5vw; max-width: 1320px; margin: auto; }
.section-wide { padding: 50px 5vw; }
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 30px; position: relative; padding-left: 20px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--terracotta); }

/* BROKEN GRID */
.broken-grid { display: grid; grid-template-columns: 1fr 1.3fr .7fr; gap: 40px; align-items: start; }
.broken-grid .col-offset { margin-top: 60px; }
.broken-grid p { margin-bottom: 14px; }

/* ARTICLE CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.card { background: var(--white); border: 1px solid var(--grey-lt); padding: 28px 24px; transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.card-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--terracotta); font-weight: 700; margin-bottom: 10px; }
.card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 12px; line-height: 1.3; }
.card p { font-size: .92rem; color: #555; }
.card-link { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cobalt); }
.card-link:hover { color: var(--terracotta); }

/* QUOTE */
.quote-block { padding: 50px 5vw; max-width: 1320px; margin: auto; display: flex; gap: 24px; align-items: flex-start; }
.quote-block .q-line { width: 4px; min-height: 100%; background: var(--uvlanto-accent); flex-shrink: 0; }
.quote-block blockquote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-style: italic; line-height: 1.5; color: #333; }
.quote-block .q-author { font-size: .82rem; color: var(--grey-md); font-style: normal; margin-top: 10px; display: block; letter-spacing: 1px; text-transform: uppercase; }

/* SIDEBAR LAYOUT */
.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 50px; max-width: 1320px; margin: auto; padding: 50px 5vw; }
.sidebar { background: var(--cobalt); color: var(--white); padding: 30px 24px; position: relative; }
.sidebar h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 16px; border-bottom: 2px solid rgba(255,255,255,.2); padding-bottom: 10px; }
.sidebar ul { list-style: none; }
.sidebar li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.sidebar li::before { content: '\2192'; margin-right: 8px; color: var(--uvlanto-accent); }
.sidebar .sidebar-cta { display: block; margin-top: 20px; background: var(--terracotta); color: var(--white); text-align: center; padding: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; min-height: 44px; line-height: 20px; }
.sidebar .sidebar-cta:hover { background: #A84E2D; color: var(--white); }

/* NOTE STRIP */
.note-strip { background: var(--terracotta); color: var(--white); padding: 40px 5vw; display: flex; align-items: center; gap: 40px; }
.note-strip .ns-label { writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--font-head); font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; flex-shrink: 0; }
.note-strip p { font-size: 1.05rem; line-height: 1.7; }

/* IMAGE SECTION */
.img-text-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1320px; margin: auto; }
.img-text-row img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.img-text-row .itr-content { padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.img-text-row .itr-content h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 16px; }
.img-text-row .itr-content p { margin-bottom: 12px; color: #444; }

/* HIGHLIGHT BOX */
.highlight-box { background: linear-gradient(135deg, var(--cobalt) 0%, #003080 100%); color: var(--white); padding: 40px; margin: 30px 0; position: relative; }
.highlight-box h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 14px; }
.highlight-box p { font-size: .95rem; line-height: 1.7; }
.highlight-box::after { content: ''; position: absolute; top: -6px; right: 30px; width: 50px; height: 50px; background: var(--uvlanto-accent); transform: rotate(45deg); }

/* NEWSLETTER */
.newsletter { background: var(--text); color: var(--white); padding: 60px 5vw; text-align: center; }
.newsletter h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.newsletter p { color: var(--grey-md); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; font-size: .95rem; }
.newsletter form { display: flex; gap: 0; max-width: 460px; margin: auto; }
.newsletter input[type="email"] { flex: 1; padding: 14px 18px; border: 2px solid #444; background: transparent; color: var(--white); font-size: 1rem; min-height: 48px; }
.newsletter input[type="email"]::placeholder { color: #777; }
.newsletter button { background: var(--terracotta); color: var(--white); border: none; padding: 14px 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; font-size: .85rem; min-height: 48px; transition: background .3s; }
.newsletter button:hover { background: #A84E2D; }

/* FOOTER */
.site-footer { background: var(--text); color: var(--grey-md); padding: 40px 5vw 30px; border-top: 3px solid var(--cobalt); }
.footer-inner { max-width: 1320px; margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); letter-spacing: 2px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--grey-md); font-size: .85rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { width: 100%; margin-top: 20px; padding-top: 20px; border-top: 1px solid #333; font-size: .78rem; line-height: 1.6; }
.footer-copy p { margin-bottom: 6px; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 20px; right: 20px; z-index: 999; max-width: 380px; }
.cb-toggle { display: none; }
.cb-toggle:checked ~ .cb-body { display: none; }
.cb-body { background: var(--white); border: 2px solid var(--text); padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.cb-body p { font-size: .85rem; margin-bottom: 14px; line-height: 1.5; }
.cb-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cb-actions label { padding: 10px 18px; font-size: .8rem; font-weight: 700; text-transform: uppercase; cursor: pointer; min-height: 44px; display: flex; align-items: center; letter-spacing: 1px; }
.cb-accept { background: var(--cobalt); color: var(--white); }
.cb-decline { background: var(--grey-lt); color: var(--text); }
.cb-actions a { font-size: .78rem; color: var(--cobalt); }

/* LEGAL PAGES */
.legal { max-width: 800px; margin: auto; padding: 50px 5vw; }
.legal h1 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 30px; }
.legal h2 { font-family: var(--font-head); font-size: 1.2rem; margin: 28px 0 12px; color: var(--cobalt); }
.legal p { margin-bottom: 12px; font-size: .95rem; }

/* SUCCESS & 404 */
.msg-page { text-align: center; padding: 100px 5vw; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.msg-page h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.msg-page p { font-size: 1.1rem; color: #555; margin-bottom: 30px; max-width: 500px; }
.msg-page .btn { display: inline-block; background: var(--cobalt); color: var(--white); padding: 14px 36px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; min-height: 48px; transition: background .3s; }
.msg-page .btn:hover { background: var(--terracotta); color: var(--white); }
.msg-page .link-list { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.msg-page .link-list a { color: var(--cobalt); font-weight: 600; }

/* ARTICLE PAGE */
.article-hero { padding: 50px 5vw 30px; max-width: 900px; margin: auto; }
.article-hero .ah-tag { display: inline-block; background: var(--terracotta); color: var(--white); font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; padding: 5px 14px; margin-bottom: 16px; }
.article-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 14px; }
.article-hero .ah-meta { font-size: .82rem; color: var(--grey-md); text-transform: uppercase; letter-spacing: 1px; }
.article-body { max-width: 760px; margin: auto; padding: 20px 5vw 50px; }
.article-body p { margin-bottom: 16px; }
.article-body h2 { font-family: var(--font-head); font-size: 1.5rem; margin: 36px 0 16px; padding-left: 16px; border-left: 4px solid var(--cobalt); }
.article-body h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 24px 0 10px; }
.article-body .article-img { margin: 30px 0; }
.article-body .inline-card { background: var(--grey-lt); padding: 24px; margin: 24px 0; border-left: 4px solid var(--uvlanto-accent); }
.article-body .inline-card h4 { font-family: var(--font-head); margin-bottom: 8px; }
.article-body .inline-quote { font-family: var(--font-head); font-size: 1.3rem; font-style: italic; color: var(--cobalt); padding: 20px 0 20px 24px; border-left: 3px solid var(--terracotta); margin: 24px 0; }
.article-body ul { list-style: none; margin: 16px 0; }
.article-body li { padding: 8px 0 8px 20px; position: relative; }
.article-body li::before { content: '\25A0'; position: absolute; left: 0; color: var(--terracotta); font-size: .6rem; top: 12px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 760px; margin: 0 auto 40px; padding: 0 5vw; }
.article-nav a { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero, .section, .quote-block, .card, .note-strip, .img-text-row, .newsletter { animation: fadeUp .7s ease both; }
.card:nth-child(2) { animation-delay: .15s; }
.card:nth-child(3) { animation-delay: .3s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .broken-grid { grid-template-columns: 1fr 1fr; }
  .broken-grid .col-offset { margin-top: 0; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 20px 5vw; border-bottom: 3px solid var(--text); gap: 16px; }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .hero-right { border-left: none; padding-left: 0; border-top: 2px solid var(--grey-lt); padding-top: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .broken-grid { grid-template-columns: 1fr; }
  .img-text-row { grid-template-columns: 1fr; }
  .note-strip { flex-direction: column; gap: 16px; }
  .note-strip .ns-label { writing-mode: horizontal-tb; }
  .quote-block { flex-direction: column; }
  .newsletter form { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .article-nav { flex-direction: column; }
  .cookie-banner { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}
