@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --ocean-teal: #167C80;
    --deep-teal: #0B5558;
    --seafoam: #B9DDD5;
    --coral-red: #D85C5C;
    --soft-coral: #F2C5BF;
    --mist-green: #DCEBE4;
    --warm-stone: #E6DED1;
    --charcoal-green: #263B39;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-pill: 100px;
}

/* =========================================
   RESET & LAYOUT FOUNDATION
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-body);
    background-color: var(--warm-stone);
    color: var(--charcoal-green);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--deep-teal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    line-height: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--deep-teal);
    color: var(--mist-green);
}

.btn-primary:hover {
    background-color: var(--ocean-teal);
    color: var(--warm-stone);
}

.btn-coral {
    background-color: var(--coral-red);
    color: var(--warm-stone);
}

.btn-coral:hover {
    background-color: #b84c4c;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--deep-teal);
    color: var(--deep-teal);
}

.btn-outline:hover {
    background-color: var(--deep-teal);
    color: var(--mist-green);
}

/* =========================================
   HEADER
   ========================================= */
.site-header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 24px;
    z-index: 1000;
    pointer-events: none; /* Allows clicking through the empty space around the header */
}

.site-header {
    pointer-events: auto;
    max-width: 1240px;
    margin: 0 auto;
    background: rgba(220, 235, 228, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--seafoam);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(11, 85, 88, 0.1);
}

.sh-brand {
    display: flex;
    flex-direction: column;
}

.sh-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-teal);
    line-height: 1.1;
}

.sh-tagline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ocean-teal);
    letter-spacing: 1px;
}

.sh-nav {
    display: flex;
    gap: 24px;
}

.sh-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--deep-teal);
    font-size: 0.95rem;
}

.sh-nav a:hover {
    color: var(--coral-red);
}

.sh-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sh-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.sh-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--deep-teal);
    transition: 0.3s;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
}

.hero-visual {
    grid-column: 1 / 10;
    grid-row: 1 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-height: 700px;
}

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

.hero-panel {
    grid-column: 7 / 13;
    grid-row: 2 / 4;
    background: var(--deep-teal);
    border-radius: var(--radius-lg);
    padding: 50px;
    position: relative;
    z-index: 2;
    align-self: end;
    box-shadow: 0 20px 40px rgba(11, 85, 88, 0.15);
    margin-bottom: -40px;
}

.hp-label {
    display: inline-block;
    color: var(--seafoam);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border: 1px solid var(--seafoam);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.hero-panel h1 {
    color: var(--mist-green);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: 20px;
}

.hero-panel p {
    color: var(--seafoam);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.hp-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================
   SERVICE CATALOGUE
   ========================================= */
.service-catalogue {
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

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

.service-row:nth-child(even) .sr-content {
    order: 2;
}

.service-row:nth-child(even) .sr-visual {
    order: 1;
}

.sr-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sr-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--coral-red);
    margin-bottom: 16px;
}

.sr-content h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 24px;
}

.sr-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.sr-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.sr-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   SYSTEMS SECTION
   ========================================= */
.systems-section {
    padding: 100px 0;
}

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

.sys-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.sys-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: end;
}

.sys-panel {
    border-radius: var(--radius-md);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sc-1 { background: var(--ocean-teal); height: 400px; }
.sc-2 { background: var(--deep-teal); height: 480px; }
.sc-3 { background: var(--charcoal-green); height: 360px; }
.sc-4 { background: var(--ocean-teal); height: 440px; }

.sys-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--mist-green);
    opacity: 0.3;
    margin-bottom: auto;
}

.sys-panel h3 {
    color: var(--soft-coral);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.sys-panel p {
    font-size: 0.95rem;
    color: var(--mist-green);
}

/* =========================================
   TROUBLESHOOTING
   ========================================= */
.troubleshooting-section {
    background: var(--deep-teal);
    padding: 120px 0;
    margin: 80px 0;
}

.diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.diag-left h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--seafoam);
    line-height: 1;
    text-transform: uppercase;
}

.diag-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.diag-item {
    border-left: 4px solid var(--coral-red);
    padding-left: 24px;
}

.diag-item h4 {
    color: var(--soft-coral);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.diag-item p {
    color: var(--mist-green);
    font-size: 1.05rem;
}

/* =========================================
   PROCESS DIAGRAM
   ========================================= */
.process-section {
    padding: 100px 0;
    text-align: center;
}

.process-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 80px;
}

.process-diagram {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px dashed var(--ocean-teal);
}

.pd-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--ocean-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mist-green);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 0 0 15px var(--warm-stone);
}

.pd-step {
    position: absolute;
    background: var(--deep-teal);
    color: var(--mist-green);
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.pd-step span {
    color: var(--soft-coral);
    font-size: 1.2rem;
}

.st-1 { top: -25px; left: 50%; transform: translateX(-50%); }
.st-2 { top: 25%; right: -60px; }
.st-3 { bottom: 10%; right: -20px; }
.st-4 { bottom: 10%; left: -20px; }
.st-5 { top: 25%; left: -60px; }

.process-mobile-list {
    display: none;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.process-mobile-list li {
    background: var(--mist-green);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--deep-teal);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid var(--seafoam);
}

.process-mobile-list li span {
    color: var(--ocean-teal);
    font-size: 1.5rem;
}

/* =========================================
   ÅLAND SECTION
   ========================================= */
.aland-section {
    padding: 80px 0;
}

.aland-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 100px 60px;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.aland-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.aland-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 85, 88, 0.4);
    z-index: 2;
}

.aland-content {
    position: relative;
    z-index: 3;
    background: var(--warm-stone);
    padding: 50px;
    border-radius: var(--radius-md);
    max-width: 500px;
}

.aland-content h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.aland-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.al-badge {
    display: inline-block;
    background: var(--ocean-teal);
    color: var(--mist-green);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-heading);
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-section {
    padding: 100px 0;
}

.contact-box {
    background: var(--mist-green);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    border: 2px solid var(--seafoam);
}

.contact-box h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 60px;
}

.c-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--deep-teal);
}

.cf-group.full {
    grid-column: 1 / -1;
}

.cf-group input, .cf-group select, .cf-group textarea {
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ocean-teal);
    background: var(--warm-stone);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    color: var(--charcoal-green);
}

.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus {
    outline: none;
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 3px rgba(11, 85, 88, 0.2);
}

.cf-group textarea {
    min-height: 160px;
    resize: vertical;
}

.c-form-grid button {
    justify-self: center;
    grid-column: 1 / -1;
    margin-top: 20px;
}

.form-success {
    display: none;
    background-color: var(--ocean-teal);
    color: var(--mist-green);
    padding: 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   FAQ
   ========================================= */
.faq-section {
    padding: 80px 0;
}

.faq-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.faq-wrap h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 60px;
}

.faq-item {
    border-bottom: 2px solid var(--seafoam);
    padding: 24px 0;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-teal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.faq-icon {
    color: var(--coral-red);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-a p {
    padding-top: 16px;
    font-size: 1.05rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--deep-teal);
    color: var(--seafoam);
    padding: 100px 0 40px;
    margin-top: 80px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.sf-huge {
    font-size: clamp(3rem, 7vw, 6rem);
    color: var(--mist-green);
    max-width: 1100px;
    margin-bottom: 80px;
    line-height: 1;
}

.sf-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--ocean-teal);
    padding-bottom: 60px;
}

.sf-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--soft-coral);
    font-weight: 700;
}

.sf-brand p {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--warm-stone);
}

.sf-loc {
    display: inline-block;
    background: var(--seafoam);
    color: var(--deep-teal);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    margin-top: 20px;
}

.sf-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-links h4 {
    color: var(--warm-stone);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.sf-links a {
    color: var(--seafoam);
    font-weight: 500;
}

.sf-links a:hover {
    color: var(--coral-red);
}

.sf-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

/* =========================================
   INTERNAL PAGES
   ========================================= */
.page-hero {
    padding-top: 140px;
    margin-bottom: 60px;
}

.ph-inner {
    background: var(--mist-green);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    border: 2px solid var(--seafoam);
    text-align: center;
}

.ph-inner h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
}

.ph-inner p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-content {
    margin-bottom: 100px;
}

.pc-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.pc-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.pc-main h2 {
    font-size: 2.2rem;
    margin: 40px 0 20px;
}

.pc-main h3 {
    color: var(--ocean-teal);
    font-size: 1.6rem;
    margin: 30px 0 16px;
}

.pc-main p, .pc-main ul {
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.pc-main ul {
    padding-left: 24px;
    list-style: disc;
}

.pc-main li {
    margin-bottom: 12px;
}

.pc-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.pc-widget {
    background: var(--warm-stone);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--seafoam);
}

.pc-widget h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.pw-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.pw-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ocean-teal);
    font-size: 1.1rem;
}

.pw-links a:hover {
    color: var(--coral-red);
}

.pw-btn {
    width: 100%;
}

.legal-panel {
    background: var(--mist-green);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--seafoam);
    max-width: 900px;
    margin: 0 auto;
}

.legal-panel h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
}

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

.legal-panel p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* =========================================
   COOKIE POPUP
   ========================================= */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.c-pop-inner {
    background: var(--warm-stone);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 2px solid var(--deep-teal);
    box-shadow: 0 20px 40px rgba(11, 85, 88, 0.2);
}

.c-pop-inner h3 {
    margin-bottom: 12px;
}

.c-pop-inner p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.cookie-btns {
    display: flex;
    gap: 12px;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

@media (max-width: 1024px) {
    /* Header */
    .sh-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 24px;
        background: var(--mist-green);
        padding: 20px;
        border-radius: var(--radius-md);
        border: 2px solid var(--seafoam);
        flex-direction: column;
        width: 250px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .sh-nav.active { display: flex; }
    .sh-mobile-toggle { display: flex; }
    .sh-cta { display: none; }

    /* Hero */
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 40px; }
    .hero-visual { grid-column: 1 / -1; grid-row: 1; max-height: 500px; }
    .hero-panel { grid-column: 1 / -1; grid-row: 2; margin-top: -80px; align-self: start; }

    /* Services */
    .service-row { grid-template-columns: 1fr; gap: 40px; }
    .service-row:nth-child(even) .sr-content { order: 2; }
    .service-row:nth-child(even) .sr-visual { order: 1; }
    .sr-visual { order: 1 !important; }
    .sr-content { order: 2 !important; }

    /* Systems */
    .sys-layout { grid-template-columns: 1fr 1fr; }
    .sys-panel { height: auto !important; min-height: 350px; }

    /* PC Layout */
    .pc-layout { grid-template-columns: 1fr; }
    .pc-sidebar { position: static; }
}

@media (max-width: 768px) {
    /* Container Adjustments */
    .container { padding: 0 20px; }

    /* Header */
    .site-header-container { padding: 16px; }
    .site-header { padding: 10px 20px; }

    /* Hero */
    .hero-section { padding-top: 120px; }
    .hero-panel { padding: 30px; margin-top: -60px; }
    
    /* Diagnostics */
    .diag-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Process Diagram */
    .process-diagram { display: none; }
    .process-mobile-list { display: flex; }

    /* Åland */
    .aland-wrapper { padding: 40px 20px; justify-content: center; text-align: center; }
    .aland-content { padding: 30px; }

    /* Contact Form */
    .contact-box { padding: 40px 20px; }
    .c-form-grid { grid-template-columns: 1fr; }

    /* Footer */
    .sf-layout { grid-template-columns: 1fr; gap: 40px; }

    /* Internal */
    .ph-inner { padding: 40px 20px; }
    .legal-panel { padding: 40px 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-panel { margin-top: -40px; padding: 24px; }
    .hp-actions { flex-direction: column; width: 100%; }
    .hp-actions .btn { width: 100%; }
    .sys-layout { grid-template-columns: 1fr; }
    .aland-content h2 { font-size: 2rem; }
    .sf-huge { font-size: 2.5rem; }
    .sf-bottom { flex-direction: column; gap: 16px; text-align: center; }
}