/* =========================================
   1. Variables & Configuration
   ========================================= */
:root {
    --brand-dark:           #0F172A;
    --brand-dark-lighter:   #1E293B;
    --brand-primary:        #0F766E;
    --brand-primary-hover:  #0D9488;
    --brand-accent:         #D97706;

    --white:     #FFFFFF;
    --gray-300:  #D1D5DB;
    --gray-400:  #9CA3AF;
    --gray-500:  #6B7280;
    --gray-700:  #374151;
    --gray-800:  #1F2937;
    --gray-900:  #111827;

    --container-width: 1280px;
    --header-height:   80px;
    --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: #F8FAFC;
    color: #334155;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-display: swap;
}

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

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

main { min-height: calc(100vh - var(--header-height)); }

:target { scroll-margin-top: calc(var(--header-height) + 1rem); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--brand-primary);
    color: var(--white);
    padding: 0.65rem 0.95rem;
    border-radius: 0.5rem;
    font-weight: 600;
}
.skip-link:focus-visible { top: 1rem; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

/* =========================================
   3. Container
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* =========================================
   4. Hero Blob Animation
   ========================================= */
@keyframes blob {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* =========================================
   5. Glass Card
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 118, 110, 0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* =========================================
   6. Service / Article Cards
   ========================================= */
article.group {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 1);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
article.group:hover {
    border-color: rgba(15, 118, 110, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(15,118,110,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* =========================================
   7. Performance — Mobile optimisations
   ========================================= */
@media (max-width: 768px) {
    .animate-blob { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .animate-blob, .animate-ping, .animate-pulse { animation: none; }
    .transition, .transition-all, .transition-colors, .transition-transform { transition: none; }
}
