/* --- Styles moved from views/index.html --- */
:root {
    /* Key tones sampled from the cover */
    --sky-outer:   #0f3a56;  /* deep cyan-blue corners */
    --sky-mid:     #1d78a3;  /* bright upper sky */
    --glow-halo:   #fac9a2;  /* peach halo */
    --glow-core:   #ffd8b8;  /* warm sun core */
    --ground-top:  #141920;  /* ridge silhouette */
    --ground-deep: #0a0f14;  /* lower darkness */
}

html, body { height: 100%; }
body {
    margin:0;
    min-height:100%;
    color: #ffffff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    display:block;
    /* LAYERED, IMAGE-FREE BACKGROUND */
    background:
    radial-gradient(120% 90% at 50% 45%,
        rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%),
    radial-gradient(120% 80% at 50% 88%,
        rgba(20,25,32,0) 0%,
        rgba(20,25,32,0.75) 35%,
        var(--ground-top) 56%,
        var(--ground-deep) 100%),
    radial-gradient(60% 45% at 50% 48%,
        #fff2e7 0%,
        var(--glow-core) 12%,
        var(--glow-halo) 28%,
        rgba(250,201,162,0.35) 42%,
        rgba(250,201,162,0.12) 55%,
        rgba(250,201,162,0) 70%),
    radial-gradient(120% 95% at 50% 46%,
        #ffd7bb 0%,
        #ffa97f 16%,
        #5bb0d0 38%,
        var(--sky-mid) 60%,
        var(--sky-outer) 100%);
    background-attachment: fixed;
    text-align:center;
}

.mark {
    letter-spacing:.28em;
    text-transform:uppercase;
    color: #ffffff; /* ensure hero is very bright */
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    opacity:1;
    font-size:.9rem;
}
/* Page container and section utilities for long-scrolling layout */
main {
    width: min(1000px, 92%);
    margin: 0 auto 6rem; /* bottom margin ensures content clears fixed footer */
    text-align: left;
    display: block;
}
section.page-section {
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.10));
    border-radius: 8px;
    margin-bottom: 2rem;
    /* Make each section take the full viewport height and center content */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
section.hero-section {
    padding: 0 2rem;
    background: transparent;
    margin-bottom: 2rem;
    /* Make hero take the full viewport height and center content */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
section.page-section h2,
section.hero-section h2 {
    margin-top: 0;
    color: #f6f8fa; /* lighter heading for stronger contrast on the background */
    font-size: 1.6rem;
    letter-spacing: 0.06em;
}
section.page-section ul {
  margin-bottom: 2rem;
}
.lead {
    color: rgba(246,248,250,0.95); /* light body copy */
    font-size:1rem;
    line-height:1.6;
}
.badge {
    border:1px solid rgba(255,255,255,0.5);
    width:80px;
    height:80px;
    border-radius:10px;
    transform:rotate(45deg);
    opacity:.75;
}

/* Link styles (kept here for palette consistency) */
a, a:visited {
    color: var(--sky-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}
a:hover, a:focus {
    color: #5bb0d0;
    outline: none;
    text-decoration: none;
}
a:active {
    color: #1d78a3;
    opacity: 0.95;
}

/* Contact form tweaks moved from inline */
.fieldInput {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:0.5rem;
}
.fieldInput label {
    width:80%;
    display:block;
    text-align:left;
    margin-bottom:0.25rem;
    color: rgba(246,248,250,0.9);
    font-weight:600;
}
.fieldInput input,
.fieldInput textarea,
.fieldInput .send {
    width:80%;
    border-radius:8px;
    box-sizing:border-box;
}
.fieldInput input, .fieldInput textarea {
    padding:12px 14px;
    border:1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.fieldInput textarea { resize: vertical; }
.fieldInput .send {
    padding: 10px 18px;
    background: linear-gradient(90deg,#1d78a3,#5bb0d0);
    color: #fff;
    border: none;
    cursor: pointer;
}

/* New UI helpers */
.hero { text-align:center; background: transparent; margin-top:0; }
.hero-title { margin-top:1rem; }
.hero-subtitle { letter-spacing:.4em; opacity:.6; margin-top:1.25rem; }
.form-actions { text-align:center; margin-top:1rem; }
.contact-status { margin-top:1rem; color: rgba(246,248,250,0.95); }
.invalid {
    box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.10);
    border-color: rgba(255,80,80,0.55) !important;
}

/* Visible focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--glow-core);
  outline-offset: 3px;
}
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--glow-core);
  outline-offset: 3px;
}

@media all and (max-width: 600px) {
    .mark { font-size:.75rem; letter-spacing:.2em; }
}

.field-error {
    width: 80%;
    color: #ffb3b3;
    font-size: 0.95rem;
    min-height: 1.2em;
    text-align: left;
    margin-top: 0.25rem;
}

/* Footer: keep fixed to viewport bottom */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: .75rem 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.12));
    backdrop-filter: blur(4px);
    z-index: 30;
}

/* Error summary box at top of form */
.error-summary {
    width: 80%;
    background: rgba(255, 230, 230, 0.06);
    border-left: 4px solid #ff6b6b;
    color: #ffdede;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.error-summary > p {
    margin: 0.25rem 0 0 0;
    font-weight: 600;
}

.error-summary-list {
    margin-top: 8px;
    padding-left: 20px;
}
.error-summary-list > p {
    margin-bottom: 4px;
    font-weight: 400;
}