/* ==========================================================================
   IPv6 Sverige — baserat på InfraCom designprofil
   ========================================================================== */

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

:root {
    --teal-dark:   #055559;      /* Hero bg, headings */
    --teal-darker: #002625;      /* Footer */
    --teal-mid:    #74a5a8;      /* Service cards */
    --teal-soft:   #e6f0ed;      /* Background sections */
    --tan:         #f3e0cc;      /* Overview bg */
    --orange:      #ea5b0c;      /* Primary button */
    --orange-text: #f5f3f2;      /* Button text */
    --body:        #404040;      /* Body text */
    --muted:       #6b6b6b;
    --border:      #e4e6ea;
    --max:         1200px;
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: var(--body);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { 
    color: inherit; 
    text-decoration: none; 
}

h1, h2, h3 { 
    font-family: inherit; 
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn {
    display: inline-block;
    background: var(--orange);
    color: var(--orange-text);
    padding: 10px 20px;
    border: 1px solid var(--orange);
    border-radius: 800px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    cursor: pointer;
    transition: color 0.3s linear, background-color 0.3s linear, border-color 0.3s linear, padding 0.3s linear;
    text-decoration: none;
}

.btn:hover {
    background: #fff;
    color: var(--orange);
    border-color: var(--orange);
}

.link-arrow {
    color: var(--orange);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transition: gap 0.2s ease;
    text-decoration: none;
}

.link-arrow::after {
    content: "→";
    font-size: 16px;
    transition: transform 0.25s ease;
}

.link-arrow:hover::after { 
    transform: translateX(6px); 
}

.link-arrow:hover { 
    gap: 18px; 
}

/* ==========================================================================
   HEADER - Infracom.se inspired layout
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(8, 85, 90, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    height: 58px;
}

.header__inner {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

.site-logo__image {
    width: 136px;
    height: auto;
    display: block;
}

/* Main navigation structure */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* Navigation links styling */
.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: #1a1a1a;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -0.1px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #000;
    background: rgba(8, 85, 90, 0.06);
}

/* Orange CTA button — matches infracom.se .nav-cta pill */
.nav-cta {
    background: var(--orange);
    color: var(--orange-text);
    padding: 7px 18px;
    border: 1px solid var(--orange);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    margin-left: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #fff;
    color: var(--orange);
    border-color: var(--orange);
    transform: translateY(-1px);
}

/* Extra link (like "Fjärrhjälp" on infracom.se) */
.nav-link-extra {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: #1a1a1a;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -0.1px;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link-extra:hover {
    color: #000;
    background: rgba(8, 85, 90, 0.06);
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */
.mobile-nav {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-cta {
    background: var(--orange);
    color: var(--orange-text) !important;
    padding: 8px 16px;
    border: 1px solid var(--orange);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.mobile-cta:hover {
    background: #fff;
    color: var(--orange);
    border: 1px solid var(--orange);
}

/* Hamburger menu button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--body);
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu a {
    padding: 16px 0;
    color: var(--body);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--orange);
}

.mobile-menu-cta {
    background: var(--orange) !important;
    color: var(--orange-text) !important;
    padding: 16px !important;
    border: 1px solid var(--orange) !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-top: 16px !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background: var(--teal-dark);
    color: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.hero__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    opacity: 0.9;
}

.hero__text h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: #fff;
}

.hero__text p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
}

.hero .link-arrow {
    color: #fff;
}

.hero .link-arrow::after {
    color: #fff;
}

/* IPv6 Visual */
.ipv6-visual {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ipv6-address, .ipv4-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ipv6-label, .ipv4-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.ipv6-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--orange);
    background: rgba(234, 91, 12, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(234, 91, 12, 0.3);
}

.ipv4-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vs-indicator {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section-title-center {
    text-align: center;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--teal-dark);
    margin-bottom: 24px;
}

.section-intro-center {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    max-width: 800px;
    margin: 0 auto 48px;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.stat-card--primary {
    background: var(--teal-soft);
    border-color: var(--teal-mid);
}

.stat-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.stat-card__content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 8px;
}

.stat-card__content p {
    font-size: 14px;
    color: var(--muted);
}

/* Statistikkällor */
.stats-sources {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.stats-sources h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 24px;
}

.sources-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sources-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sources-grid a:hover {
    background: var(--teal-mid);
    color: #fff;
    transform: translateY(-2px);
}

.source-icon {
    font-size: 16px;
}

.sources-note {
    font-size: 13px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Overview Section */
.overview-section {
    padding: 80px 0;
    background: var(--tan);
}

.overview__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview__text h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--teal-dark);
    margin-bottom: 24px;
}

.overview__text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin: 24px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.feature-list li::before {
    content: "✓";
    color: var(--orange);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Comparison Chart */
.comparison-chart {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.chart-item {
    margin-bottom: 32px;
}

.chart-item:last-child {
    margin-bottom: 0;
}

.chart-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 12px;
}

.chart-bar {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.chart-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease;
}

.chart-fill--ipv4 {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.chart-fill--ipv6 {
    background: linear-gradient(90deg, var(--orange), #f97316);
}

.chart-label {
    font-size: 14px;
    color: var(--body);
    display: block;
    margin-bottom: 4px;
}

.chart-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
}

.chart-status--exhausted {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.chart-status--available {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

/* Public Sector Section */
.public-sector-section {
    padding: 80px 0;
    background: #fff;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.resource-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.resource-card--featured {
    background: var(--teal-soft);
    border-color: var(--teal-mid);
}

.resource-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.resource-card__content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 12px;
}

.resource-card__content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 16px;
}

.resource-card__cta {
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background: var(--teal-soft);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.resource-category {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
}

.resource-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 20px;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 12px;
}

.resource-list a {
    color: var(--body);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.resource-list a:hover {
    color: var(--orange);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--teal-dark);
    color: #fff;
    text-align: center;
}

.cta-section__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-section__text h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 24px;
}

.cta-section__text p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--teal-darker);
    color: #fff;
    padding: 60px 0 20px;
}

.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer__col h3,
.footer__col h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer__col p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.footer__col--links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col--links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer__col--links a:hover {
    color: var(--orange);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer__contact-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer__contact-item a:hover {
    color: var(--orange);
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero__inner,
    .overview__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero__text h1 {
        font-size: 40px;
    }
    
    .section-title-center {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    .header__inner {
        gap: 32px;
    }
    
    .nav-links {
        gap: 4px;
    }
    
    .nav-links a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .nav-actions {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 68px;
    }
    
    .header__inner {
        gap: 16px;
        padding: 0 20px;
    }
    
    .site-logo__image {
        width: 110px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .mobile-menu-overlay {
        top: 68px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero__text h1 {
        font-size: 32px;
    }
    
    .hero-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .ipv6-visual {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__inner,
    .overview__inner {
        padding: 0 16px;
    }
    
    .hero__text h1 {
        font-size: 28px;
    }
    
    .section-title-center {
        font-size: 28px;
    }
    
    .stat-card,
    .resource-card {
        padding: 24px 20px;
    }
}