/*
Theme Name: Avalon Creative Professional
Description: A professional WordPress theme for Avalon Creative Ltd - fully editable and customizable
Version: 2.0.0
Author: Avalon Creative
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* WordPress Core Styles */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.site-branding .site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: #667eea;
}

.main-navigation a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Buttons */
.cta-button, .service-cta, .submit-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .service-cta:hover, .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.service-content li {
    margin-bottom: 8px;
}

.typical-wins {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.service-cta {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

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

.about-item {
    text-align: center;
    padding: 30px;
}

.about-item h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

/* Testimonials */
.testimonials {
    margin-top: 60px;
    padding: 50px 0;
    background: #f8f9fa;
    border-radius: 10px;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.testimonial cite {
    font-weight: 600;
    color: #667eea;
    font-style: normal;
}

/* Case Studies Section */
.case-studies {
    padding: 80px 0;
    background: #f8f9fa;
}

.case-studies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-study {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.case-study:hover {
    transform: translateY(-5px);
}

.case-study-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-study-content {
    padding: 30px;
}

.case-study h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact CTA Section */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form */
.contact-form-section {
    padding: 80px 0;
    background: white;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-widget h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
}

.footer-widget a:hover {
    color: #667eea;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.site-info {
    color: #ccc;
}

.site-info a {
    color: #667eea;
    text-decoration: none;
}

/* Single Post Templates */
.service-single,
.case-study-single,
.contact-page {
    padding: 120px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.entry-excerpt {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.service-featured-image,
.case-study-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.service-featured-image img,
.case-study-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 40px;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.service-wins {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #667eea;
}

.service-cta-section {
    text-align: center;
    margin: 40px 0;
}

.back-to-services,
.back-to-case-studies {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.back-to-services:hover,
.back-to-case-studies:hover {
    text-decoration: underline;
}

.case-study-navigation {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
}

.case-study-nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.prev-case-study,
.next-case-study {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* Contact Info */
.contact-info-widgets,
.contact-info-default {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-navigation.active ul {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .services-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .case-study-nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .contact-cta h2 {
        font-size: 2rem;
    }
    
    .services h2,
    .about h2,
    .case-studies h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-content,
    .case-study-content {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

