/* ========================================
   UJ Surplus — Brand Styles
   Palette: Terracotta + Sand
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C0603A;
    --color-terracotta-dark: #A04E2E;
    --color-terracotta-light: #D4845E;
    --color-sand: #F5E6D3;
    --color-sand-light: #FBF5EE;
    --color-sand-dark: #E8D5BF;
    --color-cream: #FDF8F3;
    --color-charcoal: #2C2420;
    --color-warm-gray: #6B5B53;
    --color-warm-gray-light: #9A8A82;
    --color-white: #FFFFFF;
    --color-overlay: rgba(44, 36, 32, 0.72);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-soft: 0 2px 12px rgba(44, 36, 32, 0.06);
    --shadow-medium: 0 4px 24px rgba(44, 36, 32, 0.10);
    --shadow-large: 0 8px 40px rgba(44, 36, 32, 0.14);
    --shadow-card: 0 2px 16px rgba(44, 36, 32, 0.08);
    --shadow-card-hover: 0 8px 32px rgba(44, 36, 32, 0.14);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 700;
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 16px;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--color-charcoal);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(192, 96, 58, 0.10);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-warm-gray);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--color-terracotta);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(192, 96, 58, 0.30);
}
.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(192, 96, 58, 0.40);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-terracotta);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(253, 248, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192, 96, 58, 0.10);
    transition: box-shadow var(--transition-base);
}
.header.scrolled {
    box-shadow: var(--shadow-medium);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-terracotta);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-charcoal);
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--color-warm-gray);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.nav-list a:hover {
    color: var(--color-terracotta);
    background: rgba(192, 96, 58, 0.08);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.nav-toggle:hover {
    background: rgba(192, 96, 58, 0.08);
}
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 50%;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 50%;
    top: auto;
}

.hamburger {
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: all var(--transition-base);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: all var(--transition-base);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 32, 0.88) 0%,
        rgba(160, 78, 46, 0.72) 50%,
        rgba(44, 36, 32, 0.85) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, var(--color-white) 1px, transparent 0);
    background-size: 32px 32px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-sand);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-headline .accent {
    color: var(--color-sand);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(245, 230, 211, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 230, 211, 0.80);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 230, 211, 0.50);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245, 230, 211, 0.50), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    border: 1px solid rgba(192, 96, 58, 0.06);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(192, 96, 58, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 96, 58, 0.10);
    color: var(--color-terracotta);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-warm-gray);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--color-sand-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-large);
}
.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 4px solid var(--color-sand-light);
}
.about-img-secondary img {
    width: 100%;
    display: block;
}

.about-badge {
    position: absolute;
    top: -16px;
    left: -16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(192, 96, 58, 0.35);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-warm-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0 40px;
    padding: 24px 0;
    border-top: 1px solid var(--color-sand-dark);
    border-bottom: 1px solid var(--color-sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-terracotta);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-warm-gray);
    font-weight: 600;
}

/* --- Why --- */
.why {
    padding: 100px 0;
    background: var(--color-cream);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.why-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(192, 96, 58, 0.06);
    transition: all var(--transition-base);
}
.why-item:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(192, 96, 58, 0.15);
    transform: translateY(-2px);
}

.why-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--color-sand-dark);
    line-height: 1;
    align-self: start;
}

.why-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.why-item p {
    font-size: 0.95rem;
    color: var(--color-warm-gray);
    line-height: 1.7;
}

/* --- Testimonial --- */
.testimonial {
    padding: 100px 0;
    background: var(--color-charcoal);
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, var(--color-white) 1px, transparent 0);
    background-size: 28px 28px;
}

.testimonial-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 0.8;
    color: var(--color-terracotta);
    opacity: 0.4;
    margin-bottom: -24px;
    user-select: none;
}

.testimonial blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: var(--color-sand);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 96, 58, 0.20);
    color: var(--color-terracotta-light);
    border-radius: 50%;
}

.author-name {
    font-weight: 800;
    color: var(--color-white);
    font-size: 0.95rem;
}

.author-location {
    font-size: 0.85rem;
    color: var(--color-warm-gray-light);
}

/* --- Visit / Contact --- */
.visit {
    padding: 100px 0;
    background: var(--color-sand-light);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit-info .section-title {
    margin-bottom: 16px;
}

.visit-desc {
    font-size: 1.05rem;
    color: var(--color-warm-gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(192, 96, 58, 0.06);
    transition: all var(--transition-base);
    text-decoration: none;
}
.contact-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: rgba(192, 96, 58, 0.18);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 96, 58, 0.10);
    color: var(--color-terracotta);
    border-radius: var(--radius-sm);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-warm-gray-light);
}

.contact-value {
    font-weight: 700;
    color: var(--color-charcoal);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-card > svg {
    color: var(--color-warm-gray-light);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.contact-card:hover > svg {
    transform: translateX(4px);
    color: var(--color-terracotta);
}

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    min-height: 420px;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* --- Footer --- */
.footer {
    background: var(--color-charcoal);
    color: var(--color-sand);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    margin-top: 16px;
    color: var(--color-warm-gray-light);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta-light);
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.95rem;
    color: var(--color-warm-gray-light);
    transition: color var(--transition-fast);
    line-height: 1.5;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.10);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-warm-gray-light);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal-state="hidden"] {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal[data-reveal-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid,
    .visit-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(253, 248, 243, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(192, 96, 58, 0.12);
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-list a {
        width: 100%;
        padding: 12px 14px;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-trust {
        gap: 16px;
    }

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

    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }
    .about-img-secondary {
        right: -8px;
        bottom: -20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-item {
        grid-template-columns: 52px 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-headline {
        font-size: 2rem;
    }
    .service-card {
        padding: 28px 22px;
    }
    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
}
</style>
