/* ============================
   AOMEL — Main Stylesheet
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
    --color-bg:        #FFFFFF;
    --color-surface:   #FFFFFF;
    --color-border:    #D4D4D4;
    --color-text:      #303840;
    --color-muted:     #766B5D;
    --color-accent:    #2F9D6A;
    --color-accent-lt: #E5F8EB;
    --color-highlight: #226FA8;
    --color-orange:    #247C58;
    --color-sky:       #69B7D8;
    --shadow-soft:     0 14px 32px rgba(0, 0, 0, 0.1);
    --shadow-pop:      0 18px 36px rgba(34, 111, 168, 0.16);

    --font-display: 'Zen Maru Gothic', system-ui, sans-serif;
    --font-body:    'M PLUS Rounded 1c', system-ui, sans-serif;

    --max-w: 1140px;
    --radius: 999px;
    --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 400;
}

/* ============================
   HEADER
   ============================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 248, 234, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text);
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: min(240px, 38vw);
    height: 44px;
    object-fit: contain;
}

.site-logo.site-logo-has-image::after {
    display: none;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: clamp(0.8rem, 1.35vw, 1.7rem);
}

.site-nav a {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.header-cta {
    flex: 0 0 auto;
    padding: 0.62rem 1.15rem;
    font-size: 0.76rem;
    white-space: nowrap;
}

.nav-toggle { display: none; }

/* ============================
   HERO
   ============================ */
.hero {
    position: relative;
    min-height: max(560px, 65vh);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: #e8f3fa;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 7rem 2rem 7rem;
    max-width: 680px;
    margin-left: max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    background: var(--color-orange);
    border-radius: var(--radius);
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 0.98rem;
    color: var(--color-muted);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.82rem 2.1rem;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    font-family: var(--font-body);
    font-weight: 700;
}

.btn:focus-visible,
.feature-link:focus-visible,
.site-logo:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible {
    outline: 3px solid #1F5F43;
    outline-offset: 3px;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
    box-shadow: 0 8px 18px rgba(47,157,106,0.26);
}

.btn-primary:hover {
    background: #24875A;
    border-color: #24875A;
    box-shadow: var(--shadow-pop);
    transform: translateY(-3px);
}

.btn-outline {
    background: #FFFFFF;
    color: #1D6849;
    border: 2px solid #1D6849;
}

.btn-outline:hover {
    border-color: #1D6849;
    color: #FFFFFF;
    background: #1D6849;
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-muted);
}

.scroll-line {
    width: 1px;
    height: 28px;
    background: var(--color-muted);
    animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================
   SECTION COMMON
   ============================ */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: #f7fafc;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--color-orange);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-title {
    display: inline-block;
    position: relative;
    z-index: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0.1em;
    right: 0.1em;
    bottom: 0.05em;
    z-index: -1;
    height: 0.35em;
    border-radius: var(--radius);
    background: rgba(247,183,51,0.36);
}
