/*
Theme Name: LensTheme Minimal
Author: Lens von Jens
Description: A Heat-inspired minimal masonry grid.
Version: 1.1
*/

:root {
    --text-color: #1a1a1a;  /* Almost black */
    --accent-color: #555555; /* Dark Grey for hover */
    --bg-color: #ffffff;
    --gap: 30px; /* Generous whitespace like the demo */
}

/* 1. Global Reset for Minimalism */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* 2. Minimal Header (Clean & Centered) */
header {
    padding: 60px 20px 40px; /* More top padding for airiness */
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 1.8rem; /* Smaller, sharper title */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}
.site-title a { text-decoration: none; color: var(--text-color); }

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px; /* Wide spacing between menu items */
}

nav a {
    text-decoration: none;
    color: #999; /* Grey by default */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover, nav .current-menu-item a {
    color: var(--text-color); /* Black on hover/active */
}

/* 3. The "Heat" Style Masonry Grid */
.photo-grid {
    column-count: 3; /* Default to 3 columns */
    column-gap: var(--gap);
    padding: 0 var(--gap) 40px; /* Sides match the gap */
    max-width: 1600px; /* Wide layout */
    margin: 0 auto;
}

.grid-item {
    break-inside: avoid; /* Prevents images from being cut in half */
    margin-bottom: var(--gap);
    position: relative; /* For hover effects */
}

/* The Image Style */
.grid-item img {
    width: 100%;
    border-radius: 0; /* Sharp corners like Heat theme */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover Effect: Subtle fade */
.grid-item a:hover img {
    opacity: 0.8;
}

/* 4. Content Pages (About, Contact) */
.container {
    max-width: 700px; /* Narrower text for readability */
    margin: 60px auto;
    padding: 0 20px;
    text-align: center; /* Center align text for art-gallery feel */
}

h1, h2 {
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* 5. Minimal Buttons */
.btn {
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--text-color);
    color: #fff;
}

footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.75rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6. Responsiveness */
@media (max-width: 1024px) {
    .photo-grid { column-count: 2; } /* 2 Columns on Tablet */
}

@media (max-width: 600px) {
    .photo-grid { column-count: 1; } /* 1 Column on Mobile */
    header { padding: 40px 20px; }
    nav ul { gap: 20px; flex-wrap: wrap; }
}

/* --- About Page Layout --- */
.about-grid {
    display: flex;
    align-items: center; /* Vertically centers the text relative to image */
    gap: 60px; /* Generous space between photo and text */
    text-align: left; /* Resets the center alignment from the main theme */
}

.about-photo {
    flex: 1; /* Takes up 50% width */
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 0; /* Sharp corners for minimal look */
    /* Optional: Add a subtle shadow */
    box-shadow: 20px 20px 0px rgba(0,0,0,0.05); 
}

.about-content {
    flex: 1; /* Takes up 50% width */
    font-size: 1.1rem; /* Slightly larger text for readability */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column; /* Stack them */
        text-align: center; /* Re-center for mobile */
        gap: 30px;
    }
    
    .about-photo img {
        box-shadow: none; /* Remove shadow on mobile for cleanliness */
        max-width: 80%; /* Don't let it touch the edges */
        margin: 0 auto;
    }
}

/* --- Minimal Contact Form Styles --- */

/* Wrapper to prevent the form from getting too wide */
.wpforms-container, .wpcf7 {
    max-width: 600px;
    margin: 0 auto; /* Centers the form */
}

/* 1. The Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%; /* Full width of container */
    background: transparent;
    border: 1px solid #e1e1e1; /* Very light grey border */
    border-radius: 0; /* Sharp corners */
    padding: 15px; /* Spacious internal padding */
    margin-bottom: 20px; /* Space between fields */
    
    font-family: inherit; /* Use your Helvetica font */
    font-size: 0.9rem;
    color: var(--text-color);
    box-sizing: border-box; /* Ensures padding doesn't break width */
    transition: border-color 0.3s ease;
}

/* 2. Focus State (When you click inside) */
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-color); /* Turns black/dark grey */
}

/* 3. Text Area specific (Height) */
textarea {
    min-height: 150px; /* Give them space to write */
    resize: vertical; /* Allow resizing only vertically */
}

/* 4. Labels (The text above inputs) */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

/* 5. The Submit Button (Matching your theme buttons) */
input[type="submit"],
button[type="submit"],
.wpforms-submit {
    border: 1px solid var(--text-color) !important;
    background: transparent !important;
    color: var(--text-color) !important;
    padding: 15px 40px !important;
    
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

/* Hover effect for Submit */
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpforms-submit:hover {
    background: var(--text-color) !important;
    color: #ffffff !important;
}

/* --- Aggressive Contact Form 7 Overrides --- */

/* Wrapper */
.wpcf7 {
    max-width: 600px;
    margin: 0 auto;
}

/* Inputs & Textareas */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    background: transparent !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 0 !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-color);
    box-sizing: border-box;
    -webkit-appearance: none; /* Removes Safari default shadows */
}

/* Focus State */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none !important;
    border-color: var(--text-color) !important; /* Turns black */
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    border: 1px solid var(--text-color) !important;
    background: transparent !important;
    color: var(--text-color) !important;
    padding: 15px 40px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto; /* Prevent full width button */
    display: inline-block;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--text-color) !important;
    color: #ffffff !important;
}

/* Remove default CF7 loading spinner margins if needed */
.wpcf7 .ajax-loader {
    margin-left: 10px;
}

/* Align everything inside the form (labels + button) to the left */
.wpcf7 {
    text-align: left;
}

