/* Synesis International - Main Stylesheet */
/* Brand Colors: Primary Orange #FF9900, Dark Gray #545454, Teal #3B5C6E */

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

:root {
    /* Primary Colors */
    --primary-orange: #FF9900;
    --primary-orange-hover: #e68a00;
    --dark-gray: #545454;
    --light-gray: #F7F7F7;
    --teal: #3B5C6E;

    /* Secondary Colors */
    --blue: #0964DB;
    --green: #ADE65B;
    --maroon: #622938;
    --black: #000000;

    /* Text Colors */
    --text-color: #545454;
    --text-light: #666666;
    --text-dark: #333333;

    /* Background Colors */
    --background: #ffffff;
    --background-alt: #F7F7F7;
    --border-color: #e2e8f0;
    --white: #ffffff;

    /* Typography */
    --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Top Bar */
.top-bar {
    background: var(--white);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

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

.top-bar-left a {
    color: var(--dark-gray);
    margin-right: 20px;
}

.top-bar-left a:hover {
    color: var(--primary-orange);
}

.social-icons a {
    color: var(--dark-gray);
    margin-left: 15px;
    font-size: 16px;
}

.social-icons a:hover {
    color: var(--primary-orange);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-orange);
}

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

.btn-secondary:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
    padding: 10px 0;
    display: block;
}

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

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-orange);
    z-index: 100;
}

.nav-links > li:hover .dropdown {
    display: block;
}

.dropdown li a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--background-alt);
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero .tagline {
    font-size: 16px;
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.page-header-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 80px 0;
    text-align: center;
}

.about-section p {
    max-width: 1000px;
    margin: 0 auto 20px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.about-section a {
    color: var(--primary-orange);
}

.about-section a:hover {
    text-decoration: underline;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    font-weight: 700;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
    background: var(--background-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Fade-in animation for lazy-loaded elements (progressive enhancement) */
/* Cards are visible by default; JS adds .will-animate to enable animation */
.service-card.will-animate,
.feature-item.will-animate,
.industry-card.will-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}
.service-card.fade-in,
.feature-item.fade-in,
.industry-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card-content {
    padding: 30px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.service-card .subtitle {
    color: var(--primary-orange);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

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

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-section p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 900px;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    color: var(--text-light);
    list-style: disc;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.feature-item h3 {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Industries Grid */
.industries-section {
    padding: 80px 0;
    background: var(--background-alt);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.industry-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.industry-card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.industry-card h3 {
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.industry-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a1a 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    background-color: var(--background-alt);
    padding: 40px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

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

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.footer-col ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary-orange);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

/* Social Icon SVGs */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background-alt);
    transition: background 0.3s, color 0.3s;
    font-size: 0;
}
.social-icons a:hover {
    background: var(--primary-orange);
}
.social-icons a svg {
    width: 16px;
    height: 16px;
    fill: var(--dark-gray);
    transition: fill 0.3s;
}
.social-icons a:hover svg {
    fill: var(--white);
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}
.form-group .error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}
.form-group input.error ~ .error-message,
.form-group textarea.error ~ .error-message {
    display: block;
}
.form-group input.valid {
    border-color: #28a745;
}
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: none;
    margin-top: 20px;
}
.form-success.show {
    display: block;
}
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Honeypot - hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Skip to Content (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-orange);
    color: var(--white);
    padding: 10px 20px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}
.back-to-top.visible {
    display: flex;
}
.back-to-top:hover {
    transform: translateY(-2px);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-orange { color: var(--primary-orange); }
.bg-light { background: var(--background-alt); }
.mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links > li {
        border-bottom: 1px solid #eee;
    }
    .nav-links a {
        padding: 15px 0;
    }
    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        display: none;
    }
    .nav-links > li:hover .dropdown,
    .nav-links > li.active .dropdown {
        display: block;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .services-grid,
    .features-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .top-bar {
        display: none;
    }
    .page-header {
        padding: 100px 0 40px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}
