:root {
    --primary-color: #12304a;
    --accent-color: #176b5b;
    --accent-blue: #236fa1;
    --bg-light: #eef5f4;
    --bg-blue: #e6f0f7;
    --bg-green: #e7f2ed;
    --white: #ffffff;
    --border-color: #bfd3dc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[hidden] {
    display: none !important;
}

.honeypot {
    left: -9999px;
    position: absolute;
}

body {
    background-color: var(--bg-light);
    color: var(--primary-color);
    line-height: 1.6;
}

.home-landing {
    background: var(--bg-green);
}

.home-hero {
    background: linear-gradient(120deg, var(--bg-green), var(--bg-blue));
    padding: 5rem 0;
}

.home-hero-grid {
    align-items: center;
    display: grid;
    gap: 4rem;
    grid-template-columns: 0.9fr 1.1fr;
}

.home-hero-copy {
    max-width: 34rem;
}

.eyebrow {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.home-hero h2 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 1.25rem;
}

.home-lede {
    color: #35586c;
    font-size: 1.25rem;
    max-width: 28rem;
}

.home-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.secondary-button {
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    display: inline-block;
    font-weight: 700;
    padding: 12px 18px;
    text-decoration: none;
}

.home-feature-image {
    margin: 0;
}

.home-feature-image img {
    aspect-ratio: 4 / 3;
    display: block;
    filter: saturate(0.9) contrast(1.05);
    object-fit: cover;
    width: 100%;
}

.home-values {
    background: #123f5a;
    color: var(--white);
    padding: 3rem 0;
}

.home-values-grid {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
}

.home-values h3 {
    font-size: 2rem;
    line-height: 1.1;
}

.home-values p:last-child {
    color: #d3e7e1;
    font-size: 1.05rem;
    max-width: 34rem;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #f8fcfc;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #31566b;
    font-weight: 600;
}

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

/* Hero */
.hero {
    background: #123f5a;
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

/* Quoter Wrapper */
.quoter-wrapper {
    background: #fbfefe;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.quoter-wrapper h2 {
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #527084;
    margin-bottom: 1.5rem;
}

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

.form-section {
    border-top: 2px solid var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.form-section:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.form-section-title {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.form-page {
    padding: 2rem 0;
}

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

.cnc-form input[type="text"],
.cnc-form input[type="email"],
.cnc-form input[type="tel"],
.cnc-form input[type="date"],
.cnc-form input[type="file"],
.cnc-form textarea {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font: inherit;
    margin-top: 0.5rem;
    padding: 10px;
    width: 100%;
}

#requesterName,
#requesterEmail {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font: inherit;
    margin-top: 0.5rem;
    padding: 10px;
    width: 100%;
}

.cnc-form textarea {
    resize: vertical;
}

.cnc-submit-box {
    border-top: 2px solid var(--accent-color);
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.cnc-submit-box h3 {
    color: var(--accent-color);
    margin-bottom: 0.35rem;
}

.form-status {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.75rem;
}

.quote-disclaimer {
    color: #527084;
    font-size: 0.85rem;
    margin-top: 1rem;
}

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

.selection-controls {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
}

.selection-controls > .form-group {
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
}

.selection-controls > .form-group:last-child {
    border-right: 0;
    padding-right: 0;
}

.selection-group {
    min-width: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group select, .form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.field-note {
    color: #527084;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.external-link {
    color: var(--accent-color);
    display: inline-block;
    font-weight: 600;
    margin-top: 0.5rem;
}

.garment-preview {
    align-items: center;
    background: var(--bg-blue);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-self: start;
    margin: 0;
    max-width: 260px;
    padding: 0.75rem;
}

.garment-previews {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.garment-preview img {
    display: block;
    height: 220px;
    object-fit: contain;
    width: 100%;
}

.garment-preview figcaption {
    color: #527084;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

.size-options {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.size-option {
    align-items: center;
    background: var(--bg-green);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 4rem 1fr 6rem;
    padding: 0.5rem 0.75rem;
}

.size-option label {
    font-weight: 700;
}

.size-option span {
    color: #527084;
    font-size: 0.9rem;
}

.size-option input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    padding: 8px;
    width: 100%;
}

.buyer-quantity-group input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.5rem;
    padding: 10px;
    width: 100%;
}

/* Print Options Layout */
.print-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.print-card {
    background: var(--bg-blue);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.print-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.print-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
}

.custom-color-input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    padding: 10px;
    width: 100%;
}

.print-details {
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.print-details input[type="file"],
.logo-width-input {
    font-size: 0.9rem;
    margin: 0.25rem 0 0.75rem;
    width: 100%;
}

.logo-width-input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
}

.print-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.print-card label {
    display: block;
    font-weight: normal;
    margin-bottom: 0.4rem;
    cursor: pointer;
}

/* Quote Output Breakdown Box */
.quote-output {
    background: #f4faf9;
    border: 2px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.quote-output h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.breakdown-section-title {
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-color);
    font-size: 0.95rem;
    margin: 1rem 0 0.75rem;
    padding-bottom: 0.25rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.total-price {
    font-size: 1.2rem;
    font-weight: bold;
}

.per-shirt-price {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.cta-button {
    display: block;
    width: 100%;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1.5rem;
    text-align: center;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Portfolio Gallery Styling */
.portfolio-container {
    padding: 2rem 0;
}

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

.gallery-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.portfolio-photo {
    aspect-ratio: 4 / 3;
    background: #dfe4e8;
    display: block;
    filter: saturate(0.92) contrast(1.05);
    image-orientation: from-image;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.gallery-item h3,
.gallery-item p {
    display: none;
}

.gallery-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    padding: 1rem 1rem 0;
}

.gallery-item p {
    color: #666;
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #527084;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 0;
    }

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

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

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

    .selection-controls {
        grid-template-columns: 1fr;
    }

    .selection-controls > .form-group {
        border-bottom: 1px solid var(--border-color);
        border-right: 0;
        padding-bottom: 1rem;
        padding-right: 0;
    }

    .selection-controls > .form-group:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .print-options-grid {
        grid-template-columns: 1fr;
    }
}