/* 
=========================================================
   SCAFMOS - PREMIUM GLOBAL STYLES
   A unified design system for all pages.
=========================================================
*/

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

:root {
    /* Brand Colors */
    --primary: #004b8d;
    --primary-dark: #00325e;
    --accent: #22b14c;
    --accent-dark: #1a8a3b;
    
    /* UI Colors */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-section: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #ffffff;
    
    /* Functional */
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 50px rgba(0, 75, 141, 0.12);
    --radius: 16px;
    --radius-lg: 32px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-muted);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1.2rem;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 🏢 Global Header */
.site-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* 🖼️ Hero/Banner Text Defaults */
.hero-content h1, 
.hero-content h2, 
.hero-content p,
.service-modern-hero-content h1,
.service-modern-hero-content p,
.about-home-hero-content h1,
.about-home-hero-content p,
.projects-hero-content h1,
.projects-hero-content p,
.career-hero-content h1,
.career-hero-content p {
    color: #ffffff !important;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 95px;
    gap: 20px;
}

.logo img {
    height: 58px;
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: #2f3137;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}

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

.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* 📱 Mobile Nav */
@media (max-width: 991px) {
    .main-nav {
        display: none; /* Mobile menu logic should be implemented with a toggle if needed */
    }
}

/* 🖼️ Hero/Banner Base */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    display: none;
}

.hero-slide.active {
    display: flex;
    align-items: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

/* 🎨 UI Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 75, 141, 0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 75, 141, 0.25);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Forms - Global Consistency */
.contact-form-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 20px;
}

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

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.25s ease;
    outline: none;
}

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

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 75, 141, 0.1);
    background: #ffffff;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

.form-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 15px;
}

/* Section Spacing Utility */
section {
    padding: 100px 0;
}

/* 🏢 Global Footer */
.site-footer {
    background: #0a0b10;
    color: #94a3b8;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 24px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col ul {
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    transition: 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    section { padding: 60px 0; }
}

/* Animations */
@keyframes heroFloat { 
    0% { transform: scale(1); } 
    100% { transform: scale(1.05); } 
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* 📞 Contact CTA Section - Global Consistency */
.contact-cta-section {
    background: #f8fafc !important;
    padding: 100px 0;
}

.contact-cta-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.contact-cta-content h2 {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.contact-cta-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-mini-boxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mini-contact-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    flex: 1;
    min-width: 200px;
}

.mini-contact-box h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.mini-contact-box p {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text-main);
    font-weight: 500;
}


/* 🔘 Global Premium Buttons */
.btn-primary {
    background: linear-gradient(135deg, rgb(0, 75, 141), rgb(34, 177, 76)) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 24px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 75, 141, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 75, 141, 0.3);
    filter: brightness(1.1);
    color: #ffffff !important;
}

.btn-primary:active {
    transform: translateY(0);
}
