/* style.css */

:root {
    --navy: #253D73;
    --gold: #F9C851;
    --ink: #1E2233;
    --muted: #5F6A85;
    --beige: #FFF9EF;
    --background: #F4F6FB;
    --white: #FFFFFF;
    --cta-orange: #E89A00;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 24px 60px rgba(37, 61, 115, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Lato", sans-serif;
    color: var(--ink);
    background: var(--background);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0 0 0.6em;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

p {
    margin: 0 0 1.25em;
}

.container,
.nnw-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

main {
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 1rem 2.9rem;
}

.btn-sm {
    padding: 0.55rem 1.6rem;
    font-size: 0.9rem;
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-orange {
    background: var(--cta-orange);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-transparent {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-orange:hover {
    box-shadow: var(--shadow-strong);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 61, 115, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem clamp(16px, 4vw, 40px);
}

.site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Pacifico", cursive;
    font-size: 1.6rem;
    color: var(--navy);
}

.site-header .logo img {
    width: 44px;
    height: auto;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
    color: var(--muted);
}

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

@media (max-width: 720px) {
    .site-header nav a:not(.btn) {
        display: none;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(249, 200, 81, 0.9) 0%, rgba(37, 61, 115, 0.95) 100%),
        url("./assets/hero-bg.jpg") center/cover no-repeat;
    background-blend-mode: overlay;
    padding: clamp(96px, 18vw, 160px) 0 clamp(120px, 20vw, 200px);
    text-align: center;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero::before {
    content: none;
}

.hero::after {
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.18), transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.1), transparent 60%),
        radial-gradient(circle at 85% -20%, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Changed to Train One on 2025-10-31 */
.logo-hero {
    font-family: "Train One", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.3rem;
}

.tagline-hero {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
    font-weight: 600;
    font-size: 1rem;
}

.catchcopy {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    line-height: 1.25;
    color: var(--white);
    text-shadow:
        0 20px 30px rgba(0, 0, 0, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.35),
        0 0 6px rgba(0, 0, 0, 0.25);
}

.subcopy {
    font-size: clamp(1.65rem, 3.6vw, 2.4rem);
    max-width: 720px;
    opacity: 0.92;
    padding: 1.25rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    backdrop-filter: blur(2px);
    background: rgba(37, 61, 115, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.nnw-section {
    padding: clamp(56px, 8vw, 96px) 0;
}

#pains {
    background: var(--ink);
    text-align: center;
}

#pains .nnw-container {
    display: grid;
    gap: 2rem;
    justify-items: stretch;
}

#pains .pains-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    grid-auto-rows: minmax(165px, auto);
    width: 100%;
}

@media (min-width: 720px) {
    #pains .pains-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#pains .nnw-h2 {
    color: var(--white);
    text-align: center;
}

.pain-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
    min-height: 165px;
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    text-align: left;
}

.pain-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    background: rgba(255, 255, 255, 0.16);
}

.pain-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pain-card:nth-child(3) {
    animation-delay: 0.2s;
}

.pain-card:nth-child(4) {
    animation-delay: 0.3s;
}

.pain-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    margin: 0;
    flex-shrink: 0;
}

.pain-icon i {
    font-size: 36px;
    color: var(--white);
}

.pain-card p {
    font-weight: 600;
    color: var(--white);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    text-align: left;
}

@media (max-width: 680px) {
    .pain-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 180px;
        gap: 1.25rem;
    }

    .pain-card p {
        text-align: center;
    }

    .pain-icon {
        margin: 0 0 1rem;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nnw-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 61, 115, 0.1) 50%, transparent 100%);
    margin: 0;
}

#intro {
    margin-top: clamp(-160px, -18vw, -110px);
    padding: clamp(48px, 8vw, 68px) 0;
    background: var(--white);
    border-radius: clamp(18px, 4vw, 28px);
    box-shadow: var(--shadow-strong);
}

#intro .nnw-container {
    display: grid;
    gap: 1.2rem;
}

.nnw-eyecatch {
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    color: var(--navy);
}

.nnw-eyecatch strong {
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    color: var(--navy);
}

.nnw-lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted);
}

#about-bansosha {
    background: var(--beige);
}

#about-bansosha .nnw-container {
    max-width: 880px;
    text-align: center;
}

.nnw-caption {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--muted);
    background: rgba(37, 61, 115, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.nnw-ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: nnw-ol;
    display: grid;
    gap: 1.75rem;
}

.nnw-ol > li {
    position: relative;
    counter-increment: nnw-ol;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.2rem 2rem 2rem 4.4rem;
    border: 1px solid rgba(37, 61, 115, 0.08);
    box-shadow: var(--shadow);
}

.nnw-ol > li::before {
    content: counter(nnw-ol);
    position: absolute;
    top: 1.8rem;
    left: 1.4rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(249, 200, 81, 0.25);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-weight: 700;
}

#why-bansosha .nnw-container {
    display: grid;
    gap: 2rem;
}

#why-bansosha .nnw-h3 {
    text-align: left;
}

#what-we-do {
    background: linear-gradient(180deg, rgba(249, 200, 81, 0.08) 0%, rgba(255, 249, 239, 0.85) 100%);
}

#what-we-do .nnw-sublead {
    text-align: center;
}

.nnw-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.nnw-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid rgba(37, 61, 115, 0.08);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nnw-card img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.nnw-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), rgba(249, 200, 81, 0.4));
}

.nnw-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

#reasons {
    background: linear-gradient(135deg, rgba(249, 200, 81, 0.18), rgba(255, 249, 239, 0.92));
}

#reasons .nnw-container {
    text-align: center;
    display: grid;
    gap: 2.2rem;
}

#reasons .nnw-ol {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    text-align: left;
}

#reasons .nnw-ol > li {
    padding: 3.2rem 2rem 2.1rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(249, 200, 81, 0.35);
    text-align: left;
}

#reasons .nnw-ol > li::before {
    content: "";
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    position: absolute;
    top: -1.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(249, 200, 81, 0.65) 0%, rgba(37, 61, 115, 0.15) 100%);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}

#reasons .nnw-ol > li:nth-child(1)::after,
#reasons .nnw-ol > li:nth-child(2)::after,
#reasons .nnw-ol > li:nth-child(3)::after {
    content: "";
    position: absolute;
    top: -1.7rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: 1.75rem;
    height: 1.75rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#reasons .nnw-ol > li:nth-child(1)::after {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23253D73' d='M6 26h20v-9h2V9l-12-6L4 9v8h2v9Zm10-11h4v3h-4v-3Zm-6 0h4v3h-4v-3Zm-4-7.7 10-4.9 10 4.9V15h-4v-3H8v3H6V7.3Z'/%3E%3C/svg%3E");
}

#reasons .nnw-ol > li:nth-child(2)::after {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23253D73' d='M16 4a7 7 0 0 0-7 7c0 3.86 3.14 7 7 7s7-3.14 7-7a7 7 0 0 0-7-7Zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm-2 4C8.49 20 4 24.49 4 30h2c0-4.42 3.58-8 8-8s8 3.58 8 8h2c0-5.51-4.49-10-10-10Z'/%3E%3C/svg%3E");
}

#reasons .nnw-ol > li:nth-child(3)::after {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23253D73' d='M7 4v24h18V4H7Zm14 2v2h-4V6h4ZM11 6h4v2h-4V6Zm0 6h10v12H11V12Zm12 12V8h2v20H9V8h2v16h12Z'/%3E%3C/svg%3E");
}

#profile .nnw-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(40px, 6vw, 60px);
    display: grid;
    gap: 2rem;
    align-items: center;
}

#profile figure {
    margin: 0;
    display: grid;
    place-items: center;
}

#profile .profile-title {
    text-align: center;
}

#profile figure img {
    width: clamp(160px, 22vw, 220px);
    height: clamp(160px, 22vw, 220px);
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(249, 200, 81, 0.5);
    box-shadow: var(--shadow);
}

#profile .nnw-container p strong {
    font-size: 1.1rem;
    color: var(--navy);
}

@media (min-width: 960px) {
    #profile .nnw-container {
        grid-template-columns: 280px 1fr;
    }

    #profile .profile-title {
        width: calc(100% + 280px + 2rem);
        margin-left: calc(-280px - 2rem);
    }
}

#flow {
    background: #FAFAFA;
}

#flow .nnw-container {
    display: grid;
    gap: 2.5rem;
}

.nnw-steps {
    counter-reset: nnw-ol;
    padding: 0;
    margin: 0;
    list-style: none;
    max-width: 760px;
    margin-inline: auto;
    position: relative;
    display: grid;
    gap: 2.75rem;
}

.nnw-steps > li {
    position: relative;
    padding: 1.8rem 1.8rem 1.8rem 5.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(37, 61, 115, 0.08);
    counter-increment: nnw-ol;
}

.nnw-steps > li::before {
    content: counter(nnw-ol);
    position: absolute;
    top: 1.8rem;
    left: 1.5rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gold);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--navy);
    box-shadow: var(--shadow);
}

.nnw-steps > li::after {
    content: "";
    position: absolute;
    left: 3.1rem;
    top: calc(3.2rem + 1.8rem);
    width: 2px;
    height: calc(100% - 3.2rem - 1.8rem);
    background: linear-gradient(180deg, rgba(249, 200, 81, 0.8), rgba(37, 61, 115, 0));
}

.nnw-steps > li:last-child::after {
    display: none;
}

#contact .nnw-container {
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.nnw-form {
    display: grid;
    gap: 1.1rem;
    width: 100%;
    max-width: 720px;
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--shadow);
    border: 1px solid rgba(37, 61, 115, 0.08);
}

.nnw-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--navy);
}

.nnw-form input,
.nnw-form textarea {
    width: 100%;
    border: 1px solid rgba(37, 61, 115, 0.18);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font: inherit;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nnw-form textarea {
    min-height: 160px;
    resize: vertical;
}

.nnw-form input:focus,
.nnw-form textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(37, 61, 115, 0.15);
    outline: none;
}

.nnw-btn {
    justify-self: center;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nnw-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

#message {
    padding-top: clamp(28px, 4vw, 48px);
}

#message .nnw-container {
    max-width: 880px;
    text-align: center;
    background: var(--white);
    border-radius: clamp(18px, 3vw, 24px);
    padding: clamp(40px, 6vw, 60px);
    box-shadow: var(--shadow);
}

.message-footer {
    background: var(--navy);
    color: var(--white);
    padding: clamp(56px, 10vw, 96px) 0 clamp(32px, 6vw, 48px);
    text-align: center;
}

.message-footer .container {
    display: grid;
    gap: 2.5rem;
    justify-items: center;
}

/* Changed to Train One on 2025-10-31 */
.footer-logo {
    font-family: "Train One", cursive;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: inline-flex;
    gap: 1.25rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--white);
}

.message-footer small {
    color: rgba(255, 255, 255, 0.72);
}

/* Changed to Train One on 2025-10-31 */
.site-header .logo span {
    font-family: "Train One", cursive;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Center alignment for headings */
.nnw-h1,
.nnw-h2,
.nnw-h3 {
    text-align: center;
}

/* Center alignment utility */
.nnw-center {
    text-align: center;
}

@media (max-width: 960px) {
    .nnw-ol > li {
        padding: 2rem 1.6rem 1.8rem 3.6rem;
    }

    .nnw-ol > li::before {
        left: 1.3rem;
        top: 1.6rem;
    }

    #reasons .nnw-ol > li::before {
        top: -1.6rem;
    }

    .nnw-steps > li {
        padding-left: 4.8rem;
    }

    .nnw-steps > li::before {
        left: 1.4rem;
    }

    .nnw-steps > li::after {
        left: 2.9rem;
    }
}

@media (max-width: 640px) {
    #intro {
        margin-top: -80px;
    }

    .hero {
        padding-bottom: 150px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .nnw-btn {
        width: 100%;
    }

    #reasons .nnw-ol > li {
        padding-top: 2.6rem;
    }
}

/* ---- Form error styles ---- */
.nnw-form .nnw-error {
  border-color: #E53935 !important;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12) !important;
}

.nnw-form .nnw-error-text {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #E53935;
}

/* ===== Contact two-column layout (added) ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(37, 61, 115, 0.08);
  padding: 20px 20px 24px;
}

.contact-title {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 16px;
  text-align: center;
}

.contact-form-card .nnw-form {
  box-shadow: none;           /* card already has a shadow */
  border: none;
  padding: 0;                 /* remove inner padding so it matches card */
  max-width: none;            /* use full card width */
}

/* Right column: phone card */
.contact-call-card {
  text-align: center;
}

.contact-call-card .call-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 8px auto 10px;
  display: grid;
  place-items: center;
  background: rgba(249, 200, 81, 0.18); /* soft gold to match brand */
}

.contact-call-card .call-icon i {
  font-size: 28px;
  line-height: 1;
  transform: translateY(1px);
  color: var(--navy);
}

.contact-call-card .call-caption {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 10px;
}

.contact-call-card .call-number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 6px 0 12px;
  color: var(--navy);
}

.contact-call-card .call-number a {
  color: inherit;
  text-decoration: none;
}

.contact-call-card .call-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0 18px;
}

.contact-call-card .call-meta dt {
  font-size: 12px;
  color: var(--muted);
}

.contact-call-card .call-meta dd {
  font-size: 14px;
  margin: 0;
  color: var(--ink);
}

.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--cta-orange);
  color: var(--white);
  transition: transform .03s ease, opacity .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}

.call-button:hover { opacity: .95; box-shadow: var(--shadow-strong); }
.call-button:active { transform: translateY(1px); }
.call-button i { font-size: 18px; }

/* Responsive stack */
@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .contact-call-card {
    order: 2; /* form first, phone second */
  }
}

/* --- Contact layout fixes: wider form + equal heights --- */

/* 1) Make the section container a bit wider only for #contact */
#contact .nnw-container {
  max-width: 1100px; /* was narrower; increase just here */
}

/* 2) Widen the left column and fix the right column to a clean card width */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 360px; /* wider form / fixed phone card */
  gap: 28px;
  align-items: stretch; /* let cards stretch to equal height */
}

/* 3) Ensure both cards stretch to the same height */
.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 4) Remove inner constraints and let the form fill the card */
.contact-form-card .nnw-form {
  box-shadow: none;
  border: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  flex: 1; /* fill remaining height so the submit button sits nicely */
}

/* 5) Force inputs/textarea to use full available width (override any old fixed widths) */
.contact-form-card .nnw-form input,
.contact-form-card .nnw-form textarea,
.contact-form-card .nnw-form select {
  width: 100% !important;
  max-width: 100% !important;
}

/* 6) Keep the phone card tidy and centered */
.contact-call-card {
  width: 100%;
  max-width: 360px;      /* match the grid right column */
  margin-left: auto;     /* keep visual balance if needed */
  margin-right: 0;
  text-align: center;
}

/* 7) Responsive: stack on smaller screens */
@media (max-width: 980px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
.contact-call-card {
    max-width: 560px;  /* nice width when stacked */
    margin: 0 auto;    /* center on mobile */
  }
}

:root{
  /* uses existing palette if already defined */
  --updates-bg: var(--beige, #FFF9EF);
  --updates-accent: var(--gold, #F9C851);
  --updates-ink: var(--ink, #1E2233);
  --updates-muted: var(--muted, #5F6A85);
  --updates-card: var(--white, #FFFFFF);
  --updates-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.08));
  --updates-radius: var(--radius, 16px);
}

/* Section wrapper */
.blog-updates{
  margin-top: 48px;
  padding: 28px;
  background: linear-gradient(180deg, var(--updates-bg) 0%, #ffffff 100%);
  border-radius: calc(var(--updates-radius) + 4px);
  box-shadow: var(--updates-shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Header */
.blog-updates__header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.blog-updates__header h3{
  margin:0;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--updates-ink);
  position:relative;
  padding-left:14px;
}
.blog-updates__header h3::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  transform: translateY(-50%);
  width:6px; height:70%;
  background: var(--updates-accent);
  border-radius: 4px;
}
.blog-updates__badge{
  font-size:12px;
  line-height:1;
  color:#7a5b00;
  background: rgba(249,200,81,.25);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(249,200,81,.5);
}

/* List */
.blog-updates__list{
  list-style:none;
  margin:0; padding:0;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 720px){
  .blog-updates__list{ gap:12px; }
}

/* Items */
.blog-updates__item{
  background: var(--updates-card);
  border-radius: var(--updates-radius);
  box-shadow: var(--updates-shadow);
  overflow:hidden;
  border: 1px solid rgba(37,61,115,.06);
}
.blog-updates__link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  text-decoration:none;
  color: var(--updates-ink);
}
.blog-updates__link:hover .blog-updates__title{
  text-decoration: underline;
}
.blog-updates__dot{
  width:10px; height:10px;
  border-radius:50%;
  background: var(--updates-accent);
  flex: 0 0 10px;
  box-shadow: 0 0 0 4px rgba(249,200,81,.18);
}
.blog-updates__title{
  flex:1;
  font-weight:600;
}
.blog-updates__date{
  color: var(--updates-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* Skeletons while loading */
.blog-updates__skeleton{
  height:44px;
  border-radius: var(--updates-radius);
  background: linear-gradient(90deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.08) 37%, rgba(0,0,0,.05) 63%);
  background-size:400% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer{
  0%{ background-position:100% 0; }
  100%{ background-position:0 0; }
}

.blog-updates__empty{
  color: var(--updates-muted);
  background: #fff;
  border: 1px dashed rgba(0,0,0,.12);
  border-radius: var(--updates-radius);
  padding: 14px 16px;
}
