/* ============================================
   ABUNDION — Website Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #111113;
    --bg-secondary: #1a1a1c;
    --bg-card: #222224;
    --border: #2e2e32;
    --text-primary: #e8e8ed;
    --text-secondary: #9898a8;
    --gold: #c9a84c;
    --gold-light: #d9bc6a;
    --gold-dim: #a08a40;
    --nav-height: 88px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-light);
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(17, 17, 19, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 58px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

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

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    margin-top: var(--nav-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.06em;
}

/* --- Content Sections --- */
.section {
    padding: 5rem clamp(1.5rem, 5vw, 4rem);
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Founded Section --- */
.founded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.founded-image {
    border-radius: 8px;
    overflow: hidden;
}

.founded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.founded-text h2 {
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.founded-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
}

/* --- Image Divider --- */
.image-divider {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.image-divider img {
    width: 100%;
    border-radius: 8px;
    max-height: 360px;
    object-fit: cover;
}

/* --- Core Values Banner --- */
.values-banner {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.values-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.values-banner-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(17, 17, 19, 0.25) 0%,
        rgba(17, 17, 19, 0.55) 55%,
        rgba(17, 17, 19, 0.95) 100%
    );
}

.values-banner-title {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-top: 2.5rem;
}

/* --- Values List (no boxes) --- */
.section-values {
    padding-top: 2rem;
}

.values-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

.value-item h3 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* --- Core Values Section (boxed) --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
}

.value-card h3 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* --- Contact Page --- */
.contact-layout {
    margin-top: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 4rem;
    gap: 3rem;
    align-items: start;
}

.contact-image {
    position: relative;
    align-self: center;
}

.contact-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 75%);
}

.contact-content {
    max-width: 500px;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: transparent;
    color: var(--gold);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--gold);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    width: 100%;
}

.form-submit:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.form-submit:active {
    transform: scale(0.98);
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.form-status.success {
    color: #6fcf97;
}

.form-status.error {
    color: #eb5757;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

footer span {
    color: var(--gold-dim);
}

.footer-credit {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(17, 17, 19, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        height: 50vh;
        min-height: 300px;
    }

    h1 {
        font-size: 2rem;
    }

    .founded {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
