/* 
* Boca Society - Main Stylesheet
* A luxurious design for an exclusive community platform
*/

/* ---- Base Styles ---- */
:root {
    --primary-color: #0c4c6e;         /* Deep blue */
    --secondary-color: #d4af37;       /* Gold */
    --text-color: #333333;            /* Dark gray */
    --light-text: #ffffff;            /* White */
    --background-color: #ffffff;      /* White */
    --light-background: #f9f7f4;      /* Off-white */
    --accent-color: #6b93a8;          /* Light blue */
    --border-color: #e0e0e0;          /* Light gray */
    --error-color: #cc0000;           /* Red */
    --success-color: #006633;         /* Green */
    --note-background: #f0f7fa;       /* Light blue background for notes */
    --focus-outline: #4d90fe;         /* Focus outline color */
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    font-size: 0.95rem; /* Slightly smaller base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.7em; /* Slightly reduced margin */
    color: var(--primary-color);
}

h1 {
    font-size: 2.8rem; /* Slightly reduced */
}

h2 {
    font-size: 2.3rem; /* Slightly reduced */
    color: var(--primary-color);
}

h3 {
    font-size: 1.6rem; /* Slightly reduced */
}

/* Consistent paragraph spacing */
p {
    margin-bottom: 1.2rem; /* Standardized paragraph spacing */
}

/* Add consistent section spacing */
section p:last-of-type {
    margin-bottom: 1.5rem; /* Space after last paragraph in a section */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

a:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

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

.divider {
    height: 2px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0.8rem auto 1.8rem; /* Slightly reduced */
}

.section-header {
    text-align: center;
    margin-bottom: 1.8rem; /* Slightly reduced */
}

.content-columns {
    display: flex;
    gap: 1.8rem; /* Slightly reduced */
    margin: 1.8rem 0; /* Slightly reduced */
}

.column {
    flex: 1;
}

/* ---- Accessibility ---- */
.hidden-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -999 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 10px 28px; /* Slightly reduced */
    font-size: 0.95rem; /* Slightly reduced */
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

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

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

.text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.text-link:hover {
    color: var(--secondary-color);
}

/* ---- Header ---- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 0; /* Slightly reduced */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Cormorant Garamond', serif;
}

.logo-text {
    font-size: 1.7rem; /* Slightly reduced */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.8rem; /* Slightly reduced */
}

nav ul li a {
    font-size: 0.9rem; /* Slightly reduced */
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover:after {
    transform: scaleX(1);
}

.nav-mobile {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; /* Slightly reduced */
    height: 20px; /* Slightly reduced */
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}
/* ---- Hero Section ---- */
.hero {
    height: 85vh; /* Slightly reduced */
    min-height: 580px; /* Slightly reduced */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/boca-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 780px; /* Slightly reduced */
    margin: 0 auto;
    color: var(--light-text);
}

.hero h1 {
    font-size: 3.2rem; /* Slightly reduced */
    color: var(--light-text);
    margin-bottom: 1.3rem; /* Slightly reduced */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem; /* Slightly reduced */
    margin-bottom: 1.8rem; /* Slightly reduced */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ---- About Section ---- */
.about {
    padding: 4.5rem 0; /* Slightly reduced */
    background-color: var(--light-background);
}

.about p {
    font-size: 1rem; /* Slightly reduced */
    line-height: 1.7; /* Slightly reduced */
}

/* ---- Features Section ---- */
.features {
    padding: 4.5rem 0; /* Slightly reduced */
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Slightly reduced */
    gap: 1.8rem; /* Slightly reduced */
}

.feature-card {
    background-color: var(--light-background);
    padding: 1.8rem; /* Slightly reduced */
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px); /* Slightly reduced */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Slightly reduced */
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px; /* Slightly reduced */
    height: 65px; /* Slightly reduced */
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-bottom: 1.3rem; /* Slightly reduced */
    font-size: 1.6rem; /* Slightly reduced */
}

.feature-card h3 {
    font-size: 1.4rem; /* Slightly reduced */
    margin-bottom: 0.9rem; /* Slightly reduced */
}

/* ---- Benefits Section ---- */
.benefits {
    padding: 4.5rem 0; /* Slightly reduced */
    background-color: var(--light-background);
    position: relative;
}

.benefits:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Slightly reduced */
    gap: 2.7rem; /* Slightly reduced */
    margin-top: 2.7rem; /* Slightly reduced */
    margin-bottom: 2rem; /* Added bottom margin */
}

.benefit {
    text-align: center;
    margin-bottom: 1.5rem; /* Added consistent bottom margin */
}

.benefit h3 {
    margin-bottom: 0.9rem; /* Slightly reduced */
    position: relative;
    display: inline-block;
}

.benefit h3:after {
    content: '';
    position: absolute;
    bottom: -8px; /* Slightly reduced */
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Privacy statement - replaced blue background box with regular text */
.privacy-statement {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.privacy-statement p {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0;
}
/* ---- Waitlist Section ---- */
.waitlist {
    padding: 4.5rem 0; /* Slightly reduced */
    background-color: var(--background-color);
}

.waitlist-content {
    max-width: 680px; /* Slightly reduced */
    margin: 0 auto;
}

.waitlist p {
    text-align: center;
    margin-bottom: 1.8rem; /* Slightly reduced */
}

form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem; /* Standardized form group spacing */
}

label {
    display: block;
    margin-bottom: 0.5rem; /* Standardized label spacing */
    font-weight: 500;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1.5rem; /* Added consistent bottom spacing for fieldsets */
}

legend {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem; /* Standardized legend spacing */
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px; /* Slightly increased for better mobile interactions */
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Added subtle border radius */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem; /* Slightly reduced */
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--focus-outline);
    border-color: var(--primary-color);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23333' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.75rem;
    padding-right: 2.5rem;
}

select optgroup {
    font-weight: 600;
    font-style: normal;
    color: var(--primary-color);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); /* Slightly reduced */
    gap: 0.9rem; /* Slightly reduced */
    margin-top: 0.4rem; /* Slightly reduced */
    padding: 0.5rem; /* Added padding for checkbox area */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 0.5rem; /* Added consistent bottom margin */
    padding: 0.25rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px; /* Slightly reduced */
}

/* Error state styling */
input.error, select.error, textarea.error {
    border-color: var(--error-color);
    background-color: rgba(204, 0, 0, 0.05);
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Form error container */
.form-error-container {
    background-color: rgba(204, 0, 0, 0.1);
    color: var(--error-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

/* Success state styling */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h3 {
    margin-bottom: 0.7rem;
    color: var(--success-color);
}

/* Privacy checkbox styling */
.privacy-checkbox {
    margin-top: 1.8rem; /* Slightly reduced */
}

.privacy-checkbox label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
}

.privacy-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 8px; /* Slightly reduced */
    margin-top: 4px; /* Slightly reduced */
    flex-shrink: 0;
}

.privacy-checkbox span {
    flex: 1;
}

.form-note {
    margin-top: 1.5rem; /* Standardized spacing */
    margin-bottom: 1.5rem; /* Standardized spacing */
    padding: 1rem; /* Standardized padding */
    background-color: var(--note-background);
    border-left: 3px solid var(--primary-color);
    font-size: 0.85rem; /* Slightly reduced */
    line-height: 1.5;
    border-radius: 0 4px 4px 0; /* Added border radius on right side */
}

.form-note p {
    margin-bottom: 0;
    text-align: left;
}
/* ---- Footer ---- */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3.6rem 0 1.8rem; /* Slightly reduced */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); /* Slightly reduced */
    gap: 2.7rem; /* Slightly reduced */
    margin-bottom: 2.7rem; /* Slightly reduced */
}

.footer-logo .logo-text {
    color: var(--light-text);
    margin-bottom: 0.4rem; /* Slightly reduced */
    display: block;
}

.footer-tagline {
    font-size: 0.85rem; /* Slightly reduced */
    opacity: 0.8;
}

.footer-links h4, .footer-contact h4 {
    color: var(--secondary-color);
    font-size: 1.05rem; /* Slightly reduced */
    margin-bottom: 1.3rem; /* Slightly reduced */
}

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

.footer-links ul li {
    margin-bottom: 0.65rem; /* Slightly reduced */
}

.footer-links ul li a, .footer-contact a {
    color: var(--light-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover, .footer-contact a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-note {
    margin-top: 0.9rem; /* Slightly reduced */
    padding: 0.4rem 0; /* Slightly reduced */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem; /* Slightly reduced */
    opacity: 0.9;
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 1.8rem; /* Slightly reduced */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.85rem; /* Slightly reduced */
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.9rem; /* Slightly reduced */
}

/* ---- Error Pages ---- */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 2rem;
}

.error-code {
    font-size: 7.5rem;
    font-weight: 700;
    color: rgba(12, 76, 110, 0.1);
    margin-bottom: 0.8rem;
}

.error-title {
    font-size: 2.3rem;
    margin-bottom: 1.3rem;
}

.error-message {
    font-size: 1.05rem;
    max-width: 580px;
    margin-bottom: 1.8rem;
}

/* ---- Accessibility Enhancements ---- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* ---- Responsive Styles ---- */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.3rem; /* Slightly reduced */
    }
    
    h2 {
        font-size: 1.9rem; /* Slightly reduced */
    }
    
    .hero h1 {
        font-size: 2.8rem; /* Slightly reduced */
    }
    
    /* Improve paragraph spacing at this breakpoint */
    p {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .content-columns {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.3rem; /* Slightly reduced */
    }
    
    .hero p {
        font-size: 1.05rem; /* Slightly reduced */
    }
    
    nav ul {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .footer-content {
        gap: 1.8rem; /* Slightly reduced */
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Improved spacing for benefit sections on mobile */
    .benefit {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Fix text alignment in benefits note on mobile */
    .privacy-statement p {
        text-align: center;
    }
    
    /* Consistent form element spacing on mobile */
    .form-group, fieldset {
        margin-bottom: 1.2rem;
    }
    
    /* Increase input touch targets on mobile */
    input, select, textarea {
        padding: 12px 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem; /* Slightly reduced */
    }
    
    .feature-card {
        padding: 1.3rem; /* Slightly reduced */
    }
    
    .feature-icon {
        width: 55px; /* Slightly reduced */
        height: 55px; /* Slightly reduced */
        font-size: 1.4rem; /* Slightly reduced */
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    /* Fix spacing between paragraphs on very small screens */
    p {
        margin-bottom: 1rem;
    }
    
    /* Better spacing for benefits section on small screens */
    .benefits-grid {
        gap: 1.5rem;
    }
    
    /* Ensure privacy statement is properly spaced */
    .privacy-statement {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
}