/* Landing page styles — uses custom properties from main.css */

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

html { scroll-behavior: smooth; }

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

/* ── Nav ─────────────────────────────────────────────────────── */
.pub-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    height: 64px;
    background: rgba(45, 48, 56, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pub-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.nttc-logo-img {
    height: 48px;
    width: 48px;
    border-radius: 8px;
    display: block;
}

.pub-nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.pub-nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

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

.pub-nav-cta {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: var(--color-accent);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s;
}

.pub-nav-cta:hover { background: var(--color-accent-dark); }

.pub-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.pub-nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 480px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 64px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: var(--space-xl);
    max-width: 720px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.hero-btn:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

.hero-controls {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hero-arrow:hover { background: rgba(0,0,0,0.6); }
.hero-arrow.prev { left: var(--space-lg); }
.hero-arrow.next { right: var(--space-lg); }

.hero-scroll-cue {
    position: absolute;
    bottom: var(--space-2xl);
    right: var(--space-xl);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Sections ────────────────────────────────────────────────── */
section { padding: 5rem var(--space-xl); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

/* ── Who We Are ──────────────────────────────────────────────── */
.who-we-are {
    background: var(--color-surface);
    text-align: center;
}

.who-we-are .section-inner { max-width: 760px; }

.who-we-are p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.who-we-are p:last-child { margin-bottom: 0; }

.badge {
    display: inline-block;
    background: var(--color-accent);
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: var(--space-lg);
}

/* ── What We Do ──────────────────────────────────────────────── */
.what-we-do { background: var(--color-bg); }

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--color-border);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ── Facility ────────────────────────────────────────────────── */
.facility { background: var(--color-surface); }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

/* ── Life slideshow ──────────────────────────────────────────── */
.life-section { background: var(--color-nav); }
.life-section .section-title,
.life-section .section-label { color: #fff; }
.life-section .section-label { color: var(--color-accent); }

.life-slideshow-wrap {
    position: relative;
    margin-top: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.life-slideshow {
    position: relative;
    height: 480px;
}

.life-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.life-slide.active { opacity: 1; }

.life-controls {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: var(--space-sm);
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-section { background: var(--color-bg); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.contact-item h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.contact-item p, .contact-item a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.6;
}

.contact-item a:hover { color: var(--color-text); }

/* ── Footer ──────────────────────────────────────────────────── */
.pub-footer {
    background: var(--color-nav);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: var(--space-xl);
    font-size: 0.85rem;
}

.pub-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.pub-footer a:hover { color: #fff; }

.pub-footer-credit {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    opacity: 0.45;
}

/* ── Mobile nav ──────────────────────────────────────────────── */
.pub-nav-login-mobile { display: none; }

@media (max-width: 768px) {
    .pub-nav { padding: 0 var(--space-lg); }
    .pub-nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #2d3038; padding: var(--space-lg); gap: var(--space-md); }
    .pub-nav-links.open { display: flex; }
    .pub-nav-hamburger { display: flex; }
    .pub-nav-cta { display: none; }
    .pub-nav-login-mobile { display: block; }
    .pub-nav-login-mobile a { color: var(--color-accent) !important; font-weight: 600; }

    section { padding: 3rem var(--space-lg); }

    .cards { grid-template-columns: 1fr 1fr; }
    .photo-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .life-slideshow { height: 260px; }

    .hero-arrow { display: none; }
    .hero-scroll-cue { display: none; }
}

@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .life-slide { transition: none; }
    html { scroll-behavior: auto; }
}
