/*
Theme Name: Online Reputation Management
Theme URI: https://online-reputation-management.dk
Author: Atak Nordic / Mads Nordskov
Description: One-page WordPress-tema for online-reputation-management.dk
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: orm
*/

/* =====================================================
   RESET & BASE
   ===================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #333333;
    background: #ffffff;
}

a {
    color: #4a90d9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.site-nav {
    background-color: #1e3a5f;
    border-bottom: 4px solid #6bbccc;
}

.site-nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.site-nav-logo {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-logo:hover {
    text-decoration: none;
    color: #6bbccc;
}

.site-nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.site-nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.site-nav-menu a:hover,
.site-nav-menu .current-menu-item > a {
    color: #ffffff;
    border-bottom-color: #6bbccc;
    text-decoration: none;
}

@media (max-width: 600px) {
    .site-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
        gap: 10px;
    }

    .site-nav-menu {
        gap: 16px;
        flex-wrap: wrap;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    background-color: #1e3a5f;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px 120px;
    position: relative;
}

/* Buet bund via SVG-wave */
.hero::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C360,0 1080,0 1440,60 L1440,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.hero-stars {
    font-size: 3rem;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    line-height: 1;
}

.hero-stars .star-filled {
    color: #f5c518;
}

.hero-stars .star-falling {
    color: #f5c518;
    opacity: 0.5;
    transform: rotate(20deg) translateY(8px);
    display: inline-block;
    font-size: 2.4rem;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
}

/* =====================================================
   3-KOLONNE SEKTION
   ===================================================== */

.three-col {
    background: #ffffff;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.three-col-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.three-col-item h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e3a5f;
}

.three-col-item h2 a {
    color: #1e3a5f;
    text-decoration: none;
}

.three-col-item h2 a:hover {
    text-decoration: underline;
}

.three-col-item p {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.7;
}

/* =====================================================
   CONTENT AREA (WordPress editor indhold)
   ===================================================== */

.orm-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Headings */
.orm-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 48px 0 20px;
    line-height: 1.3;
}

.orm-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    margin: 48px 0 20px;
}

/* Paragraphs */
.orm-content p {
    margin-bottom: 20px;
    color: #333333;
}

/* Links */
.orm-content a {
    color: #4a90d9;
}

/* Billeder i editor */
.orm-content img,
.orm-content figure img {
    display: block;
    margin: 24px auto;
    max-width: 520px;
    width: 100%;
    height: auto;
}

.orm-content figure {
    margin: 24px 0;
    text-align: center;
}

.orm-content figcaption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
}

/* Gutenberg block: wp-block-image */
.orm-content .wp-block-image {
    text-align: center;
    margin: 32px 0;
}

.orm-content .wp-block-image img {
    max-width: 520px;
    margin: 0 auto;
}

/* =====================================================
   PAGE HERO (indre sider)
   ===================================================== */

.page-hero {
    background-color: #1e3a5f;
    color: #ffffff;
    text-align: center;
    padding: 70px 20px 110px;
    position: relative;
}

/* V-formet bund */
.page-hero::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L720,70 L1440,0 L1440,70 L0,70 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.page-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.page-hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.page-hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.page-hero-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
    margin-bottom: 28px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid #6bbccc;
    color: #6bbccc;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    background-color: #6bbccc;
    color: #1e3a5f;
    text-decoration: none;
}

.orm-page {
    padding-top: 48px;
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero {
        padding: 50px 20px 100px;
    }
}

/* =====================================================
   ARKIV (home.php / archive.php)
   ===================================================== */

.orm-archive {
    padding-top: 48px;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.archive-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e0e0e0;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0;
}

.archive-item-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.archive-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.3;
    margin-bottom: 12px;
}

.archive-item-title a {
    color: inherit;
    text-decoration: none;
}

.archive-item-title a:hover {
    color: #4a90d9;
    text-decoration: none;
}

.archive-item-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 16px;
}

.archive-item-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a90d9;
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 40px 0 0;
    font-size: 0.9rem;
}

.nav-links a,
.nav-links span {
    color: #4a90d9;
    font-weight: 600;
}

.nav-links .current {
    color: #1e3a5f;
}

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

    .archive-item-image img {
        height: 200px;
    }
}

/* =====================================================
   SINGLE BLOGINDLÆG
   ===================================================== */

.orm-single {
    padding-top: 48px;
}

.single-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.3;
    margin-bottom: 12px;
}

.single-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 36px;
}

.single-thumbnail {
    margin-bottom: 32px;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-body {
    border-top: 2px solid #6bbccc;
    padding-top: 32px;
}

.single-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

/* =====================================================
   CONTACT FORM 7
   ===================================================== */

.wpcf7 {
    max-width: 560px;
}

/* Labels */
.wpcf7 label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 6px;
}

/* Inputs og textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333333;
    background: #f9f9f9;
    transition: border-color 0.2s, background 0.2s;
    appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #6bbccc;
    background: #ffffff;
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

/* Feltgrupper med afstand */
.wpcf7 p {
    margin-bottom: 20px !important;
}

/* Send-knap */
.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 11px 32px;
    background-color: #1e3a5f;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #6bbccc;
    color: #1e3a5f;
}

/* Valideringsfejl på felt */
.wpcf7-not-valid {
    border-color: #c0392b !important;
}

.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 4px;
    display: block;
}

/* Besked efter afsendelse */
.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 12px 16px !important;
    border-radius: 3px !important;
    font-size: 0.9rem !important;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background-color: #e8f7f0 !important;
    color: #1e7a4a !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
    background-color: #fdecea !important;
    color: #c0392b !important;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    background-color: #6bbccc;
    color: #1e3a5f;
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stars {
        font-size: 2.2rem;
    }

    .three-col-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        padding: 60px 20px 100px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-stars {
        font-size: 1.8rem;
    }
}
