/* ==================== Root Variables ==================== */
:root {
    --primary-color: #8B1A1E;
    --secondary-color: #28282B;
    --dark-red: #6B1416;
    --dark-gray: #1a1a1c;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-tap-highlight-color: transparent;
}

input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    a, button, input, select {
        min-height: 44px;
    }
}

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

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    max-width: 100%;
}

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

.logo-image {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
}

.btn-contact:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 26, 30, 0.3);
}

.btn-contact::after {
    display: none;
}

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

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://raw.githubusercontent.com/thisisdream/JCRES/main/images/JCRES%20Hero%20Image.png');
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 40, 43, 0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 24px;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 64px;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--white);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-scroll span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: var(--white);
    margin: 10px auto 0;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* ==================== Section Styles ==================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto;
}

/* ==================== Mission Section ==================== */
.mission {
    background: var(--bg-light);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission-statement {
    font-size: 22px;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    font-weight: 300;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-light);
    padding: 50px 40px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
    color: var(--white);
}

.service-card.featured::before {
    background: var(--white);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.service-card.featured .service-icon {
    background: var(--white);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--white);
}

.service-card.featured .service-icon svg {
    stroke: var(--primary-color);
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-card.featured h3 {
    color: var(--white);
}

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

.service-card.featured p {
    color: #E5D9C0;
}

.service-features {
    list-style: none;
    margin-top: 25px;
}

.service-features li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    color: var(--text-light);
}

.service-card.featured .service-features li {
    color: var(--white);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: var(--accent-gold);
}

/* ==================== Differentiators Section ==================== */
.differentiators {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%);
    color: var(--white);
}

.differentiators .section-header h2,
.differentiators .section-header p {
    color: var(--white);
}

.differentiators .divider {
    background: var(--primary-color);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

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

.diff-number {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.9;
}

.diff-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--white);
}

.diff-item p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* ==================== Promise Section ==================== */
.promise {
    background: var(--bg-light);
    background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.promise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.95);
}

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

.promise-content h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.promise-text p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* ==================== Contact Section ==================== */
.contact {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 8px;
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    background: var(--primary-color);
    color: var(--white);
}

.btn-submit:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 30, 0.3);
}

.form-status {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.form-status.success {
    color: #28a745;
}

.form-status.error {
    color: #dc3545;
}

.contact-info {
    padding: 40px 0;
}

.contact-info h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.info-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.info-item a {
    color: var(--primary-color);
}

.info-item a:hover {
    text-decoration: underline;
}

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

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

.footer-brand h3 {
    font-size: 28px;
    color: #AAAAAA;
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: #AAAAAA;
}

.footer-links h4 {
    font-size: 18px;
    color: #AAAAAA;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #AAAAAA;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact h4 {
    font-size: 18px;
    color: #AAAAAA;
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 15px;
    line-height: 1.8;
    color: #AAAAAA;
    margin-bottom: 10px;
}

.footer-contact a {
    color: #AAAAAA;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact a:hover {
    text-decoration: underline;
}

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

.footer-bottom p {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px;
        gap: 30px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: 500px;
    }

    .hero::before {
        background-position: 65% center;
        background-size: cover;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 40px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .diff-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 12px 20px;
    }

    .logo-image {
        height: 35px;
    }

    section {
        padding: 50px 0;
    }

    .hero {
        min-height: 100vh;
        height: auto;
    }

    .hero::before {
        background-position: 70% center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 15px;
        padding: 0 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        padding: 35px 25px;
    }

    .service-card h3 {
        font-size: 24px;
    }

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

    .contact-form {
        padding: 30px 20px;
    }

    .contact-info {
        padding: 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .diff-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .diff-item {
        padding: 0 15px;
    }

    .diff-number {
        font-size: 40px;
    }

    .mission-statement {
        font-size: 18px;
        padding: 0 10px;
    }

    .promise-content h2 {
        font-size: 28px;
    }

    .promise-text p {
        font-size: 16px;
        padding: 0 10px;
    }

    .info-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .info-item svg {
        flex-shrink: 0;
        margin-top: 3px;
    }
}
