/*
Theme Name: Wetex Sanitarywares
Theme URI: https://wetexsanitarywares.com/
Author: Antigravity
Author URI: https://google.com/
Description: Premium Custom Theme for Wetex Sanitarywares - sanitaryware, bathroom fittings, and CP fittings showroom in Ernakulam, Kochi, Kerala. Built with native Gutenberg Block Editor support and Luxury Gallery aesthetic.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wetex
*/

/* --- Design System & CSS Variables --- */
:root {
    /* Premium Luxury Colors */
    --color-primary: #559585;      /* Dark Green Accent */
    --color-hover: #3E6F63;        /* Deep Luxury Green */
    --color-bg-neutral: #F8FAF9;   /* Soft Neutral Primary BG */
    --color-section-bg: #DCEAE6;   /* Light Green Accent BG */
    --color-subtle-bg: #F3F8F7;    /* Subtle Off-White Accent BG */
    --color-cta: #C98A4B;          /* Luxury Gold CTA */
    --color-cta-hover: #B8793B;    /* Deeper Gold */
    --color-dark-text: #1A1F1E;    /* Premium Near-Black Typography */
    --color-light-text: #6B7B78;   /* Muted Grey */
    --color-border: #E2E8E7;       /* Subtle Border/Line */
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', 'Work Sans', sans-serif;
    
    /* Spacing & Layout - High-End Luxury Whitespace */
    --spacing-desktop: 120px;       /* 120px Desktop Section Padding for calm elegance */
    --spacing-mobile: 48px;
    --max-width: 1200px;
    --border-radius: 16px;          /* Softer corners for premium feel */
    --box-shadow: 0 15px 40px rgba(26, 31, 30, 0.05); /* Soft, blurred shadow */
    --box-shadow-hover: 0 25px 50px rgba(26, 31, 30, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Ultra smooth ease-out */
}

/* --- Resets & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-neutral);
    color: var(--color-dark-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark-text);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: 400; /* Thin, architectural heading */
    letter-spacing: 1px;
}
h2 { 
    font-size: 2.5rem; 
    font-weight: 400; /* Thin, architectural heading */
    letter-spacing: 1.5px;
}
h3 { 
    font-size: 1.6rem; 
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 24px;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(248, 250, 249, 0.9);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

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

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

.site-logo a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark-text);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-hover);
    color: var(--color-white);
    padding: var(--spacing-desktop) 0 40px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

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

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--color-cta);
    padding-left: 4px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* --- UI Component Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cta);
    color: var(--color-white) !important;
    padding: 16px 36px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(201, 138, 75, 0.2);
}

.btn:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 138, 75, 0.35);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-white);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-hover) !important;
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(85, 149, 133, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-hover);
    box-shadow: 0 12px 32px rgba(85, 149, 133, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
}

/* --- Custom Layout Sections --- */
.section {
    padding: var(--spacing-desktop) 0;
}

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

.section-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-primary h1,
.section-primary h2,
.section-primary h3 {
    color: var(--color-white);
}

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

.section-dark-green {
    background-color: var(--color-hover);
    color: var(--color-white);
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--color-primary);
}

/* --- Page Hero Banner --- */
.page-banner {
    background-color: var(--color-hover);
    padding: 100px 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(85,149,133,0.2) 0%, rgba(31,42,40,0.5) 100%);
    z-index: 1;
}

.page-banner h1 {
    color: var(--color-white);
    font-size: 3rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Grid Systems --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

/* --- Cards ("Gallery Style" soft depth) --- */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 231, 0.5);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.card-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 premium aspect ratio */
    background-color: var(--color-bg-neutral);
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05); /* Subtle premium zoom */
}

.card-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-body p {
    color: var(--color-light-text);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* --- Responsive Layout Breakpoints --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-desktop: var(--spacing-mobile);
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .grid-3, .grid-4, .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
