/* ========================================
   Aj Wireless & More — Styles
   Warm terracotta + sand palette
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracotta: #C0603A;
    --terracotta-dark: #A04E2E;
    --terracotta-light: #D4805E;
    --sand: #F5E6D3;
    --sand-light: #FBF5EE;
    --sand-dark: #E8D5BE;
    --cream: #FFFDF9;
    --charcoal: #2D2420;
    --charcoal-light: #4A3F38;
    --warm-gray: #7A6E66;
    --warm-gray-light: #A89890;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(45, 36, 32, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 36, 32, 0.10);
    --shadow-lg: 0 8px 40px rgba(45, 36, 32, 0.14);
    --shadow-xl: 0 16px 60px rgba(45, 36, 32, 0.18);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 96, 58, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--charcoal);
}

.nav-logo-accent {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--charcoal-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--terracotta);
    background: rgba(192, 96, 58, 0.08);
}

.nav-cta {
    background: var(--terracotta) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background: var(--terracotta-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192, 96, 58, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--charcoal);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(192, 96, 58, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-terracotta {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-outline-terracotta:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(192, 96, 58, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.pexels.com/photos/8386643/pexels-photo-8386643.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 36, 32, 0.82) 0%,
        rgba(45, 36, 32, 0.65) 50%,
        rgba(192, 96, 58, 0.45) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 96, 58, 0.2);
    border: 1px solid rgba(192, 96, 58, 0.4);
    color: #F5C4A0;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: normal;
    color: var(--sand);
}

.hero-subheadline {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 253, 249, 0.85);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 253, 249, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-item svg {
    color: var(--sand);
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
    height: 560px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-phone {
    width: 280px;
    height: 380px;
    top: 40px;
    right: 0;
    z-index: 1;
}

.hero-card-accent {
    width: 240px;
    height: 180px;
    bottom: 40px;
    right: 60px;
    z-index: 2;
    border: 4px solid rgba(255, 253, 249, 0.3);
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    background: rgba(192, 96, 58, 0.12);
    color: var(--terracotta);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 560px;
    line-height: 1.75;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(192, 96, 58, 0.06);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(192, 96, 58, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* --- Products --- */
.products {
    padding: 100px 0;
    background: var(--sand-light);
}

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

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(192, 96, 58, 0.06);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.925rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: var(--cream);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-content .section-tag {
    margin-bottom: 16px;
}

.why-us-content .section-title {
    margin-bottom: 20px;
}

.why-us-text {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-us-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: var(--charcoal-light);
    font-weight: 500;
}

.why-us-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 2px;
}

.why-us-visual {
    position: relative;
    height: 600px;
}

.why-us-image-main {
    position: absolute;
    width: 320px;
    height: 420px;
    top: 0;
    right: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-us-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-us-image-small {
    position: absolute;
    width: 240px;
    height: 180px;
    bottom: 20px;
    left: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.why-us-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: var(--sand-light);
}

.cta-card {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
    border-radius: var(--radius-xl);
    padding: 72px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 96, 58, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 230, 211, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.25;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 253, 249, 0.75);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Location --- */
.location {
    padding: 100px 0;
    background: var(--cream);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-info {
    padding: 48px 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(192, 96, 58, 0.06);
}

.location-info .section-tag {
    margin-bottom: 16px;
}

.location-info .section-title {
    margin-bottom: 32px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.location-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.location-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
}

.location-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--warm-gray);
    margin-bottom: 4px;
    font-weight: 700;
}

.location-item p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.location-item a {
    color: var(--terracotta);
    font-weight: 600;
}

.location-item a:hover {
    color: var(--terracotta-dark);
    text-decoration: underline;
}

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 420px;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: rgba(255, 253, 249, 0.75);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-accent {
    color: var(--terracotta-light);
}

.footer-desc {
    font-size: 0.925rem;
    line-height: 1.75;
    margin-bottom: 20px;
    color: rgba(255, 253, 249, 0.6);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 253, 249, 0.7);
    transition: var(--transition);
}

.footer-contact-item:hover {
    color: var(--sand);
}

.footer-links-group h4,
.footer-hours h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-links-group ul,
.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a,
.footer-hours li span:first-child {
    font-size: 0.925rem;
    color: rgba(255, 253, 249, 0.6);
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--sand);
    padding-left: 4px;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.925rem;
}

.footer-hours li span:last-child {
    color: rgba(255, 253, 249, 0.5);
    font-weight: 600;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 253, 249, 0.5);
    line-height: 1.6;
    margin-top: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 253, 249, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 253, 249, 0.4);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--terracotta);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--terracotta-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subheadline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-visual {
        height: 400px;
        order: -1;
    }

    .why-us-image-main {
        width: 260px;
        height: 340px;
    }

    .why-us-image-small {
        width: 200px;
        height: 150px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        font-size: 1.05rem;
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(45, 36, 32, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-container {
        padding-top: 0;
    }

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

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

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }

    .cta-card {
        padding: 48px 28px;
    }

    .location-info {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
