/*
Theme Name: DKT Interiors
Description: A sophisticated WordPress theme for DKT Interiors, featuring soulful minimalism with warm modern aesthetics. Located in Flower Mound, Texas.
Version: 1.0.0
Author: DKT Interiors
Author URI: mailto:info@dktinteriorsco.com
Text Domain: dkt-interiors-theme
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: interior-design, portfolio, business, minimalist, responsive, custom-post-types

DKT Interiors WordPress Theme
Copyright (C) 2024 DKT Interiors

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2c2c2c;
    --warm-gray: #4a4a4a;
    --light-gray: #8a8a8a;
    --softest-gray: #f7f7f7;
    --pure-white: #ffffff;
    --warm-beige: #f5f4f2;
    --accent-warm: #b8a082;
    --accent-deeper: #8b7355;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #8a8a8a;
}

body {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--pure-white);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Sophisticated Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
    font-weight: 300;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

p {
    margin-bottom: 1.8rem;
    color: var(--text-secondary);
    max-width: 65ch;
}

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

a:hover {
    color: var(--accent-deeper);
}

/* Header */
.site-header {
    padding: 3rem 0;
    background: var(--pure-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.main-nav a {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-deeper);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 12rem;
    text-align: center;
    background: var(--pure-white);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Elegant Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.4s ease;
    cursor: pointer;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--pure-white);
}

/* Full-Width Banner Sections */
.banner-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 8rem 0;
    margin: 8rem 0;
}

.banner-residential {
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--softest-gray) 100%);
}

.banner-commercial {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary-dark) 100%);
    color: var(--pure-white);
}

.banner-commercial h2,
.banner-commercial p {
    color: var(--pure-white);
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.banner-text h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 2rem;
    font-weight: 300;
}

.banner-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: none;
}

.banner-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 2px;
}

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

.banner-section:hover .banner-image img {
    transform: scale(1.02);
}

/* Portfolio Grid - Art Gallery Style */
.portfolio-section {
    padding: 8rem 0;
    background: var(--pure-white);
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin: 4rem 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--pure-white);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    transition: all 0.5s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 50px rgba(0,0,0,0.12);
}

.portfolio-item img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.03);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pure-white);
    padding: 1.5rem;
    border-top: 1px solid var(--softest-gray);
}

.portfolio-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.portfolio-caption p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: var(--warm-beige);
}

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

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

.about-text p {
    margin-bottom: 2rem;
    max-width: none;
}

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

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

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: var(--pure-white);
    padding: 6rem 0 3rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-image {
    width: 50px;
    height: 50px;
    filter: invert(1);
}

.footer-brand .logo-text {
    color: var(--pure-white);
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section li {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--pure-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.8rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 1px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .banner-section {
        padding: 4rem 0;
        margin: 4rem 0;
    }
    
    .banner-content {
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pure-white);
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
    }
    
    .main-nav ul li {
        padding: 0 2rem;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--softest-gray);
    }
    
    .hero-section {
        padding: 6rem 0 8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .section-title {
        margin-bottom: 4rem;
    }
}

/* Mobile Touch Targets and Accessibility */
@media (max-width: 768px) {
    /* Ensure all clickable elements are at least 44px */
    .btn,
    .main-nav a,
    .mobile-menu-toggle,
    .portfolio-item a,
    .post-item a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav a {
        padding: 1.2rem 0;
        justify-content: flex-start;
        padding-left: 0;
    }
    
    /* Better mobile form elements */
    input[type="email"],
    input[type="search"],
    input[type="text"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Mobile-optimized portfolio items */
    .portfolio-item {
        margin-bottom: 1rem;
    }
    
    .portfolio-caption {
        padding: 1rem;
    }
    
    /* Better mobile footer */
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile newsletter form */
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .newsletter-form input[type="email"] {
        margin-bottom: 0.5rem;
        border-radius: 3px;
    }
    
    .newsletter-form button {
        border-radius: 3px;
        min-height: 44px;
    }
}

/* Focus states for accessibility */
.btn:focus,
.main-nav a:focus,
.mobile-menu-toggle:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-deeper);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--text-primary);
    color: var(--pure-white);
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Image optimization */
img {
    height: auto;
    max-width: 100%;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #000000;
        --accent-deeper: #0000ff;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .main-nav a::after {
        height: 2px;
    }
}
.wp-block-image {
    margin: 3rem 0;
}

.wp-block-quote {
    border-left: 3px solid var(--accent-deeper);
    padding-left: 3rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.aligncenter {
    text-align: center;
}

.alignright {
    float: right;
    margin-left: 3rem;
}

.alignleft {
    float: left;
    margin-right: 3rem;
}

/* Posts Grid for Blog */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.post-item {
    background: var(--pure-white);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-content {
    padding: 2.5rem;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-excerpt {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 4rem 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    margin: 0 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--text-primary);
    color: var(--pure-white);
    border-color: var(--text-primary);
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 400px;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    background: var(--pure-white);
}

.search-form input[type="submit"] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
}