/* COJ Construction - Professional Construction Website Styles */

/* Modern Color Palette & Design Tokens */
:root {
    /* Brand Colors */
    --charcoal: #2b2d32;
    --dark-charcoal: #1a1b1e;
    --brand-blue: #1C3C85;
    --brand-blue-dark: #142d63;
    --brand-blue-light: #2a4d9e;
    --safety-orange: #ff6b35;
    --safety-orange-dark: #e54d1c;
    
    /* Neutrals */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6b7280;
    --border-gray: #e5e7eb;
    --text-muted: #64748b;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 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);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--brand-blue);
    background: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--brand-blue);
    letter-spacing: -0.02em;
}

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

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
    color: var(--medium-gray);
}

/* Modern Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gray);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-sm);
}

.logo {
    height: 140px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.main-nav a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    position: relative;
    padding: var(--space-xs) 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--safety-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--safety-orange);
}

/* Modern Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 50%, var(--brand-blue-light) 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--space-xl);
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-slogan {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    font-style: italic;
    color: var(--safety-orange);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--safety-orange);
    margin-top: var(--space-xl);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--safety-orange) 0%, var(--safety-orange-dark) 100%);
    color: var(--white);
    border-color: var(--safety-orange);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--white);
    color: var(--brand-blue);
    border-color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover,
.btn-secondary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modern Sections */
section {
    padding: var(--space-3xl) 0;
    animation: fadeInSection 0.8s ease-out;
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    color: var(--brand-blue);
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--safety-orange) 0%, var(--brand-blue) 100%);
    border-radius: 2px;
    animation: scaleIn 0.6s ease-out 0.3s backwards;
}

@keyframes scaleIn {
    from {
        transform: translateX(-50%) scaleX(0);
    }
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

/* Modern Services Section */
.services {
    background: var(--white);
}

.services-types {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--safety-orange) 0%, var(--brand-blue) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before,
.service-card:focus-within::before {
    transform: scaleX(1);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--safety-orange);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--brand-blue);
    margin-bottom: var(--space-sm);
    font-size: 1.375rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

.services-summary {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--safety-orange);
    box-shadow: var(--shadow-md);
}

.services-summary p {
    margin: 0;
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Portfolio Teaser */
.portfolio-teaser {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover,
.portfolio-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--safety-orange);
    outline-offset: 2px;
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 1.5rem;
    background: var(--white);
}

.portfolio-info h3 {
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.portfolio-info p {
    color: var(--medium-gray);
    margin: 0;
}

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

/* About */
.about {
    background: var(--light-gray);
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Social Embed */
.social-embed {
    background: var(--white);
}

.facebook-embed {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.facebook-embed iframe {
    max-width: 100%;
}

.social-share {
    text-align: center;
}

.social-share h3 {
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background: var(--white);
    color: var(--brand-blue);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover,
.share-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: 2px solid var(--charcoal);
    outline-offset: 2px;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: var(--white);
    border-color: #1877f2;
}

.share-btn.instagram:hover {
    background: #e1306c;
    color: var(--white);
    border-color: #e1306c;
}

.share-btn.tiktok:hover {
    background: #000000;
    color: var(--white);
    border-color: #000000;
}

.copy-tooltip {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--charcoal);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2000;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Contact */
.contact {
    background: var(--light-gray);
    text-align: center;
}

.contact-note {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--medium-gray);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover,
.contact-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--safety-orange);
    outline: 2px solid var(--safety-orange);
    outline-offset: 2px;
}

.contact-card svg {
    color: var(--safety-orange);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--medium-gray);
    margin: 0;
}

.contact-card.whatsapp:hover svg {
    color: #25d366;
}

.contact-address {
    color: var(--medium-gray);
    margin-top: 1rem;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.contact-form {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: left;
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--safety-orange) 100%);
}

.contact-form h3 {
    text-align: center;
    color: var(--brand-blue);
    margin-bottom: var(--space-xl);
}

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

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.required {
    color: var(--safety-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--brand-blue-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--safety-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), var(--shadow-md);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
    display: block;
}

.contact-divider {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
}

.contact-divider span {
    position: relative;
    background: var(--light-gray);
    padding: 0 1rem;
    color: var(--medium-gray);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--white);
    color: #000;
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--brand-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #000;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover,
.footer-col a:focus {
    color: var(--safety-orange);
    outline: 2px solid var(--safety-orange);
    outline-offset: 2px;
}

.footer-logo {
    height: 90px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
    color: #000;
}

.footer-links h4,
.footer-contact h4 {
    color: #000;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    color: #000;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--safety-orange);
}

.tagline {
    color: var(--brand-blue);
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 1rem;
    text-align: center;
    color: var(--brand-blue);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.powered-by {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.powered-by span {
    color: var(--safety-orange);
    font-weight: 600;
}

/* Modern Chat Widget */
.chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--safety-orange) 0%, var(--safety-orange-dark) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.chat-bubble:hover,
.chat-bubble:focus {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-2xl);
}

.chat-widget {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 360px;
    max-height: 520px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--border-gray);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--safety-orange) 0%, var(--safety-orange-dark) 100%);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header span {
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
}

#closeChat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

#closeChat:hover,
#closeChat:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-body {
    padding: var(--space-lg);
    flex-grow: 1;
    overflow-y: auto;
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-gray) 100%);
}

.chat-message {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.chat-message.bot {
    background: var(--white);
    color: var(--charcoal);
    border-left: 3px solid var(--brand-blue);
}

.chat-message p {
    margin: 0;
    line-height: 1.6;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.quick-reply {
    padding: var(--space-xs) var(--space-md);
    background: var(--white);
    border: 2px solid var(--safety-orange);
    border-radius: 24px;
    color: var(--safety-orange);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.quick-reply:hover,
.quick-reply:focus {
    background: var(--safety-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Chat Appointment Form */
.chat-appointment-form {
    width: 100%;
    margin-top: var(--space-sm);
}

.chat-appointment-form .form-group {
    margin-bottom: var(--space-md);
}

.chat-appointment-form label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
    font-size: 0.875rem;
    font-weight: 600;
}

.chat-appointment-form input,
.chat-appointment-form select,
.chat-appointment-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.chat-appointment-form input:focus,
.chat-appointment-form select:focus,
.chat-appointment-form textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.chat-appointment-form textarea {
    resize: vertical;
    min-height: 60px;
}

.chat-submit-btn {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--safety-orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-sm);
}

.chat-submit-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.chat-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Voice Assistant Button */
.voice-btn {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--charcoal);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 998;
    /* Mobile touch optimizations */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.voice-btn:hover,
.voice-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    outline: 2px solid var(--charcoal);
    outline-offset: 4px;
}

/* Mobile-specific active state for better feedback */
.voice-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.voice-btn.listening {
    background: #dc2626;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}

.voice-btn.listening:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

/* Processing state for AI response */
.voice-btn.processing {
    background: var(--safety-orange);
    animation: processing-pulse 1s infinite;
}

@keyframes processing-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Modern Projects Page */
.page-header {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 50%, var(--brand-blue-light) 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.page-header h1 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-header-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--space-xl);
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

.projects-gallery {
    background: var(--light-gray);
}

/* Modern Project Packages */
.project-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.project-package {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-gray);
}

.project-package:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.project-package.expanded {
    box-shadow: var(--shadow-2xl);
    border-color: var(--brand-blue);
}

.package-cover {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--light-gray);
}

.package-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-cover:hover img {
    transform: scale(1.08);
}

.package-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(28, 60, 133, 0.95) 0%, rgba(28, 60, 133, 0.8) 50%, transparent 100%);
    padding: var(--space-lg);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.package-overlay h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: var(--white);
}

.package-overlay p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.photo-count {
    display: inline-block;
    background: var(--safety-orange);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-photos {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease 0.1s,
                transform 0.4s ease 0.1s,
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-package.expanded .package-photos {
    max-height: 10000px;
    opacity: 1;
    transform: translateY(0);
    padding: 1.5rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-grid img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Legacy Gallery Styles (kept for compatibility) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover,
.gallery-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--safety-orange);
    outline-offset: 2px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1.5rem;
    background: var(--white);
}

.gallery-caption h3 {
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gallery-caption p {
    color: var(--medium-gray);
    margin: 0;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lightbox-close:hover,
.lightbox-close:focus,
.lightbox-nav:hover,
.lightbox-nav:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: 2px solid var(--white);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
}

/* CTA Strip */
.cta-strip {
    background: var(--light-gray);
    text-align: center;
}

.cta-strip h2 {
    margin-bottom: 0.5rem;
}

.cta-strip p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        gap: 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .page-header-logo {
        max-width: 300px;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    
    .services-grid,
    .portfolio-grid,
    .gallery-grid,
    .project-packages {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .chat-widget {
        right: 1rem;
        left: 1rem;
        width: auto;
    }
    
    .voice-btn {
        right: 5rem;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }
    
    .lightbox-modal img {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        bottom: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chat-bubble {
        bottom: 1rem;
        right: 1rem;
    }
    
    .voice-btn {
        bottom: 1rem;
        right: 4.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}

/* Careers Page */
.careers-intro {
    background: var(--light-gray);
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--brand-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Career Application Form */
.application-section {
    background: var(--white);
}

.career-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-gray);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-weight: 600;
}

.required {
    color: var(--safety-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(28, 60, 133, 0.1);
}

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

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

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-display {
    background: var(--white);
    border: 2px dashed var(--border-gray);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover .file-upload-display {
    border-color: var(--brand-blue);
    background: rgba(28, 60, 133, 0.02);
}

.file-upload-wrapper input[type="file"]:focus + .file-upload-display {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(28, 60, 133, 0.1);
}

.file-upload-display svg {
    display: block;
    margin: 0 auto 1rem;
    color: var(--brand-blue);
}

.file-name {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.file-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.file-selected .file-upload-display {
    border-color: var(--safety-orange);
    background: rgba(255, 107, 53, 0.05);
}

.file-selected .file-name {
    color: var(--safety-orange);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    min-width: 250px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 2.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
}

.testimonials-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

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

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.testimonial-author {
    flex: 1;
}

.testimonial-name {
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.25rem;
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.25rem;
}

.testimonial-message {
    color: var(--medium-gray);
    line-height: 1.7;
    font-size: 0.9375rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.testimonial-project {
    font-weight: 600;
    color: var(--safety-orange);
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

.testimonials-hero {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 50%, var(--brand-blue-light) 100%);
}

/* Empty State */
.testimonials-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
}

.testimonials-empty h3 {
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.testimonials-empty p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}