/* Team Pet - Clean & Simple CSS */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFF9E6; /* Calm yellow page background */
}

/* CSS Variables - Simple Color Palette */
:root {
    --primary-color: #E6B366;
    --secondary-color: #8B7355;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --home-bg: #FFF9E6; /* Calm yellow for home */
    --download-bg: #FFF3CD; /* Clean yellow for download */
    --features-bg: #f8f6f0; /* Warm light for features */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 64px;
    overflow: hidden;
}

/* Ensure consistent navigation height across all pages */
.h-16 {
    height: 4rem !important; /* 64px - force override any conflicting styles */
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Section Backgrounds - Clean and Simple */
#home {
    background-color: var(--home-bg);
    min-height: 100vh;
    padding-top: 80px;
}

#features {
    background: linear-gradient(135deg, var(--features-bg) 0%, #f2efe5 100%);
    padding: 80px 0;
}

#how-it-helps {
    background: linear-gradient(135deg, #f8f6f0 0%, #f2efe5 100%);
    padding: 80px 0;
}

#download {
    background-color: var(--download-bg);
    padding: 80px 0;
    color: var(--text-dark);
}

/* Download section text overrides for proper contrast */
#download h2 {
    color: var(--text-dark) !important;
}

#download p {
    color: var(--text-light) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.btn-app-store,
.btn-google-play {
    background-color: #000;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-app-store:hover,
.btn-google-play:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Cards and Components */
.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* ROBUST ICON CENTERING SOLUTION - Overrides Tailwind conflicts */

/* Icon container - High specificity to override Tailwind */
.feature-card .w-12.h-12 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    max-width: 3rem !important;
    max-height: 3rem !important;
    box-sizing: border-box !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0.5rem !important;
}

/* FontAwesome icon - Perfect centering with high specificity */
.feature-card .w-12.h-12 i.fas.feature-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    color: #e6b366 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 900 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Fallback centering for any feature-icon class */
.feature-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    color: #e6b366 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* iPhone Frame */
.iphone-frame {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
}

/* Animations */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-block.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .iphone-frame {
        width: 250px;
        height: 500px;
    }
    
    #home,
    #features,
    #how-it-helps,
    #download {
        padding: 60px 0;
    }
}

/* Footer */
footer {
    background-color: #1a252f;
    color: var(--white);
    padding: 40px 0;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Navigation Styles */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    max-width: 200px;
    overflow: hidden;
}

.logo-image {
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 40px !important;
    object-fit: contain !important;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link-download {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-link-download:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Mobile Menu */
#mobile-menu {
    display: none;
}

#mobile-menu.show {
    display: block;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.mobile-nav {
    background-color: var(--white);
    border-top: 1px solid #eee;
}

.mobile-nav-content {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-nav-link:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Hide navigation links on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-social {
        display: none;
    }
    
    #mobile-menu-button {
        display: block;
    }
}

@media (min-width: 769px) {
    #mobile-menu-button {
        display: none;
    }
}

/* Privacy Page Styles */
.privacy-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.privacy-section:last-child {
    border-bottom: none;
}

.content-container {
    max-width: 100%;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.feature-list li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #eee;
    border-radius: 8px;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table-container th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    color: var(--text-dark);
}

.table-container td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.table-container tr:last-child td {
    border-bottom: none;
}

.table-container tr:hover {
    background: #f8f9fa;
}

.note-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.info-box {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Responsive adjustments for privacy page */
@media (max-width: 768px) {
    .privacy-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    .table-container th,
    .table-container td {
        padding: 0.75rem;
    }
}