:root {
    --text: #1d1d1f;
    --secondary: #6e6e73;
    --background: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.88);
    --border: #d2d2d7;
    --blue: #219BE8;
    --blue-hover: #219BE8;
    --error: #b42318;
    --error-border: #d92d20;
}

@font-face {
    font-family: "Cormorant Garamond Display";
    src: url("../font/CormorantGaramond-Italic.ttf") format("truetype-variations");
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-width: 320px;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--background);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================
   Header
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;

    width: 100%;
    height: 96px;

    padding: 0 max(28px, 5.5vw);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    border-bottom: 1px solid #e7e7ea;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}


/* =========================
   Logo
   ========================= */

.site-header a.logo,
.site-header a.logo:link,
.site-header a.logo:visited,
.site-header a.logo:hover,
.site-header a.logo:active {
    display: flex;
    align-items: center;
    gap: 13px;

    flex-shrink: 0;

    color: var(--text);
    text-decoration: none;
}

.site-header a.logo > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: var(--text);
    color: #ffffff;

    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;

    text-decoration: none;
}

.site-header a.logo strong {
    color: var(--text);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;

    white-space: nowrap;
    text-decoration: none;
}


/* =========================
   Navigation
   ========================= */

.site-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header nav a {
    position: relative;

    padding: 7px 0;

    color: var(--secondary);

    font-size: 15px;
    text-decoration: none;

    transition: color 180ms ease;
}

.site-header nav a:hover {
    color: var(--text);
}

.site-header nav a.active {
    color: var(--text);
    font-weight: 600;
}

.site-header nav a.active::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    border-radius: 2px;

    background: var(--text);
}

/* Dropdown menu — kept in sync with the landing page header. */

.menu {
    position: relative;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #e2e2e5;
    border-radius: 999px;
    background: white;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.menu-button:hover {
    background: #f5f5f7;
    transform: none;
}

.menu-icon {
    font-size: 18px;
    line-height: 1;
}

.site-header .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: white;
    border: 1px solid #e2e2e5;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.site-header .dropdown-menu.open {
    display: flex;
}

.dropdown-menu a {
    position: static;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
}

.dropdown-menu a:hover {
    background: #f5f5f7;
    color: var(--text);
}

.dropdown-menu a.active {
    color: var(--text);
    font-weight: 600;
}

.dropdown-menu a.active::after {
    display: none;
}


/* =========================
   Main
   ========================= */

main {
    width: 100%;
    flex: 1;
}

.contact-section {
    width: min(100%, 1040px);

    margin: 0 auto;

    padding:
        clamp(60px, 8vw, 96px)
        clamp(20px, 6vw, 70px)
        88px;
}


/* =========================
   Contact Heading
   ========================= */

.contact-section h1 {
    margin: 0 0 14px;

    text-align: center;

    font-size: clamp(40px, 6vw, 64px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.intro {
    margin: 0 auto 42px;

    color: var(--secondary);

    text-align: center;

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.45;
    letter-spacing: -0.015em;
}

hr {
    display: none;
}


/* =========================
   Form
   ========================= */

form {
    width: min(82%, 720px);

    margin: 0 auto;

    padding: clamp(28px, 5vw, 48px);

    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 24px;

    background: var(--surface);

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-row {
    width: 100%;

    margin-bottom: 20px;

    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: start;
    gap: 20px;
}

.form-row label {
    padding-top: 14px;

    font-size: 16px;
    font-weight: 600;
}

.form-row label span {
    color: var(--blue);
}

.field-control {
    min-width: 0;
}

.form-row input,
.form-row textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.92);
    color: var(--text);

    font: inherit;
    font-size: 15px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.form-row input {
    height: 48px;
}

.form-row textarea {
    min-height: 128px;
    /* 20 text lines (15px × 1.45) plus vertical padding and borders. */
    max-height: 464px;

    line-height: 1.45;

    resize: vertical;
    overflow-y: auto;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #86868b;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--blue);

    outline: none;

    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}


/* =========================
   Validation Errors
   ========================= */

.field-error {
    margin: 7px 0 0;

    color: var(--error);

    font-size: 13px;
    line-height: 1.35;
}

.field-hint {
    margin: 7px 0 0;
    color: #6f685f;
    font-size: 13px;
    line-height: 1.35;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.message-counter {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.message-counter.is-at-limit {
    color: var(--error);
    font-weight: 600;
}

.has-error input,
.has-error textarea {
    border-color: var(--error-border);
}

.has-error input:focus,
.has-error textarea:focus {
    border-color: var(--error-border);

    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}


/* =========================
   CAPTCHA
   ========================= */

.captcha-container {
    margin: 4px 0 26px 125px;
}

.g-recaptcha {
    min-height: 78px;
}

.captcha-config-error {
    max-width: 360px;

    margin: 0;
    padding: 12px;

    border: 1px solid #f0b4ad;
    border-radius: 10px;

    background: #fff4f2;
    color: #912018;

    font-size: 13px;
    line-height: 1.4;
}


/* Visual CAPTCHA fallback */

.captcha-placeholder {
    width: 290px;
    min-height: 70px;

    margin: 4px 0 26px 125px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #f9f9fb;
}

.captcha-placeholder input {
    width: 24px;
    height: 24px;

    margin: 0;

    flex-shrink: 0;

    accent-color: var(--blue);
}

.captcha-placeholder > label {
    font-size: 13px;
    font-weight: 400;

    cursor: pointer;
}

.captcha-brand {
    margin-left: auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--secondary);

    font-size: 8px;
}

.captcha-brand img {
    width: 38px;
    height: 38px;

    object-fit: contain;
}

.captcha-brand span {
    margin-top: 1px;
}


/* =========================
   Submit Button
   ========================= */

button {
    display: block;

    min-width: 148px;
    min-height: 48px;

    margin: 0 auto;
    padding: 11px 24px;

    border: none;
    border-radius: 999px;

    background: var(--blue);
    color: #ffffff;

    font: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}

button:hover {
    background: var(--blue-hover);

    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.28);
    outline-offset: 3px;
}


/* =========================
   Flash Messages
   ========================= */

.message {
    width: min(92%, 720px);

    margin: 20px auto 0;
    padding: 14px 18px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.4;
}

.message.success {
    border: 1px solid #8fd3a8;

    background: #ecfdf3;
    color: #166534;
}

.message.error {
    border: 1px solid #f0b4ad;

    background: #fff4f2;
    color: #912018;
}

.message.info {
    border: 1px solid #84caff;

    background: #eff8ff;
    color: #175cd3;
}

.contact-flash-area {
    width: 100%;
    margin: 0 auto 32px;
}

.contact-flash-area:empty {
    display: none;
}

.contact-flash-area .message {
    width: 100%;
    max-height: 90px;
    margin: 0;
    padding: 14px 16px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        max-height 0.3s ease,
        margin 0.3s ease,
        padding 0.3s ease,
        border-width 0.3s ease;
}

.contact-flash-area .message.success {
    border-color: #8ca681;
    background: #f2f7ef;
    color: #3f5c3c;
}

.contact-flash-area .message.error {
    border-color: #c94b40;
    background: #fff6f4;
    color: #7c2923;
}

.contact-flash-area .message.warning {
    border-color: #d9b36c;
    background: #fff8e8;
    color: #6f4b12;
}

.contact-flash-area .message.info {
    border-color: rgba(91, 45, 26, 0.25);
    background: #fbf8f1;
    color: var(--ink);
}

.contact-flash-text {
    min-width: 0;
    flex: 1;
}

.contact-flash-meta {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
}

.contact-flash-time {
    color: currentColor;
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: lining-nums tabular-nums;
    opacity: 0.68;
    white-space: nowrap;
}

.contact-flash-area .contact-flash-close {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transform: none;
    transition:
        background 0.15s ease,
        opacity 0.15s ease;
}

.contact-flash-area .contact-flash-close:hover {
    background: rgba(0, 0, 0, 0.06);
    opacity: 1;
    transform: none;
}

.contact-flash-area .contact-flash-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.contact-flash-area .message.is-dismissing {
    max-height: 0;
    margin: 0;
    padding-block: 0;
    border-width: 0;
    opacity: 0;
    transform: translateY(-5px);
}


/* =========================
   Footer
   ========================= */

footer {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 30px;

    border-top: 1px solid #e2e2e5;

    background: transparent;
    color: var(--secondary);

    text-align: center;
    font-size: 12px;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 750px) {
    .site-header {
        height: 76px;

        padding: 0 18px;
    }

    .site-header a.logo {
        gap: 10px;
    }

    .site-header a.logo > span {
        width: 35px;
        height: 35px;

        border-radius: 11px;

        font-size: 21px;
    }

    .site-header a.logo strong {
        font-size: 13px;
    }

    .site-header nav:not(.dropdown-menu) {
        gap: 12px;
    }

    .site-header nav:not(.dropdown-menu) a {
        font-size: 12px;
    }

    .contact-section {
        padding-top: 52px;
        padding-bottom: 60px;
    }

    form {
        width: 100%;
    }

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

    .form-row label {
        padding-top: 0;
    }

    .captcha-placeholder,
    .captcha-container {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 580px) {
    .site-header nav:not(.dropdown-menu) a:nth-child(2),
    .site-header nav:not(.dropdown-menu) a:nth-child(3) {
        display: none;
    }
}

@media (max-width: 460px) {
    .site-header a.logo strong {
        display: none;
    }

    .contact-section {
        padding-inline: 16px;
    }

    form {
        padding: 24px 18px;

        border-radius: 18px;
    }

    .site-header nav:not(.dropdown-menu) {
        gap: 10px;
    }

    .site-header nav:not(.dropdown-menu) a {
        font-size: 11px;
    }

    footer {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Home-matched editorial contact theme ---------------------------------- */

body {
    --text: #29251f;
    --secondary: #746d62;
    --background: #f4f0e8;
    --surface: rgba(251, 248, 241, 0.92);
    --border: rgba(91, 45, 26, 0.25);
    --blue: #5b2d1a;
    --blue-hover: #472113;
    --cream: #fbf8f1;
    --line: rgba(73, 62, 48, 0.18);
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

.site-header {
    height: 104px;
    padding-inline: max(28px, 6.5vw);
    background: rgba(251, 248, 241, 0.92);
    border-color: var(--line);
    backdrop-filter: blur(18px);
}

.site-header a.logo,
.site-header a.logo:link,
.site-header a.logo:visited,
.site-header a.logo:hover,
.site-header a.logo:active {
    gap: 16px;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.12em;
}

.site-header a.logo > span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-style: italic;
}

.site-header a.logo strong {
    font-size: 14px;
    letter-spacing: 0.12em;
}

.menu-button {
    padding: 11px 18px;
    border-color: var(--line);
    background: transparent;
    color: var(--text);
    letter-spacing: 0.02em;
}

.menu-button:hover {
    background: rgba(91, 45, 26, 0.08);
}

.site-header .dropdown-menu {
    background: var(--cream);
    border-color: var(--line);
    box-shadow: 0 12px 30px rgba(55, 43, 31, 0.12);
}

.dropdown-menu a:hover {
    background: rgba(91, 45, 26, 0.08);
}

main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: url("../img/home-workshop-hero-refreshed.png") center / cover no-repeat;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(226, 226, 223, 0.63);
    backdrop-filter: grayscale(0.1);
}

.contact-section {
    width: min(100%, 1120px);
    padding-top: clamp(56px, 7vw, 84px);
}

.contact-section h1 {
    margin-bottom: 8px;
    color: #5b2d1a;
    font-family: "Cormorant Garamond Display", Georgia, "Times New Roman", serif;
    font-size: clamp(66px, 8vw, 104px);
    font-style: italic;
    font-weight: 650;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: none;
}

.intro {
    margin-bottom: 34px;
    color: var(--secondary);
    font-size: 17px;
    line-height: 1.6;
}

form {
    border-color: var(--line);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(55, 43, 31, 0.16);
    backdrop-filter: blur(16px);
}

.form-row label {
    color: var(--text);
    font-size: 14px;
}

.form-row label span {
    color: #5b2d1a;
}

.form-row input,
.form-row textarea {
    border-color: var(--border);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #5b2d1a;
    box-shadow: 0 0 0 3px rgba(91, 45, 26, 0.12);
}

form > button[type="submit"] {
    border-radius: 3px;
    background: #5b2d1a;
    letter-spacing: 0.07em;
}

form > button[type="submit"]:hover {
    background: #472113;
}

footer {
    background: var(--cream);
    border-color: var(--line);
}

@media (max-width: 750px) {
    .site-header {
        height: 78px;
    }

    .site-header a.logo > span {
        width: 38px;
        height: 38px;
        font-size: 23px;
    }

    .contact-section h1 {
        font-size: clamp(58px, 18vw, 78px);
    }
}

@media (max-width: 460px) {
    form {
        border-radius: 3px;
    }
}
