/* ============================================================
   Glimø Transport og Spedition – Stylesheet
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-dark:   #0a2d5e;
    --blue-mid:    #1a4a8a;
    --blue-light:  #2e6fc4;
    --blue-accent: #4a90d9;
    --white:       #ffffff;
    --off-white:   #f4f7fb;
    --text:        #222222;
    --text-light:  #555555;
    --border:      #d0dce8;
    --radius:      6px;
    --shadow:      0 2px 12px rgba(10,45,94,.12);
    --transition:  .2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 20px;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 56px; width: auto; }

/* Nav */
.main-nav ul {
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: var(--blue-dark);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background var(--transition);
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--blue-light);
    color: var(--white);
    text-decoration: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
    color: var(--white);
    padding: 80px 0 70px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 32px;
    opacity: .9;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    border: none;
    text-decoration: none;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
    background: var(--blue-accent);
    color: var(--white);
}
.btn-primary:hover { background: #3a7fc8; }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 12px;
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* ---------- Main ---------- */
.site-main { flex: 1; }

/* ---------- Page header ---------- */
.page-header {
    background: var(--blue-dark);
    color: var(--white);
    padding: 48px 0 40px;
}
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Content sections ---------- */
.section {
    padding: 60px 0;
}
.section-alt { background: var(--off-white); }

.section h2 {
    font-size: 1.7rem;
    color: var(--blue-dark);
    margin-bottom: 16px;
}
.section h3 {
    font-size: 1.2rem;
    color: var(--blue-mid);
    margin: 24px 0 8px;
}
.section p { margin-bottom: 14px; color: var(--text-light); }
.section ul { list-style: disc; padding-left: 22px; color: var(--text-light); }
.section ul li { margin-bottom: 6px; }

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(10,45,94,.16); }

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
}
.card h3 { color: var(--blue-dark); margin-bottom: 10px; font-size: 1.1rem; }
.card p  { color: var(--text-light); font-size: .95rem; margin: 0; }

/* ---------- Booking banner ---------- */
.booking-banner {
    background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}
.booking-banner h2 { font-size: 1.6rem; margin-bottom: 10px; }
.booking-banner p  { margin-bottom: 24px; opacity: .9; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 { color: var(--blue-dark); margin-bottom: 20px; }
.contact-info address { font-style: normal; line-height: 2; }
.contact-info a { color: var(--blue-light); }

.contact-form { background: var(--off-white); padding: 32px; border-radius: var(--radius); }
.contact-form h2 { color: var(--blue-dark); margin-bottom: 20px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(46,111,196,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
}
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,.8);
    padding-top: 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 8px; }

.site-footer h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--blue-light);
    padding-bottom: 6px;
    display: inline-block;
}

.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--white); }
.site-footer ul li { margin-bottom: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

/* ---------- Page content (CMS output) ---------- */
.page-content h2 { color: var(--blue-dark); font-size: 1.5rem; margin: 28px 0 12px; }
.page-content h3 { color: var(--blue-mid); font-size: 1.15rem; margin: 20px 0 8px; }
.page-content p  { margin-bottom: 14px; color: var(--text-light); }
.page-content ul { list-style: disc; padding-left: 22px; color: var(--text-light); margin-bottom: 14px; }
.page-content ul li { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blue-dark);
        padding: 12px 20px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,.3);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { padding: 10px 14px; }

    .contact-grid { grid-template-columns: 1fr; }

    .hero { padding: 50px 0 44px; }
    .btn-outline { margin-left: 0; margin-top: 10px; }

    .hero .hero-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    .hero .hero-btns .btn { margin: 0; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
