/* ============================================
   Cypress Acquisitions — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #8B1A5C;
    --primary-light: #C41E7A;
    --primary-dark: #5C1240;
    --accent: #E91E8C;
    --gradient: linear-gradient(135deg, #C41E7A 0%, #8B1A5C 50%, #5C1240 100%);
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f5f7;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(139, 26, 92, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
}

nav a:hover,
nav a:focus {
    color: var(--primary);
}

.nav-cta {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 25px;
}

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

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    text-decoration: none;
}

.social-icons a:hover,
.social-icons a:focus {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-2px);
}

.social-icons svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-social {
    margin-top: 20px;
}

.footer-social .social-icons a {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.footer-social .social-icons a:hover,
.footer-social .social-icons a:focus {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="80" r="30" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover,
.hero-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

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

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

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-dark);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Section --- */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(139, 26, 92, 0.15);
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.cypress-meaning {
    background: var(--gradient);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}

.cypress-meaning h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cypress-meaning p {
    color: var(--white);
    opacity: 0.95;
}

/* --- Mission Section --- */
.mission {
    background: var(--white);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.mission-text p {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.mission-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(139, 26, 92, 0.15);
}

/* --- Values Section --- */
.values {
    background: var(--bg-light);
}

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

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(139, 26, 92, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 26, 92, 0.15);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.value-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.value-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Team Gallery --- */
.team {
    background: var(--white);
}

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

.team-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 26, 92, 0.1);
    transition: transform 0.3s;
}

.team-image:hover {
    transform: scale(1.03);
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* --- Why Choose Us --- */
.why-us {
    background: var(--gradient);
    color: var(--white);
}

.why-us .section-header h2 {
    color: var(--white);
}

.why-us .section-header p {
    color: rgba(255,255,255,0.95);
}

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

.why-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.why-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.why-card p {
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
}

/* --- Apply Section --- */
.apply {
    background: var(--bg-light);
}

.apply-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.apply-info h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.apply-info p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.apply-image {
    margin-top: 30px;
}

.apply-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(139, 26, 92, 0.15);
}

.apply-form {
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(139, 26, 92, 0.1);
}

.apply-form h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    color: var(--text-dark);
}

.form-group input[type="file"] {
    padding: 10px 18px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 26, 92, 0.1);
}

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

.form-group .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group .consent-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

/* Honeypot — hidden from humans */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover,
.submit-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 26, 92, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: none;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

.error-message {
    display: none;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.error-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.footer-brand h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-brand p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a,
.footer-links p {
    display: block;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.8;
}

.footer-legal a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: var(--white);
}

/* --- Inner Page Hero (Privacy, Terms, Apply, 404) --- */
.inner-hero {
    background: var(--gradient);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="80" r="30" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.inner-hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
}

.inner-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* --- Inner Page Content (Privacy, Terms) --- */
.inner-content {
    padding: 80px 0;
    background: var(--white);
}

.inner-content .container {
    max-width: 800px;
}

.inner-content h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin: 40px 0 15px;
}

.inner-content h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 30px 0 12px;
}

.inner-content p {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.inner-content ul {
    margin: 0 0 20px 20px;
    color: var(--text-dark);
    line-height: 1.8;
}

.inner-content ul li {
    margin-bottom: 10px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 0.9rem;
}

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

.breadcrumbs a:hover,
.breadcrumbs a:focus {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--text-dark);
}

/* --- 404 Page --- */
.error-page {
    text-align: center;
    padding: 80px 0;
    background: var(--white);
}

.error-page h2 {
    font-size: 6rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-page h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.error-page p {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.error-page .hero-btn {
    background: var(--gradient);
    color: var(--white);
}

.error-page .error-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.error-page .error-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.error-page .error-links a:hover,
.error-page .error-links a:focus {
    text-decoration: underline;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(139, 26, 92, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 26, 92, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    nav.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    header .social-icons {
        display: none;
    }

    .hero-container,
    .about-grid,
    .mission-content,
    .apply-container,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .inner-hero h1 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-legal a {
        margin: 0 15px;
    }

    .logo {
        height: 55px;
    }

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

/* ============================================
   Print Stylesheet
   ============================================ */
@media print {
    header,
    nav,
    .mobile-menu,
    .social-icons,
    .back-to-top,
    .hero-btn,
    .submit-btn,
    .apply-form,
    .breadcrumbs,
    footer {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        min-height: auto;
        background: none !important;
        padding: 20px 0;
    }

    .hero-content h1 {
        color: #000;
        font-size: 24pt;
    }

    .hero-content p {
        color: #333;
    }

    .hero-image {
        display: none;
    }

    section {
        padding: 20px 0;
        background: none !important;
    }

    .inner-hero {
        background: none !important;
        padding: 20px 0;
    }

    .inner-hero h1 {
        color: #000;
    }

    .section-header h2,
    .about-content h3,
    .mission-text h3,
    .inner-content h2,
    .inner-content h3 {
        color: #000;
    }

    .why-us {
        background: none !important;
    }

    .why-us .section-header h2,
    .why-card h4 {
        color: #000;
    }

    .why-card p {
        color: #333;
    }

    .why-card {
        border: 1px solid #ccc;
        background: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    img {
        max-width: 100% !important;
    }
}
