/* ===============================================
 * Smart Pages - Main Website Stylesheet
 * File: assets/css/style.css
 * =============================================== */

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

:root {
    --primary: #55C5D0;
    --secondary: #641f5e;
    --text: #2d3748;
    --light: #718096;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #55C5D0;
    color: var(--text);
    line-height: 1.6;
}

/* Main Container */
.main-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Header */
.header-bg {
    background: linear-gradient(135deg, #55C5D0, #54c4d0);
    padding: 1rem;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    order: 1;
}

.logo-placeholder {
    width: 120px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.sp-logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-text {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}

/* Navigation */
.nav-container {
    width: 100%;
    order: 2;
}

.menu-toggle {
    display: none;
    background: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    background: rgba(255,255,255,0.1);
}

nav a:hover, 
nav a.active {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: white;
    padding: 2rem 1rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--light);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Banner/Slider */
.banner-section {
    background: white;
    padding: 2rem 1rem;
}

.slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
}

.slide-content {
    text-align: center;
    padding: 2rem;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Panels */
.panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 1rem;
    background: white;
}

.panel-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.panel-card {
    background: linear-gradient(135deg, rgba(85, 197, 208, 0.1), rgba(100, 31, 94, 0.05));
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: right;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
}

.panel-card:hover,
.panel-card-link:hover .panel-card {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(85, 197, 208, 0.2);
}

.panel-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.panel-card p {
    color: var(--light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(85, 197, 208, 0.1), rgba(100, 31, 94, 0.05));
    border-radius: 16px;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--light);
    font-size: 1.25rem;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
}

.item-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: right;
    transition: all 0.3s;
    border-right: 4px solid var(--primary);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(85, 197, 208, 0.2);
}

.item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.item-card h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.item-card p {
    color: var(--light);
    line-height: 1.8;
}

/* Contact Info Box */
.contact-info-box {
    background: linear-gradient(135deg, var(--primary), #54c4d0);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.contact-info-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
    gap: 1rem;
    justify-content: flex-end;
    text-align: right;
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-header {
    background: linear-gradient(135deg, var(--primary), #54c4d0);
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 2rem -2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(85, 197, 208, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), #54c4d0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(85, 197, 208, 0.3);
}

/* Product Cards */
.product-card {
    position: relative;
}

.product-card.featured {
    border-right: 4px solid #641f5e;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: right;
}

.product-features li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(85, 197, 208, 0.05), rgba(100, 31, 94, 0.02));
    border-radius: 8px;
    color: var(--text);
    position: relative;
    padding-right: 2rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    right: 0.75rem;
    color: var(--primary);
    font-weight: bold;
}

.product-footer {
    margin-top: 1.5rem;
}

.features-section {
    margin: 3rem 0;
}

.required {
    color: #e53e3e;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: right;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* About Page Styles */
.content-section {
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: right;
    transition: all 0.3s;
    border-right: 4px solid var(--primary);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(85, 197, 208, 0.2);
}

.about-card h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--light);
    line-height: 1.8;
}

.section-title {
    text-align: center;
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.values-section,
.why-us-section {
    margin-bottom: 3rem;
}

.cta-section {
    margin: 4rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), #54c4d0);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(85, 197, 208, 0.3);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background: #f7fafc;
}

.btn-submit {
    text-decoration: none;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { 
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul.active { 
        display: flex; 
    }

    .header-container {
        flex-direction: column;
    }

    .logo-section {
        order: 1;
    }

    .panels {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 200px;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-placeholder {
        width: 100px;
        height: 80px;
    }

    .sp-logo {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 180px;
    }

    .slide {
        font-size: 1.1rem;
    }

    .panel-card {
        padding: 1.5rem 1rem;
    }
}
