/* --- Variables & Reset --- */
:root {
    /* CyberSmed.dk – Dark Tech Palette */
    --hue-primary: 215;
    /* Deep steel blue */
    --hue-accent: 152;
    /* Cyber green */

    --color-bg: hsl(215, 20%, 97%);
    --color-surface: hsl(0, 0%, 100%);
    --color-text-main: hsl(215, 30%, 15%);
    --color-text-muted: hsl(215, 15%, 38%);

    --color-primary: hsl(215, 55%, 22%);
    --color-primary-light: hsl(215, 55%, 32%);

    /* Cyber green accent - darkened for WCAG compliance */
    --color-accent: hsl(152, 75%, 28%);
    --color-accent-hover: hsl(152, 75%, 22%);
    --color-accent-bright: hsl(152, 65%, 48%);

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --border-radius: 12px;
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.13);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--spacing-lg) 0;
}

.padding-large {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: white;
}

/* --- Pain Points --- */
.pain-points-section {
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.pain-points-title {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.pain-points-grid {
    display: grid;
    gap: 1rem;
}

.pain-point-card {
    background: rgba(var(--hue-primary), 10%, 97%, 1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
}

.pain-point-text {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), hsl(215, 65%, 35%));
    color: white;
    box-shadow: 0 4px 15px rgba(28, 65, 115, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(28, 65, 115, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: white;
    border-color: white;
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 26, 46, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    transition: all var(--transition-speed);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--color-accent-bright);
}

.nav-desktop ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-desktop a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.nav-desktop a:not(.btn):hover {
    color: var(--color-accent-bright);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    transition: 0.3s;
}

.nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: hsl(215, 55%, 16%);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    color: white;
    transition: transform 0.4s ease-in-out;
    z-index: 999;
}

.nav-mobile.active {
    transform: translateY(0);
}

.nav-mobile li {
    margin-bottom: 1.5rem;
}

/* Background: dark gradient with subtle grid */
.hero-section {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 7rem;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(215, 55%, 14%) 0%, hsl(215, 40%, 22%) 100%);
    color: white;
}

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

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-accent-bright);
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.highlight {
    color: var(--color-accent-bright);
    position: relative;
}

.hero-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Mesh/grid overlay + Glowing orbs */
.hero-background {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 60%, hsla(152, 70%, 48%, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, hsla(215, 70%, 55%, 0.25), transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* --- Services --- */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(var(--hue-primary), 100%, 95%, 0.1);
    /* light tint */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

/* Fix SVG icon background color tint since variables don't work in rgba like that easily in pure CSS without precalc, 
   using hardcoded light blue for now or adjust logic. 
   Actually, let's use a solid color with opacity. */
.icon-box {
    background-color: #f0f4f8;
    /* Light blue-grey */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
}

/* --- About --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: var(--border-radius);
    background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.about-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.stats-list {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.stats-list .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stats-list .label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info .section-title {
    font-size: 2rem;
}

.contact-details {
    margin-top: 3rem;
}

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

.contact-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.contact-item a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, hsl(215, 55%, 14%) 0%, hsl(215, 40%, 22%) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo .dot {
    color: var(--color-accent-bright);
}

.footer-tagline {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent-bright);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.45;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
}

/* --- Testimonials Specifics --- */
.quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.3;
    font-family: serif;
    margin-bottom: -1rem;
}

.quote-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Hamburger Animation --- */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

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

/* --- Package Cards (Core Products) --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.package-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-bright));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.package-card:hover {
    box-shadow: 0 20px 40px -12px rgba(28, 65, 115, 0.15);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 1);
}

.package-card:hover::before {
    opacity: 1;
}

.package-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, hsl(215, 20%, 95%), hsl(215, 20%, 88%));
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, color 0.4s ease;
}

.package-card:hover .package-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--color-accent-hover);
}

.package-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.package-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.package-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.package-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Accordion */
.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: background var(--transition-speed), border-color var(--transition-speed);
    margin-top: auto;
}

.accordion-toggle:hover {
    background: #f4f7fb;
    border-color: var(--color-primary);
}

.accordion-toggle[aria-expanded="true"] {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.accordion-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.accordion-toggle[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
}

.accordion-body.open {
    max-height: 600px;
    padding-top: 1rem;
}

.accordion-section {
    margin-bottom: 1rem;
}

.acc-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.acc-green {
    color: #16a34a;
}

.acc-red {
    color: #dc2626;
}

.acc-blue {
    color: #2563eb;
}

.accordion-body ul,
.accordion-body ol {
    padding-left: 1.2rem;
    list-style: disc;
}

.accordion-body ol {
    list-style: decimal;
}

.accordion-body li {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

/* --- Add-on Cards --- */
.addons-header {
    margin-bottom: 2rem;
}

.addons-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.addons-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.addon-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.addon-card:hover {
    box-shadow: 0 15px 30px -10px rgba(28, 65, 115, 0.1);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    border-color: white;
}

.addon-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.addon-card:hover .addon-icon {
    transform: translateY(-3px) scale(1.05);
}

.addon-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.addon-title {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.addon-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.addon-points {
    list-style: none;
    padding: 0;
}

.addon-points li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    border-top: 1px solid hsl(220, 20%, 89%);
}

.addon-points li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* Responsive packages/addons */
@media (max-width: 1024px) {

    .packages-grid,
    .addons-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {

    .packages-grid,
    .addons-grid {
        grid-template-columns: 1fr;
    }
}