/* Template 1 - Modern Style */

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

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

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

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.site-title h1 {
    font-size: 1.5rem;
    margin: 0;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.main-nav {
    margin-top: 1rem;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-nav a:hover {
    color: #0073aa;
}

/* Hero */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sections */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #0073aa;
}

/* Gallery */
.gallery-container {
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #0073aa;
}

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

.social-link {
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.social-link:hover {
    background: #005a87;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Map Container */
.map-container {
    margin-top: 3rem;
}

.map-container h3 {
    margin-bottom: 1rem;
}

.map-address {
    margin-top: 1rem;
    font-style: italic;
}

#awg-embedded-map {
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #2d2d2d;
    --card-bg: #2d2d2d;
    --border-color: #404040;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}

[data-theme="dark"] .main-nav a {
    color: var(--text-color);
}

[data-theme="dark"] section {
    background-color: var(--bg-color);
}

[data-theme="dark"] .service-item,
[data-theme="dark"] .testimonial-item,
[data-theme="dark"] .faq-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .contact-info {
    background-color: var(--card-bg);
}

[data-theme="dark"] .site-footer {
    background-color: #1a1a1a;
}

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

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

[data-theme="dark"] .mobile-menu-toggle span {
    background: #e0e0e0;
}

/* Responsive Design */
/* Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .site-title h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 10px;
        padding: 1rem 0;
        border-top: 1px solid #eee;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 0.75rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-link {
        width: 100%;
        text-align: center;
    }
    
    #awg-embedded-map {
        height: 300px;
    }
    
    .awg-dark-mode-toggle {
        bottom: 15px;
        right: 15px;
    }
    
    .awg-dark-mode-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 15px;
        padding: 1rem 0;
        border-top: 1px solid #eee;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #awg-embedded-map {
        height: 350px;
    }
}

/* Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
}

/* Large Screens (1025px+) */
@media (min-width: 1025px) {
    .main-nav {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .main-nav a,
    .social-link,
    .awg-share-btn {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-item,
    .portfolio-item,
    .testimonial-item {
        min-height: 120px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-nav,
    .awg-dark-mode-toggle,
    .awg-social-sharing {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
