/*
Theme Name: Living Homes Interior
Theme URI: https://livinghomesinterior.com
Author: Living Homes Interior
Author URI: https://livinghomesinterior.com
Description: A premium custom WordPress theme for Living Homes Interior — Mumbai's trusted modular kitchen and interior design studio. Features a mobile-first design, WhatsApp lead capture, portfolio showcase, and fully dynamic CMS-powered content.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: living-homes-interior
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, theme-options, translation-ready, portfolio
*/

/* ==========================================================================
   DESIGN SYSTEM — CSS Custom Properties
   ========================================================================== */

:root {
    /* ---- Colors ---- */
    --color-primary: #DCC55F;
    --color-primary-hover: #C9B24E;
    --color-primary-light: rgba(220, 197, 95, 0.15);
    --color-primary-glow: rgba(220, 197, 95, 0.4);

    --color-secondary: #1C1C1C;
    --color-secondary-light: #2A2A2A;
    --color-secondary-lighter: #333333;

    --color-tertiary: #6B3F2A;
    --color-tertiary-light: #8B5E3C;

    --color-bg-light: #FAF9F6;
    --color-bg-white: #FFFFFF;
    --color-bg-cream: #F5F0EB;

    --color-text-primary: #2C2C2C;
    --color-text-secondary: #757575;
    --color-text-light: #A0A0A0;
    --color-text-white: #FFFFFF;
    --color-text-white-muted: rgba(255, 255, 255, 0.7);

    --color-border: #E5E5E5;
    --color-border-light: #F0F0F0;

    --color-success: #2ECC71;
    --color-error: #E74C3C;
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-overlay-dark: rgba(0, 0, 0, 0.75);

    /* ---- Typography ---- */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-subheading: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-cta: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes */
    --fs-display: clamp(2.5rem, 5vw, 4.5rem);
    --fs-h1: clamp(2rem, 4vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 3vw, 2.625rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.625rem);
    --fs-h4: clamp(1.1rem, 1.5vw, 1.375rem);
    --fs-body: 1rem;
    --fs-body-lg: 1.125rem;
    --fs-small: 0.875rem;
    --fs-caption: 0.8125rem;
    --fs-cta: 0.9375rem;

    /* Font Weights */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Line Heights */
    --lh-tight: 1.2;
    --lh-snug: 1.35;
    --lh-normal: 1.6;
    --lh-relaxed: 1.8;

    /* Letter Spacing */
    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.05em;
    --ls-wider: 0.1em;
    --ls-widest: 0.15em;

    /* ---- Spacing ---- */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-wide: 1440px;
    --gutter: 24px;
    --gutter-sm: 16px;

    --section-padding: 80px;
    --section-padding-sm: 48px;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* ---- Borders & Radius ---- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 50%;

    /* ---- Shadows ---- */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-golden: 0 4px 20px rgba(220, 197, 95, 0.3);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* ---- Transitions ---- */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* ---- Z-Index Scale ---- */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* ---- Navbar ---- */
    --navbar-height: 70px;
    --navbar-height-mobile: 60px;
}

/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-normal);
    line-height: var(--lh-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-cta);
    font-weight: var(--fw-bold);
    text-decoration: none;
    z-index: var(--z-toast);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 0;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-text-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 {
    font-family: var(--font-subheading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
}
h4 {
    font-family: var(--font-subheading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
}

/* ---- Links ---- */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

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

/* ---- Lists ---- */
ul, ol {
    list-style: none;
}

/* ---- Buttons ---- */
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--section-padding) 0;
}

.section--dark {
    background-color: var(--color-secondary);
    color: var(--color-text-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-text-white);
}

.section--light {
    background-color: var(--color-bg-light);
}

.section--cream {
    background-color: var(--color-bg-cream);
}

/* ---- Section Header ---- */
.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__subtitle {
    display: inline-block;
    font-family: var(--font-cta);
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section__title {
    margin-bottom: var(--space-md);
}

.section__description {
    font-size: var(--fs-body-lg);
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: var(--lh-relaxed);
}

/* ---- Grid System ---- */
.grid {
    display: grid;
    gap: var(--gutter);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-cta);
    font-size: var(--fs-cta);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-secondary);
    box-shadow: var(--shadow-golden);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.btn--outline:hover {
    background-color: var(--color-text-white);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn--outline-dark {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-primary);
}

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

.btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    border-color: var(--color-secondary);
}

.btn--secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
}

.btn--sm {
    font-size: var(--fs-caption);
    padding: 0.625rem 1.25rem;
}

.btn--lg {
    font-size: var(--fs-body);
    padding: 1rem 2.5rem;
}

.btn--full {
    width: 100%;
}

.btn--icon {
    gap: 0.625rem;
}

.btn--icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
        --gutter: 20px;
    }

    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 48px;
        --gutter: 16px;
        --navbar-height: 60px;
    }

    .grid--4,
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--fs-caption);
    }
}
