/* Cupola Point - Custom styles (on top of Tailwind CDN) */

:root {
    --accent: #ea580c;
    --accent-hover: #c2410c;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', system-ui, sans-serif;
    background-color: #fafaf9; /* stone-50 */
    color: #44403c; /* stone-700 */
}

/* Font family utilities — overrides font-heading/font-body defaults */
.font-heading { font-family: 'Arimo', system-ui, sans-serif; }
.font-body { font-family: 'Raleway', system-ui, sans-serif; }

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Form input */
.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d6d3d1; /* stone-300 */
    background: transparent;
    color: #44403c; /* stone-700 */
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Raleway', system-ui, sans-serif;
    transition: border-color 0.15s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
}
.form-input::placeholder {
    color: #78716c; /* stone-500 */
}

/* Eyebrow label */
.eyebrow {
    display: inline-block;
    font-family: 'Arimo', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* Heading accent underline */
.heading-accent {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.heading-accent::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    /* Light beam: accent fading to nothing */
    background: linear-gradient(90deg, var(--accent), rgba(234, 88, 12, 0));
}
.heading-accent-centered::after {
    left: 50%;
    transform: translateX(-50%);
    /* Symmetric beam for centred headings */
    background: linear-gradient(90deg, rgba(234, 88, 12, 0), var(--accent), rgba(234, 88, 12, 0));
}

/* Hero image overlay */
.hero-image {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(41, 37, 36, 0.85), rgba(41, 37, 36, 0.7));
    z-index: 1;
}
.hero-image > * {
    position: relative;
    z-index: 2;
}

/* ---------------------------------------------------------------------------
   Lighthouse theme
   Decorative motifs: a beacon glow + light beam in heroes, a faint lighthouse
   watermark in dark sections, and a horizon divider with the lighthouse glyph.
   All decorative elements are aria-hidden and pointer-events:none, sitting
   behind content. Host sections must be position:relative; overflow-hidden.
   --------------------------------------------------------------------------- */

/* Beacon glow - soft radial light, centred near the top of a hero */
.beacon-glow {
    position: absolute;
    top: -12%;
    left: 50%;
    width: 760px;
    max-width: 130%;
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(234, 88, 12, 0.18), rgba(234, 88, 12, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Light beam - a translucent wedge sweeping down from the beacon */
.light-beam {
    position: absolute;
    top: -4%;
    left: 50%;
    width: 520px;
    max-width: 90%;
    height: 150%;
    transform-origin: top center;
    transform: translateX(-50%) rotate(16deg);
    background: linear-gradient(180deg, rgba(234, 88, 12, 0.16), rgba(234, 88, 12, 0) 78%);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

/* Faint lighthouse watermark for dark (stone-900) sections */
.lighthouse-watermark {
    position: relative;
    overflow: hidden;
}
.lighthouse-watermark::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -48px;
    width: 300px;
    height: 300px;
    background: url('/assets/images/lighthouse.svg') no-repeat center / contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
.lighthouse-watermark > * {
    position: relative;
    z-index: 1;
}

/* Horizon divider with a centred lighthouse glyph */
.lighthouse-divider {
    padding: 2.5rem 1rem;
}
.lighthouse-divider-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 64rem;
    margin: 0 auto;
    color: var(--accent);
}
.lighthouse-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(120, 113, 108, 0), rgba(120, 113, 108, 0.4), rgba(120, 113, 108, 0));
}
.lighthouse-divider-glyph {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .light-beam,
    .beacon-glow {
        transition: none;
    }
}
