/* ===================================
   HjemHos - Main Stylesheet
   =================================== */

/* ===================================
   CSS Variables
   =================================== */
:root {
    --dark: #1a1f1a;
    --green: #2d3a2d;
    --sage: #6b7c5e;
    --sand: #c9b99a;
    --cream: #f5f2eb;
    --light: #fafaf8;
    --white: #fff;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 18px;
}

/* ===================================
   Navigation
   =================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo span {
    color: inherit;
    font-weight: 600;
}

.logo-heart {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.logo-heart svg {
    width: 16px;
    height: 16px;
    fill: #e57373;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    opacity: 1;
    color: var(--sage);
}

.nav-cta {
    background: var(--green);
    color: var(--white) !important;
    padding: 14px 28px;
    border-radius: 50px;
    opacity: 1 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 100px 24px 40px;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--cream);
}

.mobile-menu a.active {
    color: var(--sage);
}

.mobile-menu .mobile-cta {
    margin-top: 24px;
    background: var(--green);
    color: var(--white);
    text-align: center;
    border-radius: 50px;
    padding: 18px;
    border: none;
}

/* ===================================
   Footer
   =================================== */
footer {
    padding: 60px 80px 40px;
    background: var(--dark);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 16px;
    color: var(--white);
    opacity: 0.6;
    line-height: 1.7;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--white);
    opacity: 0.7;
}

.footer-contact a {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    opacity: 1;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--white);
    opacity: 0.5;
}

.footer-bottom .heart-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom .heart-icon {
    width: 16px;
    height: 16px;
    fill: #e57373;
}

/* ===================================
   Common Section Styles
   =================================== */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header h2 em {
    color: var(--sage);
    font-style: normal;
}

.section-header p {
    font-size: 18px;
    color: var(--dark);
    opacity: 0.7;
    line-height: 1.7;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--white);
    border: 2px solid var(--dark);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

/* ===================================
   FAQ Accordion
   =================================== */
.faq,
.faq-section {
    padding: 100px 80px;
    background: var(--light);
}

.faq-container,
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.faq-question:hover {
    background: var(--light);
}

.faq-question span {
    font-size: 24px;
    color: var(--sage);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 28px 24px;
    font-size: 18px;
    color: var(--dark);
    opacity: 0.8;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===================================
   Doodle Icons
   =================================== */
.doodle-icon {
    display: inline-block;
}

.doodle-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.doodle-icon.small {
    width: 48px;
    height: 48px;
}

.doodle-icon.medium {
    width: 80px;
    height: 80px;
}

.doodle-icon.large {
    width: 120px;
    height: 120px;
}

/* ===================================
   Responsive - Tablet
   =================================== */
@media (max-width: 1024px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 32px;
    }

    .nav-cta {
        padding: 12px 24px !important;
    }

    footer {
        padding: 50px 40px 30px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .faq,
    .faq-section {
        padding: 60px 40px;
    }
}

/* ===================================
   Responsive - Mobile
   =================================== */
@media (max-width: 768px) {
    nav {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    footer {
        padding: 40px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .faq,
    .faq-section {
        padding: 50px 20px;
    }

    .faq-question {
        font-size: 18px;
        padding: 20px;
    }

    .faq-answer {
        padding: 0 20px 20px;
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }
}

/* ===================================
   Responsive - Small Mobile
   =================================== */
@media (max-width: 640px) {
    .section-label {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 16px;
    }

    .faq-question {
        font-size: 18px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }

    .faq-question span {
        font-size: 22px;
    }

    .faq-answer {
        font-size: 15px;
    }
}
