/* 
   Clifton Website - Main Stylesheet 
   Theme: The Patent Office / Victorian Industrial
*/

:root {
    /* Color Palette */
    --color-bg: #F7F5F0;
    /* Aged Vellum */
    --color-text: #2B2B2B;
    /* Wrought Iron */
    --color-action: #4A9096;
    /* Oxidized Copper */
    --color-accent: #C89F57;
    /* Aged Brass */
    --color-grid: #E0E0E0;
    /* Drafting Pencil */
    --color-footer: #003366;
    /* Blueprint Navy */
    --color-white: #FFFFFF;

    /* Typography */
    --font-headline: 'Roboto Slab', serif;
    --font-body: 'JetBrains Mono', monospace;

    /* Spacing */
    --spacing-unit: 8px;
    --container-width: 1200px;
}

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

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

html {
    scroll-behavior: smooth;
}

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

    /* Advanced Engineering Grid */
    background-image:
        linear-gradient(var(--color-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* Vignette Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 60%, rgba(43, 43, 43, 0.05) 100%);
    pointer-events: none;
    z-index: 999;
}

a {
    color: var(--color-action);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    position: relative;
}

/* --- Animations --- */

/* Stamp In Effect (for Headlines) */
@keyframes stampIn {
    0% {
        opacity: 0;
        transform: scale(3);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.stamp-in {
    opacity: 0;
    /* Hidden initially */
}

.stamp-in.visible {
    animation: stampIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Draw Line Effect (for Borders/Dividers) */
@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.draw-line {
    position: relative;
}

.draw-line::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 2px;
    background: var(--color-text);
    width: 0;
    transition: width 1s ease-out;
}

.draw-line.visible::after {
    width: 100%;
}

/* Fade Up (for Body Text) */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
}

.fade-up.visible {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    /* Stagger after headline */
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
}

/* --- Components --- */

/* Figure Label */
.figure-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin-bottom: 2rem;
    background: var(--color-bg);
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

/* Dimension Lines (Technical Markings) */
.dimension-box {
    position: relative;
    padding: 2rem;
    border: 1px solid transparent;
    /* Placeholder for layout */
}

.dimension-box::before {
    /* Top Left Corner */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--color-text);
    border-left: 2px solid var(--color-text);
}

.dimension-box::after {
    /* Bottom Right Corner */
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--color-text);
    border-right: 2px solid var(--color-text);
}

/* Button */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    margin-top: 2rem;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-action);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--color-white);
    border-color: var(--color-action);
}

.btn:hover::before {
    transform: translateX(0);
}

/* --- Header --- */
header {
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--color-text);
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
}

.hero-visual {
    max-height: 400px;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    display: block;

    /* Paper Effect */
    border-radius: 2px;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.05);
}

header .btn {
    margin-top: 0;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
#hero {
    text-align: center;
    padding: 8rem 0;
}

#hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-align: center;
    /* Revert to center since logo is gone */
}

#hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #555;
}

.hero-audience {
    font-family: var(--font-headline);
    font-size: 1rem !important;
    /* Override generic p size if needed */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-action) !important;
    margin-bottom: 1rem !important;
    font-weight: 700;
}

/* Placeholders */
.placeholder-box {
    border: 2px dashed var(--color-grid);
    background: rgba(255, 255, 255, 0.5);
    padding: 4rem;
    margin: 2rem auto;
    max-width: 800px;
    font-family: var(--font-body);
    color: var(--color-action);
    text-align: center;
    position: relative;
}

.placeholder-box::before {
    content: "FIG X";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    opacity: 0.5;
}

.placeholder-text {
    text-align: center;
    font-family: var(--font-body);
    color: var(--color-action);
}

/* --- Feature Sections --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-content {
    padding: 2rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 1rem;
}

.feature-list li {
    position: relative;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.feature-list li::before {
    content: ">>";
    color: var(--color-accent);
    margin-right: 0.5rem;
    font-weight: bold;
}

.feature-visual {
    /* Removed background, border, height, and flex centering to let image flow naturally */
    display: block;
    margin: 0 auto;
    position: relative;
    /* Removed Blueprint lines inside visual */
}

.feature-visual img {
    max-height: 400px;
    /* Restored max-height per user request */
    max-width: 100%;
    width: auto;
    object-fit: contain;

    /* Paper Effect */
    /* background-color and padding removed per user request */
    border-radius: 2px;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.05);
}

/* --- Footer --- */
footer {
    background-color: var(--color-footer);
    color: var(--color-white);
    padding: 6rem 0;
    border-top: 4px solid var(--color-white);
    position: relative;
}

footer::before {
    /* Blueprint grid on footer */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

footer .figure-label {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

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

    .dimension-box::before,
    .dimension-box::after {
        display: none;
        /* Simplify on mobile */
    }
}