/* style.css - ROMS Inc. Website Styles */

/* CSS Variables - ROMS Brand Colors (matching official logo) */
:root {
    /* Primary Colors - ROMS core brand */
    --primary-color: #DC0808;       /* ROMS signature red */
    --primary-dark: #b00707;        /* Darker red for emphasis */
    --primary-light: #e53935;       /* Lighter red for hover states */

    /* Secondary Colors - Charcoal/Gray (from logo) */
    --secondary-color: #2D2D2D;     /* Dark charcoal - headers, footer */
    --secondary-light: #404040;     /* Lighter charcoal */
    --gray-medium: #666666;         /* Medium gray for tagline */
    --gray-light: #777777;          /* Light gray */

    /* Accent Colors */
    --accent-color: #DC0808;        /* Use brand red for CTAs */
    --accent-hover: #b00707;        /* Darker red for hover */
    --success-color: #28a745;       /* Green for success states */

    /* Neutral Colors */
    --text-dark: #2D2D2D;
    --text-body: #4a4a4a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;

    /* Shadows - using charcoal tones */
    --shadow-sm: 0 2px 4px rgba(45, 45, 45, 0.1);
    --shadow-md: 0 4px 8px rgba(45, 45, 45, 0.15);
    --shadow-lg: 0 8px 16px rgba(45, 45, 45, 0.2);
    --shadow-xl: 0 12px 24px rgba(45, 45, 45, 0.25);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Roboto', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo a:hover .logo-img {
    opacity: 0.85;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

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

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.cta-button {
    background: var(--accent-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.global-site-link {
    font-size: 0.8rem !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.85;
    transition: var(--transition);
}

.global-site-link:hover {
    opacity: 1;
}

.global-site-link::after {
    display: none !important;
}

.global-site-footer {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.global-site-footer:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 50%, var(--secondary-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.hero-title {
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title .accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta .btn-outline {
    border-color: white;
    color: white;
}

.hero-cta .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
}

.stat {
    text-align: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Solutions Section */
.solutions {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.solution-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.solution-image {
    width: 100%;
    height: 200px;
    background: var(--bg-gray);
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

.solution-card h3 {
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
}

.solution-card p {
    padding: 0 1.5rem;
    color: var(--text-body);
}

.solution-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 1.5rem 1.5rem;
    transition: var(--transition);
}

.solution-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.solution-card.featured {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border: none;
    grid-column: span 2;
}

.solution-card.featured h3,
.solution-card.featured p,
.solution-card.featured .solution-link {
    color: white;
}

.solution-card.featured .solution-link:hover {
    color: var(--accent-color);
}

/* Problems & Solutions */
.problems-solutions {
    padding: 80px 0;
    background: var(--bg-light);
}

.problems-grid {
    max-width: 900px;
    margin: 0 auto;
}

.problem-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.problem, .solution {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.problem:hover, .solution:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.problem {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--accent-color);
}

.problem-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.solution {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--success-color);
}

.solution-arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: var(--bg-white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 60px;
    height: 60px;
}

.step-number {
    position: absolute;
    top: 75px;
    right: calc(50% - 60px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-body);
}

.step-arrow {
    color: var(--accent-color);
    font-size: 2rem;
    margin: 0 1rem;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 250px;
    background: var(--bg-gray);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.testimonial {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--bg-gray);
}

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

.testimonial.featured {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border: none;
}

.testimonial.featured::before {
    color: white;
    opacity: 0.3;
}

.testimonial p {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial.featured p {
    color: white;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial.featured .testimonial-author strong {
    color: white;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonial.featured .testimonial-author span {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    to { transform: translate(50px, 50px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-row:last-child {
    margin-bottom: 0;
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: white;
}

textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 45px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Make logo white for dark footer */
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1rem;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-tagline {
    font-style: italic;
    color: var(--accent-color) !important;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links a,
.footer-services li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 3px solid var(--primary-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card.featured {
        grid-column: span 1;
    }
    
    .problem-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar, .footer, .cta-section, .hero-cta {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
    }
    
    .hero-title, .hero-subtitle {
        color: var(--text-dark);
    }
}