/*
Theme Name: Almaflora
Theme URI: https://almaflora.se
Author: Almaflora Studio
Author URI: https://almaflora.se
Description: Ett elegant, minimalistiskt WordPress-tema för florist-portfolio. Modern editorial design med sofistikerade accenter.
Version: 1.0.0
Requires at least: 5.8
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: almaflora
Tags: portfolio, photography, minimalist, elegant, custom-colors
*/

/* ========================================
   GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --cream: #F4F1ED;
    --forest-green: #232E26;
    --dusty-rose: #A98472;
    --sage-olive: #7A816F;
    --text-black: #1A1A1A;
    
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Montserrat', sans-serif;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-black);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    color: var(--forest-green);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

a {
    color: var(--dusty-rose);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--sage-olive);
}

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

button, .btn {
    font-family: var(--body-font);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ========================================
   HEADER & NAVIGATION - TRANSPARENT MED MENY
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Vit bakgrund vid scroll */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(35, 46, 38, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 120px;
}

/* Logotypen - EXTRA STOR */
.site-logo {
    display: block;
    flex-shrink: 0;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.site-logo img {
    height: 200px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.site-header.scrolled .site-logo img {
    height: 170px;
}

/* Normal navigation - HORISONTELL MENY */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--forest-green);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
}

/* Vita länkar ENDAST på startsidan */
body.home .main-navigation a {
    color: white;
}

/* Mörka länkar på alla andra sidor och när scrollad */
.site-header.scrolled .main-navigation a {
    color: var(--forest-green);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dusty-rose);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--dusty-rose);
}

/* Mobile menu toggle - dold på desktop */
.mobile-menu-toggle {
    display: none;
}

/* ========================================
   HERO SECTION - NY BAKGRUNDSBILD
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    background: url('https://almaflora.se/wp-content/uploads/2026/02/1000018792.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(35, 46, 38, 0.15);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 3rem;
    background: rgba(35, 46, 38, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--dusty-rose);
    color: white;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(169, 132, 114, 0.3);
}

.btn-primary:hover {
    background-color: var(--sage-olive);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 129, 111, 0.4);
    color: white;
}

/* ========================================
   FEATURED PROJECTS
   ======================================== */
.featured-projects {
    background-color: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--sage-olive);
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 5px 25px rgba(35, 46, 38, 0.08);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(35, 46, 38, 0.15);
}

.project-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 46, 38, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.project-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(35, 46, 38, 0.15);
}

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

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ========================================
   ARCHIVE (MASONRY GRID)
   ======================================== */
.archive-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background-color: var(--cream);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    aspect-ratio: 4/5;
}

.masonry-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(35, 46, 38, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.masonry-item:hover::before {
    opacity: 1;
}

.masonry-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.masonry-item:hover .masonry-image {
    transform: scale(1.08);
}

.masonry-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 3;
}

.masonry-item:hover .masonry-title {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   SINGLE PROJECT
   ======================================== */
.single-project {
    padding: 10rem 0 6rem;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-header h1 {
    margin-bottom: 1rem;
}

.project-meta {
    font-size: 0.95rem;
    color: var(--sage-olive);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-image-block {
    margin-bottom: 4rem;
}

.project-image-block img {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(35, 46, 38, 0.1);
}

.project-description {
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-page {
    min-height: calc(100vh - 120px);
    padding-top: 140px;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 260px);
}

.contact-image {
    background: url('https://almaflora.se/wp-content/uploads/2026/02/1000018924.jpg');
    background-size: cover;
    background-position: center;
}

.contact-form-section {
    display: flex;
    align-items: center;
    padding: 4rem;
    background-color: white;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--forest-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(35, 46, 38, 0.1);
    background-color: var(--cream);
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-black);
    border-radius: 2px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dusty-rose);
}

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

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--dusty-rose);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--sage-olive);
    transform: translateY(-2px);
}

.contact-details {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(35, 46, 38, 0.1);
}

.contact-details h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item a {
    color: var(--text-black);
}

.contact-item a:hover {
    color: var(--dusty-rose);
}

.success-message,
.error-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--forest-green);
    color: var(--cream);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column p,
.footer-column a {
    color: rgba(244, 241, 237, 0.8);
    line-height: 1.8;
}

.footer-column a:hover {
    color: var(--dusty-rose);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(244, 241, 237, 0.3);
    border-radius: 50%;
    color: var(--cream);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--dusty-rose);
    border-color: var(--dusty-rose);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 241, 237, 0.1);
    color: rgba(244, 241, 237, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-split {
        grid-template-columns: 1fr;
    }
    
    .contact-image {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    /* Mobil header */
    .header-inner {
        padding: 0.5rem 1.5rem;
        min-height: 80px;
    }
    
    .site-logo img {
        height: 70px;
    }
    
    /* Dölj desktop-menyn, visa hamburger */
    .main-navigation {
        display: none;
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background-color: rgba(244, 241, 237, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(35, 46, 38, 0.15);
        z-index: 999;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation a {
        color: var(--forest-green);
        font-size: 1rem;
        padding: 0.75rem 0;
    }
    
    /* Säkerställ mörk text i dropdown på mobil - även på startsidan */
    body.home .main-navigation a {
        color: var(--forest-green);
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    /* Visa hamburger-knapp på mobil */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(244, 241, 237, 0.9);
        border: 2px solid var(--sage-olive);
        border-radius: 8px;
        width: 45px;
        height: 45px;
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle span {
        display: block;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--forest-green);
    }
    
    .mobile-menu-toggle.active {
        background: var(--dusty-rose);
        border-color: var(--dusty-rose);
    }
    
    .mobile-menu-toggle.active span {
        color: white;
    }
    
    .site-header.scrolled .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Hero-content mobil */
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    /* Kontaktsida mobil - mindre padding */
    .contact-page {
        padding-top: 90px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
