/* 
 * Main CSS for Puxihi-hawija website
 * Color palette:
 * - Jade Green: #1ABC9C (main background)
 * - Walnut Brown: #5D4037 (text and buttons)
 * - Orange Coral: #FF7043 (accents and hover effects)
 * - Milky White: #FAF9F6 (section backgrounds)
 * - Deep Indigo: #3F51B5 (decorative elements)
 */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #5D4037;
    background-color: #1ABC9C;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #3F51B5;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover, a:focus {
    color: #FF7043;
    transform: translateY(-2px);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #FF7043;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 150px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #5D4037;
    color: #FAF9F6;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #FF7043;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before, .btn:focus::before {
    left: 0;
}

.btn:hover, .btn:focus {
    color: #FAF9F6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
.site-header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 188, 156, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: #5D4037;
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF7043;
    transition: width 0.3s ease;
}

.main-nav a:hover::after, 
.main-nav a:focus::after, 
.main-nav a.active::after {
    width: 100%;
}

/* Main content area */
main {
    margin-top: 90px;
}

/* Section styling */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #FAF9F6;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Hero section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #1ABC9C;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    margin-bottom: 20px;
    color: #5D4037;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About section */
.about {
    background-color: #FAF9F6;
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(63, 81, 181, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* How it works section */
.how-it-works {
    background-color: #1ABC9C;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    counter-reset: step;
}

.step {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 30px;
    background-color: #FAF9F6;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #FF7043;
    color: #FAF9F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step h3 {
    text-align: center;
    margin-top: 10px;
}

.step-icon {
    text-align: center;
    font-size: 2.5rem;
    color: #3F51B5;
    margin-bottom: 20px;
}

/* Products section */
.products {
    background-color: #FAF9F6;
}

.product-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF7043;
    margin-top: 15px;
}

.product-btn {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* Testimonials section */
.testimonials {
    background-color: #1ABC9C;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: #FAF9F6;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(63, 81, 181, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid #3F51B5;
}

.testimonial-info h4 {
    margin-bottom: 5px;
}

.testimonial-location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
}

.testimonial-flag {
    width: 20px;
    margin-right: 5px;
}

/* Certificates section */
.certificates {
    background-color: #FAF9F6;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.certificate-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-10px);
}

.certificate-icon {
    font-size: 3rem;
    color: #3F51B5;
    margin-bottom: 15px;
}

/* Order form section */
.order {
    background-color: #1ABC9C;
    position: relative;
    overflow: hidden;
}

.order::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(63, 81, 181, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.order-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FAF9F6;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    animation: slideInUp 0.5s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #3F51B5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-errors-list {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}

/* FAQ section */
.faq {
    background-color: #FAF9F6;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    display: block;
    background-color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    user-select: none;
    text-decoration: none;
    color: inherit;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    padding-right: 30px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: normal;
    word-spacing: normal;
    text-rendering: optimizeLegibility;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    background-color: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Show content when the item is targeted */
.accordion-item:target .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* Rotate plus sign when targeted */
.accordion-item:target .accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Footer */
.site-footer {
    background-color: #5D4037;
    color: #FAF9F6;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo, .footer-contact, .footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo p {
    margin-top: 15px;
}

.footer-contact address {
    font-style: normal;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #FAF9F6;
}

.footer-links a:hover {
    color: #FF7043;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(250, 249, 246, 0.1);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(93, 64, 55, 0.95);
    color: #FAF9F6;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease;
}

.cookie-banner p {
    margin: 10px 0;
}

.cookie-banner a {
    color: #FF7043;
    text-decoration: underline;
}

/* Policy pages */
.policy-content {
    background-color: #FAF9F6;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-content h2 {
    margin-top: 40px;
}

.policy-content h3 {
    margin-top: 30px;
}

.policy-content ul, .policy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

/* Thank you page */
.thank-you {
    text-align: center;
    padding: 80px 0;
    background-color: #FAF9F6;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    font-size: 5rem;
    color: #1ABC9C;
    margin-bottom: 30px;
    animation: bounce 2s ease infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .site-header {
        padding: 15px 0;
        position: relative;
    }
    
    main {
        margin-top: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        background-color: #1ABC9C;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .main-nav li {
        margin: 0 0 20px 0;
    }
    
    .hero {
        height: auto;
        padding: 100px 0;
    }
    
    .cookie-banner {
        flex-direction: column;
    }
    
    .cookie-banner .btn {
        margin-top: 15px;
    }
    
    .order-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
    }
} 