/* 
    CellularNZ Styles
    Color Palette:
    - Fern Green: #2E8B57
    - Ocean Blue: #1E90FF
    - Volcanic Black: #2F2F2F
    - Glacier White: #F8F9FA
    - Accent Gold: #FFD700
*/

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

:root {
    --fern-green: #2E8B57;
    --ocean-blue: #1E90FF;
    --volcanic-black: #2F2F2F;
    --glacier-white: #F8F9FA;
    --accent-gold: #FFD700;
    --gradient-primary: linear-gradient(135deg, #1E90FF 0%, #2E8B57 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 144, 255, 0.9) 0%, rgba(46, 139, 87, 0.9) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--volcanic-black);
    background-color: var(--glacier-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--volcanic-black);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }

a {
    color: var(--ocean-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--fern-green);
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--volcanic-black);
    color: var(--glacier-white);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--ocean-blue);
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    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);
}

/* Navigation */
.main-nav {
    background: var(--volcanic-black);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--glacier-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--glacier-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--ocean-blue);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,250 600,300 T1200,300" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><path d="M0,320 Q300,270 600,320 T1200,320" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 40px 20px;
}

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

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

.wave-animation {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path d="M0,50 Q300,20 600,50 T1200,50 L1200,100 L0,100 Z" fill="%23F8F9FA"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

/* Page Hero */
.page-hero {
    background: var(--gradient-primary);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--ocean-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--fern-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
}

.btn-secondary:hover {
    background: var(--ocean-blue);
    color: white;
}

/* Content Blocks */
.content-block {
    padding: 80px 20px;
}

.content-block.alt-bg {
    background: linear-gradient(135deg, rgba(248, 249, 250, 1) 0%, rgba(225, 235, 245, 0.3) 100%);
}

.block-header {
    text-align: center;
    margin-bottom: 50px;
}

.block-header svg {
    margin: 0 auto 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h3 {
    color: var(--fern-green);
    margin-top: 0;
}

.content-text p {
    margin-bottom: 20px;
}

.content-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    object-fit: cover;
}

.tech-list {
    list-style: none;
    padding-left: 0;
}

.tech-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.tech-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--ocean-blue);
    font-size: 1.2rem;
}

/* Cards */
.timeline-grid,
.tech-cards,
.region-cards,
.mvno-grid,
.future-cards,
.architecture-cards,
.smart-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.timeline-card,
.tech-card,
.region-card,
.mvno-card,
.future-card,
.arch-card,
.smart-city-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-card:hover,
.tech-card:hover,
.region-card:hover,
.mvno-card:hover,
.future-card:hover,
.arch-card:hover,
.smart-city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.2);
}

.timeline-card img,
.region-card img,
.mvno-card img,
.future-card img,
.arch-card img,
.smart-city-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 15px;
}

.year {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

.timeline-card h3,
.tech-card h3,
.region-card h3,
.mvno-card h3,
.future-card h3,
.arch-card h3,
.smart-city-card h3 {
    color: var(--ocean-blue);
    margin-bottom: 15px;
}

/* Vertical Timeline */
.timeline-vertical {
    position: relative;
    padding-left: 40px;
    margin-top: 40px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--ocean-blue);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--fern-green);
}

.timeline-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 15px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--volcanic-black);
    margin-top: 10px;
}

/* Tables */
.spectrum-table,
.comparison-table {
    margin-top: 40px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

thead {
    background: var(--gradient-primary);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: rgba(30, 144, 255, 0.05);
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, rgba(248, 249, 250, 1) 0%, rgba(225, 235, 245, 0.3) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form-wrapper h2 {
    color: var(--ocean-blue);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--volcanic-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--ocean-blue);
    margin-bottom: 10px;
}

.contact-card p {
    margin: 5px 0;
}

.contact-card .note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Map */
.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.map-placeholder {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-svg {
    width: 100%;
    height: auto;
}

.location-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.location-info h3 {
    color: var(--ocean-blue);
}

.location-info h4 {
    color: var(--fern-green);
    margin-top: 25px;
}

.location-list {
    list-style: none;
    padding: 0;
}

.location-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.location-list li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--ocean-blue);
}

.faq-item h3 {
    color: var(--ocean-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Legal Content */
.legal-content {
    background: white;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.legal-wrapper h2 {
    color: var(--ocean-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-wrapper h2:first-child {
    margin-top: 0;
}

.legal-wrapper h3 {
    color: var(--fern-green);
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-wrapper ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-wrapper li {
    margin-bottom: 10px;
}

.contact-details-box {
    background: rgba(30, 144, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--ocean-blue);
    margin: 20px 0;
}

/* CTA */
.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

.cta .btn-secondary {
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover {
    background: white;
    color: var(--ocean-blue);
}

/* Expansion Timeline */
.expansion-timeline {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.expansion-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--ocean-blue);
}

.expansion-content h3 {
    color: var(--fern-green);
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background: var(--volcanic-black);
    color: var(--glacier-white);
    padding: 60px 20px 30px;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: var(--glacier-white);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(248, 249, 250, 0.1);
    color: rgba(248, 249, 250, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--volcanic-black);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }
    
    .timeline-grid,
    .tech-cards,
    .region-cards,
    .mvno-grid,
    .future-cards,
    .architecture-cards,
    .smart-city-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-wrapper {
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .content-block {
        padding: 50px 20px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .timeline-card,
    .tech-card,
    .region-card,
    .mvno-card,
    .future-card,
    .arch-card,
    .smart-city-card {
        padding: 20px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

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

.content-block > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .mobile-menu-toggle,
    .cookie-banner,
    .main-nav,
    .hero,
    .page-hero,
    .cta,
    .main-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-block {
        padding: 20px 0;
    }
}

