/*
Theme Name: GeneratePress Child - Oslo Flyttehjelp
Template: generatepress
Version: 1.0
*/

/* ===== COLOR SCHEME ===== */
:root {
    --primary-color: #1e306e;
    --primary-dark: #151f45;
    --secondary-color: #f47920;
    --secondary-hover: #e06810;
    --light-grey: #f8f9fa;
    --medium-grey: #e9ecef;
    --dark-text: #212529;
    --body-text: #495057;
    --white: #ffffff;
    --success: #28a745;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--body-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ===== TOPBAR ===== */
.top-bar-custom {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item svg {
    opacity: 0.8;
}

.top-bar-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.top-bar-item a:hover {
    color: var(--secondary-color);
}

.top-bar-phone a {
    color: var(--secondary-color);
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

.inside-header {
    padding: 15px 40px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Header CTA Buttons */
.header-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--secondary-color);
    color: var(--white) !important;
}

.header-cta-button:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.header-cta-secondary {
    background: var(--primary-color);
}

.header-cta-secondary:hover {
    background: var(--primary-dark);
}

/* ===== NAVIGATION ===== */
.main-navigation {
    background: var(--white) !important;
    border-top: 1px solid var(--medium-grey);
}

.main-navigation .main-nav ul li a {
    color: var(--dark-text) !important;
    font-weight: 500;
    padding: 15px 20px;
    font-size: 15px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
    color: var(--primary-color) !important;
    background: transparent !important;
}

.main-navigation .main-nav ul li.current-menu-item a {
    border-bottom: 3px solid var(--secondary-color);
}

/* Dropdown menus */
.main-navigation ul ul {
    background: var(--white) !important;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    border: 1px solid var(--medium-grey);
}

.main-navigation .main-nav ul ul li a {
    padding: 12px 20px !important;
}

.main-navigation .main-nav ul ul li a:hover {
    background: var(--light-grey) !important;
}

/* ===== FULL WIDTH LAYOUT ===== */
.no-sidebar .site-content { 
    width: 100%; 
}

#right-sidebar, #left-sidebar,
.sidebar .widget { 
    display: none !important; 
}

.inside-article { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 60px 20px; 
}

.home .entry-header,
.page .entry-header { 
    display: none !important; 
}

/* ===== BUTTONS ===== */
.wp-block-button__link {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.has-primary-background-color {
    background-color: var(--primary-color) !important;
}

.has-secondary-background-color {
    background-color: var(--secondary-color) !important;
}

.has-white-background-color {
    background-color: var(--white) !important;
}

.has-light-grey-background-color {
    background-color: var(--light-grey) !important;
}

.has-primary-color {
    color: var(--primary-color) !important;
}

.has-white-color {
    color: var(--white) !important;
}

/* ===== COVER BLOCKS ===== */
.wp-block-cover {
    margin-bottom: 0 !important;
    min-height: 500px !important;
}

.wp-block-cover h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.wp-block-cover p {
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== SERVICE FACTS BOX ===== */
.service-facts {
    background: var(--light-grey);
    padding: 30px 35px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    margin: 30px 0;
}

.service-facts h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* ===== TABLES ===== */
.wp-block-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.wp-block-table table {
    margin: 0;
}

.wp-block-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
}

.wp-block-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--medium-grey);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: var(--light-grey);
}

/* ===== CTA SECTIONS ===== */
.wp-block-group.has-primary-background-color {
    margin: 60px 0;
    padding: 50px 40px !important;
    border-radius: 16px;
}

.wp-block-group.has-primary-background-color h2 {
    margin-bottom: 10px;
    color: var(--white);
}

/* ===== LISTS ===== */
.wp-block-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.wp-block-list li strong {
    color: var(--dark-text);
}

/* ===== COLUMNS ===== */
.wp-block-columns {
    gap: 40px;
}

/* ===== FOOTER ===== */
.custom-footer-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 70px 0 50px;
    margin-top: 80px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-rating {
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-block;
}

.footer-rating .stars {
    color: #ffc107;
    font-size: 18px;
    margin-right: 10px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact-item {
    margin-bottom: 18px;
    color: rgba(255,255,255,0.85);
}

.footer-contact-item strong {
    color: var(--white);
    display: block;
    margin-bottom: 3px;
}

.footer-contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-phone {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Footer Bottom */
.footer-bottom-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    font-size: 14px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* Hide default GP footer */
.site-info {
    display: none !important;
}

/* ===== BACK TO TOP ===== */
a.generate-back-to-top {
    background: var(--primary-color) !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

a.generate-back-to-top:hover {
    background: var(--secondary-color) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar-custom {
        display: none;
    }
    
    .wp-block-cover h1 {
        font-size: 2rem;
    }
    
    .inside-article {
        padding: 30px 15px;
    }
    
    .wp-block-buttons {
        flex-direction: column;
    }
    
    .wp-block-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .custom-footer-top {
        padding: 50px 0 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .wp-block-group.has-primary-background-color {
        margin: 40px 0;
        padding: 30px 20px !important;
        border-radius: 12px;
    }
    
    .service-facts {
        padding: 20px 25px;
    }
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .main-navigation .menu-toggle {
        background: var(--primary-color) !important;
        color: var(--white) !important;
        padding: 15px 20px;
        font-weight: 600;
    }
    
    .main-navigation .main-nav ul {
        background: var(--white) !important;
    }
    
    .main-navigation .main-nav ul li a {
        border-bottom: 1px solid var(--medium-grey);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-block-cover__inner-container {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        z-index: 9999;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    }
    
    .sticky-mobile-cta a {
        flex: 1;
        padding: 18px 15px;
        text-align: center;
        color: white;
        text-decoration: none;
        font-weight: 700;
        font-size: 16px;
    }
    
    .sticky-cta-phone {
        background: var(--secondary-color);
    }
    
    .sticky-cta-form {
        background: var(--primary-color);
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .custom-footer-top {
        margin-bottom: 0;
    }
}

/* ===== CONTACT FORM 7 STYLING ===== */
.wpcf7 {
    margin-top: 20px;
}

.wpcf7 .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wpcf7 .form-row {
    display: flex;
    flex-direction: column;
}

.wpcf7 .form-row-full {
    grid-column: 1 / -1;
}

.wpcf7 label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-text);
    font-size: 14px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--medium-grey);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--white);
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 48, 110, 0.1);
}

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

.wpcf7 select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.wpcf7 .btn-submit,
.wpcf7 input[type="submit"] {
    background: var(--secondary-color);
    color: var(--white);
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.wpcf7 .btn-submit:hover,
.wpcf7 input[type="submit"]:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
}

.wpcf7-mail-sent-ok {
    background: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
    margin: 0 10px;
}

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