/**
 * Custom Styles for Mr.Tankless Theme
 * Additional styling beyond the main stylesheet
 */

/* ==========================================
   Hero Section Enhancements
   ========================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-form {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card .btn {
    margin-top: auto;
}

/* ==========================================
   Offer Cards
   ========================================== */
.offer-card {
    background: var(--white);
    border: 3px solid #f0c14b;
    border-radius: 10px;
    padding: 40px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.offer-card::before {
    content: '🏆';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
}

.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.offer-card .offer-details {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

.offer-card .offer-logo {
    margin-top: 30px;
    text-align: right;
}

/* ==========================================
   Review Cards
   ========================================== */
.review-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin: 15px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-content {
    color: var(--text-light);
    line-height: 1.6;
}

.review-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

/* ==========================================
   FAQ Accordion
   ========================================== */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question::after {
    content: '▼';
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* ==========================================
   Badge/Partner Grid
   ========================================== */
.accreditation-section {
    background: var(--dark-gray);
    padding: 60px 0;
    text-align: center;
}

.accreditation-section h2 {
    color: var(--white);
    margin-bottom: 40px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-item img {
    max-width: 150px;
    height: auto;
}

/* ==========================================
   Google Review Summary
   ========================================== */
.review-summary {
    text-align: center;
    padding: 40px 0;
}

.review-summary h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.review-rating .stars {
    color: #ffc107;
}

.review-count {
    color: var(--text-light);
    font-size: 1rem;
}

/* ==========================================
   CTA Sections
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Section Spacing
   ========================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* ==========================================
   Utilities
   ========================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ==========================================
   Responsive Grids
   ========================================== */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================
   Navigation Enhancements
   ========================================== */

/* Touch-friendly navigation for tablets and mobile */
@media (hover: none) and (pointer: coarse) {
    .navigation-bar .main-navigation a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Ensure dropdowns work on touch devices */
.navigation-bar .main-navigation .menu-item-has-children {
    -webkit-tap-highlight-color: transparent;
}

/* Better visual feedback on mobile */
@media (max-width: 992px) {
    .navigation-bar .main-navigation a:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .navigation-bar .main-navigation ul ul a:active {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Smooth transitions for all menu items */
.navigation-bar .main-navigation a {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

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

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

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

/* ==========================================
   Footer Enhancements
   ========================================== */

/* Partner Logos Styling */
.footer-section.our-partners .partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
}

.footer-section.our-partners .partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 5px;
    min-height: 60px;
    padding: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-section.our-partners .partner-logo:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}

.footer-section.our-partners .partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.footer-section.our-partners .partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section.our-partners .partner-logo:hover img {
    opacity: 1;
}

/* Social Links Styling */
.footer-section.follow-us .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-section.follow-us .social-links a {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-section.follow-us .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer CTA Section */
.footer-cta {
    transition: background-color 0.3s ease;
}

.footer-cta h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-cta .btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer-cta .btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Footer Content Layout */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    padding-left: 5px;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom .sep {
    margin: 0 10px;
    opacity: 0.5;
}

.footer-bottom a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Footer Logo */
.footer-section.company-info .footer-logo {
    margin-bottom: 20px;
}

.footer-section.company-info .footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-section.company-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
        text-align: center;
    }
    
    .footer-section.our-partners .partner-logos {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-section.follow-us .social-links {
        justify-content: center;
    }
    
    .footer-cta h2 {
        font-size: 1.5rem;
    }
    
    .footer-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .footer-section.our-partners .partner-logos {
        flex-wrap: wrap;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
}

