/* Subpage Styles - for converted Squarespace content */

/* Main content area */
.subpage-content {
    padding-top: 100px; /* space for fixed header */
    min-height: 60vh;
}

.subpage-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px 60px;
}

/* Page title */
.page-title {
    font-size: 2.2em;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    letter-spacing: 1px;
}

/* Content blocks from XML */
.content-block {
    margin-bottom: 20px;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.content-block h1, .content-block h2, .content-block h3 {
    color: #1a1a1a;
    font-weight: 300;
}

.content-block p {
    margin: 0.5em 0 1em;
}

.content-block a {
    color: #1a1a1a;
    text-decoration: underline;
}

.content-block ul, .content-block ol {
    padding-left: 1.5em;
    margin: 0.5em 0 1em;
}

.content-block li {
    margin-bottom: 0.3em;
}

/* Content images */
.content-image {
    margin: 25px 0;
    padding: 0;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

/* Image gallery */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.content-gallery figure {
    margin: 0;
    padding: 0;
}

.content-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 3px;
}

/* Squarespace grid system compatibility */
.sqs-layout {
    width: 100%;
}

.sqs-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.sqs-col-12 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.sqs-col-6 {
    width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

.sqs-col-4 {
    width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.sqs-col-8 {
    width: 66.666%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Content blocks */
.sqs-block {
    margin-bottom: 25px;
}

.sqs-block-content {
    width: 100%;
}

/* HTML/Text content */
.sqs-html-content {
    color: #333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.sqs-html-content h1 {
    font-size: 2.2em;
    font-weight: 300;
    margin: 0.5em 0 0.3em;
    color: #1a1a1a;
    line-height: 1.2;
}

.sqs-html-content h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin: 0.8em 0 0.4em;
    color: #1a1a1a;
    line-height: 1.3;
}

.sqs-html-content h3 {
    font-size: 1.3em;
    font-weight: 400;
    margin: 0.8em 0 0.4em;
    color: #1a1a1a;
}

.sqs-html-content p {
    margin: 0.5em 0 1em;
    color: #555;
}

.sqs-html-content a {
    color: #1a1a1a;
    text-decoration: underline;
}

.sqs-html-content a:hover {
    opacity: 0.7;
}

.sqs-html-content ul, .sqs-html-content ol {
    padding-left: 1.5em;
    margin: 0.5em 0 1em;
    color: #555;
}

.sqs-html-content li {
    margin-bottom: 0.3em;
}

.sqs-html-content strong, .sqs-html-content b {
    font-weight: 600;
    color: #333;
}

.sqs-html-content em {
    font-style: italic;
}

/* Image blocks */
.sqs-block-image {
    margin-bottom: 30px;
}

.sqs-block-image .image-block-outer-wrapper {
    width: 100%;
}

.sqs-block-image .image-block-wrapper {
    position: relative;
    overflow: hidden;
}

.sqs-block-image img,
.sqs-image img,
.thumb-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.image-caption {
    font-size: 0.85em;
    color: #888;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Gallery blocks */
.sqs-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sqs-gallery-design-grid-slide {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 200px;
}

.sqs-gallery-design-grid-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Form blocks */
.sqs-block-form {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 4px;
}

.sqs-block-form .field-list {
    list-style: none;
    padding: 0;
}

.sqs-block-form .field-list .field {
    margin-bottom: 15px;
}

.sqs-block-form .field-list .field .caption {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sqs-block-form input[type="text"],
.sqs-block-form input[type="email"],
.sqs-block-form input[type="tel"],
.sqs-block-form textarea,
.sqs-block-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

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

.sqs-block-form .form-button-wrapper .sqs-system-button {
    display: inline-block;
    padding: 12px 35px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.sqs-block-form .form-button-wrapper .sqs-system-button:hover {
    background: #444;
}

/* Spacer blocks */
.sqs-block-spacer {
    height: 30px;
}

/* Horizontal rule blocks */
.sqs-block-horizontalrule hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Video blocks */
.sqs-block-video {
    margin-bottom: 30px;
}

.sqs-block-video .sqs-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.sqs-block-video .sqs-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Map blocks */
.sqs-block-map {
    margin-bottom: 30px;
}

.sqs-block-map .sqs-block-content {
    min-height: 300px;
}

/* Button blocks */
.sqs-block-button-element--medium,
.sqs-block-button-element--small,
.sqs-block-button-element--large {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 3px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.sqs-block-button-element--medium:hover,
.sqs-block-button-element--small:hover,
.sqs-block-button-element--large:hover {
    background: #444;
}

/* Newsletter/Subscription blocks */
.newsletter-form-wrapper input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    width: 60%;
    box-sizing: border-box;
}

.newsletter-form-wrapper .newsletter-form-button {
    padding: 12px 25px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Blog/News listing */
.sqs-block-summary-v2 .summary-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.sqs-block-summary-v2 .summary-title a {
    font-size: 1.3em;
    color: #1a1a1a;
    text-decoration: none;
}

.sqs-block-summary-v2 .summary-excerpt p {
    color: #666;
    font-size: 0.95em;
}

.sqs-block-summary-v2 .summary-metadata-container {
    font-size: 0.8em;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .subpage-content {
        padding-top: 80px;
    }

    .subpage-container {
        padding: 25px 20px 40px;
    }

    .sqs-row {
        flex-direction: column;
    }

    .sqs-col-6,
    .sqs-col-4,
    .sqs-col-8 {
        width: 100%;
    }

    .sqs-html-content h1 {
        font-size: 1.7em;
    }

    .sqs-html-content h2 {
        font-size: 1.4em;
    }

    .sqs-gallery-design-grid-slide {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .subpage-container {
        padding: 20px 15px 30px;
    }

    .sqs-html-content {
        font-size: 15px;
    }
}
