/* =========================================
   1. Global Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --brand-red: #e74c3c;
    --brand-darkRed: #c0392b;
    --brand-navy: #2c3e50;
    --brand-darkNavy: #1a252f;
    --brand-gold: #f1c40f;
    --surface-light: #f8fafc; /* slate-50 */
    --white: #ffffff;
    --text-main: #1f2937; /* gray-800 */
    --text-muted: #6b7280; /* gray-500 */
    --text-light: #9ca3af; /* gray-400 */
    --border: #e5e7eb; /* gray-200 */

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --container-width: 1280px;
    --container-padding: 1.5rem;
    --section-padding: 6rem; /* py-24 */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
}

body {
    background-color: var(--surface-light);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

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

.bg-white { background-color: var(--white); }
.bg-surface { background-color: var(--surface-light); }
.text-red { color: var(--brand-red); }
.text-gold { color: var(--brand-gold); }
.text-navy { color: var(--brand-navy); }
.text-white { color: var(--white); }
.text-light { color: #cbd5e1; }

/* Animations */
@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;
}

@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeInZoom 1s ease-out forwards;
}

/* =========================================
   2. Header
   ========================================= */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

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

.logo-image {
    height: 4rem;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    border-radius: 8px;
}

.header.scrolled .logo-image {
    height: 3rem;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-red);
}

.nav-link.scrolled-text {
    color: var(--text-main);
    text-shadow: none;
}

.quote-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    background-color: var(--white);
    color: var(--brand-navy);
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background-color: var(--surface-light);
    transform: scale(1.05);
}

.quote-btn.scrolled-btn {
    background-color: var(--brand-red);
    color: var(--white);
}

.quote-btn.scrolled-btn:hover {
    background-color: var(--brand-darkRed);
}

/* Mobile Toggle */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.75rem;
    transition: color 0.3s;
}

.mobile-toggle.scrolled-text {
    color: var(--text-main);
}

@media (min-width: 768px) {
    .mobile-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 0.5rem;
}

.mobile-nav-link:hover {
    background-color: var(--surface-light);
    color: var(--brand-red);
}

.mobile-quote-btn {
    margin-top: 1rem;
    background-color: var(--brand-red);
    color: var(--white);
    text-align: center;
    padding: 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
    display: block;
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.6), rgba(44, 62, 80, 0.9));
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 5rem; }
}

.text-highlight {
    color: var(--brand-red);
}

.hero-description {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-description { font-size: 1.5rem; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background-color: var(--brand-darkRed);
    transform: scale(1.05);
}

.btn-icon-right {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.btn-primary:hover .btn-icon-right {
    transform: translateX(4px);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--brand-navy);
}

/* =========================================
   4. About Section
   ========================================= */
.about-section {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.tag-wrapper {
    display: inline-block;
    padding: 0.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.about-heading {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-heading { font-size: 2.5rem; }
}

.about-paragraph {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Visuals Column */
.about-visual-col {
    position: relative;
}

.blob {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    mix-blend-mode: multiply;
    z-index: 0;
}

.blob-blue {
    background-color: #eff6ff;
    top: -1rem;
    right: -1rem;
}

.blob-red {
    background-color: #fef2f2;
    bottom: -1rem;
    left: -1rem;
}

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

.cards-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-stack.single {
    margin-top: 3rem;
}

.info-card {
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.info-card.bg-white { background-color: var(--white); }
.info-card.bg-surface { background-color: var(--surface-light); height: 100%; }

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.info-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

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

/* =========================================
   5. Services Section
   ========================================= */
.services-section {
    background-color: var(--surface-light);
}

.services-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-tag {
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
}

@media (min-width: 768px) {
    .section-headline { font-size: 3rem; }
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(231, 76, 60, 0.05);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
}

.service-card:hover .icon-box {
    background-color: var(--brand-red);
}

.service-icon {
    font-size: 2rem;
    color: var(--brand-red);
    transition: color 0.3s;
}

.service-card:hover .service-icon {
    color: var(--white);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.service-card:hover .service-title {
    color: var(--brand-red);
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   6. Certifications Section
   ========================================= */
.cert-section {
    background-color: var(--white);
}

.cert-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-sub {
    margin-top: 1rem;
    color: var(--text-muted);
}

.cert-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: var(--surface-light);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cert-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.image-frame {
    height: 8rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.cert-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.cert-card:hover .cert-logo {
    filter: grayscale(0%);
}

.cert-description {
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
}

/* =========================================
   7. Contact Section
   ========================================= */
.contact-section {
    background-color: var(--brand-navy);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 16px 16px;
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 10;
}

.contact-columns {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-title { font-size: 3rem; }
}

.team-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .team-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
    .team-grid { grid-template-columns: 1fr 1fr; }
}

.team-card {
    background-color: rgba(26, 37, 47, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: border-color 0.3s;
}

.team-card:hover {
    border-color: rgba(231, 76, 60, 0.5);
}

.avatar-wrapper {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--brand-red);
    margin-bottom: 1rem;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--brand-red);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.icon-link {
    color: #d1d5db;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-link:hover { color: var(--white); }

/* Form Styling */
.form-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    color: var(--text-main);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--surface-light);
    outline: none;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.form-input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 1px var(--brand-red);
}

.submit-btn {
    background-color: var(--brand-red);
    color: var(--white);
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: var(--brand-darkRed);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   8. Footer
   ========================================= */
.app-footer {
    background-color: var(--brand-darkNavy);
    color: var(--white);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-info {
        text-align: right;
    }
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-info {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-reg {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.75rem;
}