/* ==========================================================================
   Slaidburn Limited - Core Design System & Stylesheet
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    /* Color Palette */
    --color-primary: #0c3e3a;      /* Deep Slate Teal */
    --color-primary-light: #165b55;/* Lighter Teal for hover states */
    --color-primary-dark: #072522; /* Darker Teal for footers/dark areas */
    --color-secondary: #7b909a;    /* Muted Blue-Grey */
    --color-secondary-light: #9fb0b8; /* Lighter Grey-Blue */
    --color-secondary-dark: #586b74;  /* Darker Grey-Blue */
    
    /* Neutrals */
    --color-bg-main: #ffffff;
    --color-bg-alt: #f4f6f6;       /* Soft grey-teal tint */
    --color-bg-dark: #0a1716;      /* Off-black slate background */
    --color-text-main: #202b2a;    /* High contrast charcoal */
    --color-text-muted: #536462;   /* Soft slate for captions */
    --color-text-light: #ffffff;
    
    /* UI States */
    --color-success: #1b6d5b;
    --color-error: #c0392b;
    --color-border: #e0e6e6;
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(12, 62, 58, 0.04);
    --shadow-md: 0 8px 24px rgba(12, 62, 58, 0.08);
    --shadow-lg: 0 16px 40px rgba(12, 62, 58, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--color-secondary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-primary-light);
}

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

.section {
    padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(12, 62, 58, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    height: 70px;
}

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

.logo-text {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--color-primary-light);
}

.header.scrolled .logo-text {
    font-size: 1.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 75vh;
    padding: calc(var(--header-height) + 3rem) 0 3rem 0;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(12, 62, 58, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('Gemini_Generated_Image_zfyed2zfyed2zfye.jpg');
    background-repeat: no-repeat;
    background-position: right 8% center;
    background-size: 35%;
    opacity: 0.95; /* Match visibility of other key page elements */
    mix-blend-mode: multiply; /* Blends the white JPEG background into the page background */
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2; /* Sits above the background watermark */
}

.logo-header {
    display: none;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-media {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.hero-media:hover {
    transform: translateY(-5px);
}

.hero-media img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 6px);
    display: block;
}

.hero-media.logo-hero {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media.logo-hero img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-quote {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
    padding-left: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    font-weight: 400;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.highlight-item {
    padding: 1rem 0;
}

.highlight-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Services Section */
.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

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

.service-card {
    background-color: var(--color-bg-main);
    padding: 2.25rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(12, 62, 58, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(12, 62, 58, 0.05);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: #ffffff;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-card {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

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

.contact-text-desc a {
    color: var(--color-text-muted);
}

.contact-text-desc a:hover {
    color: var(--color-primary);
}

.contact-map-placeholder {
    height: 200px;
    border-radius: var(--border-radius);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.map-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-alt);
    opacity: 0.5;
    z-index: 1;
}

.map-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem;
}

.map-pin {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form-container {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    padding: 2.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--color-bg-alt);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-main);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(12, 62, 58, 0.08);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Form Status Message */
.form-status {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.95rem;
}

.form-status.success {
    display: block;
    background-color: rgba(27, 109, 91, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(27, 109, 91, 0.2);
}

.form-status.error {
    display: block;
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: invert(1) grayscale(1) brightness(1.5) contrast(2);
    mix-blend-mode: screen; /* Makes the black background transparent on dark footer background */
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-group h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5); /* Unified text color */
}

.footer-copyright, .footer-privacy, .footer-legal {
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.footer-copyright {
    text-align: left;
}

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

.footer-legal {
    text-align: right;
}

.footer-privacy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.footer-privacy a:hover {
    color: #ffffff;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .hero::after {
        display: none; /* Hide background watermark to prevent text overlap on mobile */
    }

    .logo-header {
        display: flex;
        align-items: center;
        height: 100%;
        margin-right: auto;
    }

    .logo-header img {
        height: 38px;
        width: auto;
        object-fit: contain;
        mix-blend-mode: multiply; /* Blends white JPEG background away */
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-media {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }
    
    .nav.open {
        left: 0;
    }
    
    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-copyright, .footer-privacy, .footer-legal {
        text-align: center;
    }
}

/* Privacy Policy Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 37, 34, 0.6); /* Translucent dark teal tint matching our brand dark */
    backdrop-filter: blur(8px);
    display: none; /* Controlled via JavaScript */
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Above sticky header */
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
}

.modal-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

