/*
Theme Name: MAI Home
Description: A luxury home renovation landing page inspired by Aman design
Version: 1.0
*/

/* 
===============================================
  TABLE OF CONTENTS
===============================================
1. BASE STYLES
   - Variables
   - Reset
   - Typography
   - Layout & Grid

2. COMPONENTS
   - Buttons
   - Forms
   - Navigation
   - Cards

3. SECTIONS
   - Hero & Video Intro
   - My Vision Section
   - Other Sections

4. UTILITIES & RESPONSIVE
   - Utilities
   - Mobile Responsive
===============================================
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@300;400;500;600&display=swap');

/* 
===============================================
  1. BASE STYLES
===============================================
*/

/* Enhanced Reset for WordPress */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* WordPress specific resets */
body.maihome-theme {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove default WordPress styles */
.wp-block-group__inner-container,
.wp-block-columns,
.wp-block-column,
.wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure proper box-sizing for all elements */
*, *:before, *:after {
    box-sizing: border-box;
}

/* Remove WordPress default margins */
h1, h2, h3, h4, h5, h6, p, blockquote, pre, dl, dd, ol, ul, figure, hr, fieldset, legend {
    margin: 0;
    padding: 0;
}

/* Remove default list styles */
ol, ul {
    list-style: none;
}

/* Remove default table styles */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove default form styles */
button, input, optgroup, select, textarea {
    margin: 0;
    font: inherit;
    color: inherit;
}

/* Variables - Aman Style */
:root {
    --primary-bg: #f6f2ec;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-light: #666666;
    --accent: #1a1a1a;
    --accent-light: #555555;
    
    --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
}

/* Base */
body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 
===============================================
  1.2 TYPOGRAPHY
===============================================
*/

/* Typography - Aman Style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 48px;
    font-weight: 300;
}
h2 { 
    font-size: 36px;
    font-weight: 400;
}
h3 { 
    font-size: 24px;
    font-weight: 400;
}

p { 
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* 
===============================================
  1.3 LAYOUT & GRID
===============================================
*/

/* Layout - Aman Style */
.section {
    padding: var(--spacing-xxl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-xl);
}

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

@media (min-width: 768px) {
    .section { padding: calc(var(--spacing-xxl) * 1.2) 0; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Aman-inspired Cards */
.experience-card,
.service-card,
.feature-card {
    background-color: transparent;
    border: none;
    transition: opacity 0.3s ease;
    padding: var(--spacing-lg);
    border-radius: 0;
    box-shadow: none;
}

.experience-card:hover,
.service-card:hover,
.feature-card:hover {
    opacity: 0.8;
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.card-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--text-primary);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.card-link:hover {
    opacity: 0.7;
}

/* Section Headers - Aman Style */
.section-header {
    text-align: left;
    margin-bottom: var(--spacing-xxl);
    max-width: 500px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 200;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 300;
}

/* 
===============================================
  2. COMPONENTS
===============================================
*/

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

/* Links - Aman Style */
.btn,
.link-style {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--text-primary);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn:hover,
.link-style:hover {
    opacity: 0.7;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid var(--text-primary);
}

@media (max-width: 767px) {
    .btn-primary {
        padding: 12px 16px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

/* 
===============================================
  2.2 FORMS
===============================================
*/

/* Forms */
.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--text-light);
    background-color: var(--white);
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
    border-radius: 0;
}

@media (max-width: 767px) {
    .form-input {
        padding: 12px;
        font-size: 16px;
    }
}

.form-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-input::placeholder {
    color: var(--text-light);
    font-weight: 300;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 767px) {
    .form-group { flex-direction: column; }
}



/* Content Sections */
.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.large-text {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.subheading {
    font-style: italic;
    color: var(--text-light);
    margin-top: var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 300;
}

/* My Home section styles moved to css/sections/my-home.css */

/* My Plan section styles moved to css/sections/my-plan.css */

/* Services Grid - Aman Style */
.services-grid {
    display: grid;
    gap: var(--spacing-xxl);
    margin: var(--spacing-xxl) 0;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Final CTA */
.final-cta-section {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--spacing-xl);
    right: var(--spacing-xl);
    height: 1px;
    background-color: rgba(26, 26, 26, 0.1);
}

.final-cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--spacing-xl);
    right: var(--spacing-xl);
    height: 1px;
    background-color: rgba(26, 26, 26, 0.1);
}

.final-cta-section h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 32px;
    line-height: 1.3;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-signup {
    max-width: 500px;
    margin: var(--spacing-md) auto 0;
}



/* Service Pages */
.service-hero {
    height: 70vh;
    min-height: 500px;
}

.service-hero .hero-background::after {
    background: var(--primary-bg);
}

.steps-grid {
    display: grid;
    gap: var(--spacing-xxl);
    margin: var(--spacing-xxl) 0;
}

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: transparent;
    color: var(--text-primary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    margin: 0 auto var(--spacing-md);
    border: 1px solid var(--text-primary);
    box-shadow: none;
}

.step-content h3 {
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
}

/* Blog */
.posts-grid {
    display: grid;
    gap: var(--spacing-xxl);
    margin: var(--spacing-xxl) 0;
}

@media (min-width: 768px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
    background-color: transparent;
    transition: opacity 0.3s ease;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.post-card:hover {
    opacity: 0.8;
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
}

.post-content {
    padding: var(--spacing-lg) 0;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    font-size: 1.3rem;
}

.post-title a:hover {
    color: var(--accent);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-excerpt {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.read-more {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--text-primary);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.7;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.d-none { display: none; }
.d-block { display: block; }

@media (min-width: 768px) {
    .d-md-block { display: block; }
    .d-md-none { display: none; }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hero-cta,
    .cta-buttons,
    .service-ctas {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-cta .btn,
    .cta-buttons .btn,
    .service-ctas .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .card-image {
        height: 250px;
    }
    
    .section-header {
        text-align: center;
    }
}

/* Form Messages */
.form-message {
    display: none;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    font-size: 0.9rem;
    border-radius: 2px;
}

.form-message.success {
    background-color: #f0f4f0;
    color: #2d5a2d;
    border: 1px solid #c8d8c8;
}

.form-message.error {
    background-color: #faf0f0;
    color: #5a2d2d;
    border: 1px solid #d8c8c8;
} 