/*
Theme Name: Cwtch & Code Corner Landing
Theme URI: https://cwtchcode.com
Author: Cwtch & Code
Author URI: https://cwtchdoce.com
Description: A warm, cosy landing page theme for Cwtch Corner app. 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cwtch-landing
Tags: one-column, custom-colors, custom-menu, featured-images, responsive-layout, accessibility-ready
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Primary Colors */
    --cwtch-cream: #E8D5C4;
    --cwtch-background: #FAF8F5;
    --cwtch-pink: #FFB3BA;
    --cwtch-blue: #B4E4FF;
    --cwtch-primary: #FF6B9D;
    
    /* Text Colors */
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    
    /* Spacing  */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--cwtch-background);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    opacity: 0.8;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   Header
   ======================================== */
.site-header {
    background: linear-gradient(135deg, var(--cwtch-cream) 0%, rgba(255, 232, 240, 0.8) 100%);
    padding: var(--spacing-lg) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.site-title {
    font-size: 1.75rem;
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.site-title a {
    color: var(--text-dark);
}

.site-description {
    display: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--cwtch-cream) 0%, #FFE8F0 50%, var(--cwtch-blue) 100%);
    padding: 100px var(--spacing-lg) 120px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 179, 186, 0.2) 0%, transparent 70%);
    border-radius: var(--radius-round);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--cwtch-primary), #FF8FB4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.hero-emoji {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========================================
   Buttons
   ======================================== */
.cta-button {
    display: inline-block;
    background: var(--cwtch-primary);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-xl);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-1px);
}

.button-secondary {
    background: white;
    color: var(--cwtch-primary);
    border: 2px solid var(--cwtch-primary);
}

.button-secondary:hover {
    background: var(--cwtch-primary);
    color: white;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 80px var(--spacing-lg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots-section {
    padding: 80px var(--spacing-lg);
    background: linear-gradient(180deg, transparent 0%, rgba(232, 213, 196, 0.1) 100%);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.screenshot-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.screenshot-wrapper:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.screenshot-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Download Section
   ======================================== */
.download-section {
    padding: 80px var(--spacing-lg);
    background: linear-gradient(135deg, var(--cwtch-pink) 0%, var(--cwtch-blue) 100%);
    text-align: center;
    border-radius: 40px;
    margin: var(--spacing-xl);
}

.download-section h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.download-section p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--cwtch-cream) 0%, rgba(255, 232, 240, 0.5) 100%);
    padding: 60px var(--spacing-lg) var(--spacing-xl);
    border-radius: 40px 40px 0 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--text-medium);
}

.footer-section a:hover {
    color: var(--cwtch-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-medium);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 60px var(--spacing-md) 80px;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-section {
        margin: var(--spacing-md);
        padding: 60px var(--spacing-md);
        border-radius: var(--radius-xl);
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

.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: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--cwtch-primary);
    outline-offset: 2px;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
