/*
Theme Name: Addpoint
Theme URI: https://addpoint.no
Author: Viktor Grindheim
Author URI: https://addpoint.no
Description: Et norsk WordPress-tema designet for å generere henvendelser og leads. Bygget med fokus på konverteringsoptimalisering og rent, profesjonelt design.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: addpoint
Tags: one-column, custom-menu, custom-logo, featured-images, blog
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --color-bg: #FAFAF8;
    --color-bg-alt: #F0EFEB;
    --color-text: #2D2A26;
    --color-text-muted: #4A4842;
    --color-accent: #3D6B59;
    --color-accent-light: #E8F0EC;
    --color-accent-dark: #2B4D3F;
    --color-warm: #C4A574;
    --color-warm-light: #F5EFE4;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    text-wrap: pretty;
}

/* Focus-visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(61, 107, 89, 0.5);
    outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header (Sticky with backdrop-filter)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.header-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--color-accent);
}

.header-cta {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.header-cta:hover {
    background: var(--color-accent);
    color: #ffffff !important;
}

.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.language-switcher a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .header-nav a {
        display: block;
        padding: 12px 0;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--color-bg-alt);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(180deg, var(--color-accent-light) 0%, var(--color-bg) 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        display: none;
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero h1 span {
    color: var(--color-accent);
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero-cta {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(61, 107, 89, 0.25);
}

.hero-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 107, 89, 0.3);
}

.hero-cta-secondary {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-cta-secondary:hover {
    color: var(--color-accent-dark);
}

/* Hero Visual - Mockup */
.hero-visual {
    position: relative;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
    .mockup-browser {
        animation: none;
    }
}

.mockup-browser {
    background: white;
    border-radius: 12px;
    box-shadow:
        0 50px 100px -20px rgba(50, 50, 93, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3);
    max-width: 380px;
    margin: 0 auto;
    transform: rotate(1deg);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
    position: relative;
}

.mockup-browser-bar {
    background: #E8E4DF;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
}

.mockup-dot-spacer {
    width: 10px;
    height: 10px;
    visibility: hidden;
}

.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: -18px;
}

.mockup-site {
    padding: 0;
}

.mockup-site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #E8E4DF;
    background: white;
}

.mockup-site-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: #5C4A32;
}

.mockup-site-nav {
    font-size: 0.75rem;
    color: #8B7355;
    font-weight: 500;
}

.mockup-site-hero {
    background: linear-gradient(135deg, rgba(92, 74, 50, 0.75) 0%, rgba(70, 55, 35, 0.80) 100%);
    background-size: cover;
    background-position: center;
    padding: 28px 16px;
    text-align: center;
}

/* If mockup background image is set via inline style, this ensures proper layering */
.mockup-site-hero[style*="background-image"] {
    background-blend-mode: normal;
}

.mockup-site-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.mockup-site-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.mockup-site-btn {
    display: inline-block;
    background: var(--color-warm);
    color: #3D2E1C;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
}

.mockup-site-services {
    display: flex;
    gap: 8px;
    padding: 16px;
    justify-content: center;
    background: white;
}

.mockup-service {
    background: #F5EEE6;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #5C4A32;
    border: 1px solid #E8E4DF;
}

/* Badge color - warm brown for contrast with dark mockup hero */
.mockup-badge {
    position: absolute;
    top: 50px;
    right: -10px;
    background: #8A6B3D;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(138, 107, 61, 0.4);
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.benefits-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.benefits-header h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.benefits-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Package Section
   ========================================================================== */
.package {
    padding: 100px 0;
}

.package .container {
    max-width: 800px;
}

.package-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.package-header h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.package-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.package-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    border: 2px solid var(--color-accent);
    box-shadow: 0 15px 50px rgba(61, 107, 89, 0.1);
}

/* Legacy layout (title left, price right) - 50/50 split */
.package-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-bg-alt);
}

.package-title {
    flex: 1;
}

.package-price {
    flex: 1;
    text-align: right;
}

@media (max-width: 600px) {
    .package-top {
        flex-direction: column;
        gap: 24px;
    }
    .package-title,
    .package-price {
        flex: none;
    }
    .package-price {
        text-align: left;
    }
}

.package-title h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.package-title p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.package-price .amount {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent);
}

.package-price .note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .package-price .note {
        white-space: normal;
    }
}

/* Centered layout (alternative) */
.package-top-centered {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-bg-alt);
}

.package-top-centered h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.package-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.package-price-centered {
    text-align: center;
}

.package-price-centered .amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.package-price-centered .amount .mva {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.package-price-centered .note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .package-card {
        padding: 30px;
    }
    .package-top-centered h3 {
        font-size: 1.5rem;
    }
    .package-price-centered .amount {
        font-size: 2.2rem;
    }
}

.package-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 50px;
    list-style: none;
    margin-bottom: 35px;
}

@media (max-width: 600px) {
    .package-features {
        grid-template-columns: 1fr;
    }
}

.package-features li {
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.package-cta {
    text-align: center;
}

.package-cta a {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(61, 107, 89, 0.25);
}

.package-cta a:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 107, 89, 0.3);
}

/* ==========================================================================
   Social Proof Section (dormant - enable in Customizer)
   ========================================================================== */
.social-proof {
    padding: 80px 0;
    background: white;
}

.social-proof-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.social-proof-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.social-proof-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

.testimonial-card {
    background: var(--color-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-name {
    font-weight: 600;
    font-style: normal;
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Process Section (dormant - enable in Customizer)
   ========================================================================== */
.process {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.process-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.process-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.process-step {
    text-align: center;
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-delivery {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ==========================================================================
   Extras Section
   ========================================================================== */
.extras {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.extras-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.extras-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.extras-header p {
    color: var(--color-text-muted);
}

.extras-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.extras-list span {
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid rgba(0,0,0,0.06);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 80px 0;
    background: var(--color-accent);
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .about-photo {
        margin: 0 auto;
    }
    .about-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.about-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 14px;
    line-height: 1.8;
    max-width: 540px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 100px 0;
    background: var(--color-warm-light);
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-lead {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: left;
}

/* Honeypot field - hidden from users */
.form-field-website {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Radio button group */
.form-group-radio {
    border: none;
    padding: 0;
    margin-bottom: 18px;
}

.form-group-radio legend {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
    margin-bottom: 2px !important;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

/* Required field marker */
.required {
    color: #c44;
    font-size: x-large;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
}

/* Field error messages */
.field-error {
    display: block;
    color: #c44;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 1.2em;
}

/* Invalid field state */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #c44;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(61, 107, 89, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Phone field - narrower with extra spacing */
.form-group-phone {
    margin-bottom: 36px;
}

.form-group-phone input {
    max-width: 200px;
}

/* Field help text */
.field-help {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-submit {
    width: 100%;
    margin-top: 16px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-note {
    text-align: center;
    margin-top: 42px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-consent {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.form-consent a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Form Messages */
.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.form-message.success {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
}

.form-message.error {
    background: #fde8e8;
    color: #9b1c1c;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 50px 0 40px;
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 4px;
}

.footer-contact a:hover {
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-legal {
    width: 100%;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

/* Page/Post Content */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-display);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content a {
    color: var(--color-accent);
}

.entry-content .hero-cta {
    color: white;
    display: inline-block;
    margin-top: 24px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

/* WordPress Blocks */
.wp-block-button__link {
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
}

.wp-block-button__link:hover {
    background: var(--color-accent-dark);
}

/* Alignments */
.alignwide {
    margin-left: -10%;
    margin-right: -10%;
    max-width: 120%;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

/* Admin Bar Spacing */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Screen Reader Text (Accessibility) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip Link */
.skip-link {
    left: -9999rem;
    top: 2.5rem;
    z-index: 999999999;
    text-decoration-thickness: max(0.08em, 1px);
    text-underline-offset: 0.15em;
}

.skip-link:focus {
    display: block;
    left: 6px;
    top: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
    padding: 15px 23px 14px;
    z-index: 100000;
    right: auto;
}
