/*
=================================================================
|   ARISTOS - Main Stylesheet
|   Version: 1.0
|   Primary Colors: Black (#000000), Metallic Gold (Gradient)
|   Fonts: Montserrat, Cinzel (for logo)
=================================================================
*/

/* --- 1. Root Variables & Foundational Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Cinzel:wght@700&display=swap');

:root {
    /* Color Palette */
    --color-black: #000000;
    --color-dark-bg: #121212;
    --color-light-bg: #1a1a1a;
    --color-primary-text: #E0E0E0;
    --color-secondary-text: #CCCCCC;
    --color-gold: #D4AF37;
    --gold-gradient: linear-gradient(45deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-logo: 'Cinzel', serif;
    
    /* Sizing & Spacing */
    --border-radius: 10px;
    --base-padding: 20px;
    --base-margin: 20px;
    
    /* Effects */
    --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
    --shadow-gold-hover: 0 0 35px rgba(212, 175, 55, 0.4);
    --transition-speed: 0.3s;
}

@media (min-width: 992px) {
    /* push hero content below fixed top bar + header */
    .hero { padding-top: 120px; }
    /* keep logo left, toggle right */
    .main-nav { justify-content: space-between; }
}

/* Use hamburger + dropdown on desktop too */
@media (min-width: 992px) {
    .nav-toggle { display: flex; }
}

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

html {
    scroll-behavior: smooth;
}

/* Lock page scroll when nav overlay is open */
body.nav-open { overflow: hidden; }

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-bg);
    color: var(--color-primary-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll from any overflowing element */
html, body {
    overflow-x: hidden;
}

/* Make media responsive by default */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Map wrapper safety */
.map-container {
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    display: block;
    border: 0;
}

/* --- 2. Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1.0em; }

p {
    margin-bottom: 1em;
}

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

a:hover {
    opacity: 0.8;
}

ul, ol {
    padding-left: var(--base-padding);
    margin-bottom: 1em;
}

li::marker {
    color: var(--color-gold);
}

blockquote {
    border-left: 4px solid var(--color-gold);
    padding-left: var(--base-padding);
    margin: var(--base-margin) 0;
    font-style: italic;
    color: var(--color-secondary-text);
}

hr {
    border: none;
    height: 2px;
    background-image: var(--gold-gradient);
    margin: calc(var(--base-margin) * 2) 0;
}

/* --- 3. Layout & Containers --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--base-padding);
}

.section {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--color-black);
}

.bg-light {
    background-color: var(--color-light-bg);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.mt-1 {
    margin-top: var(--base-margin);
}

.mb-1 {
    margin-bottom: var(--base-margin);
}

/* --- 4. Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    margin: 5px;
}

.btn-primary {
    background-image: var(--gold-gradient);
    background-size: 200% auto;
    color: var(--color-black);
    border-color: #BF953F;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: var(--shadow-gold-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    box-shadow: var(--shadow-gold);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-text {
    color: var(--color-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.btn-text i {
    margin-left: 8px;
    transition: transform var(--transition-speed) ease;
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* --- 4b. Accessibility: Focus Visible Styles --- */
/* Clear, consistent focus ring for keyboard users */
:where(a, button, .btn, .btn-text, input, select, textarea, .form-control, .nav-toggle, .testimonial-controls button, .social-link):focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

/* Ensure secondary buttons are clearly visible on focus */
.btn-secondary:focus-visible {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* --- 5. Form Elements --- */
.form-group {
    margin-bottom: var(--base-margin);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-secondary-text);
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 1em;
    color: var(--color-primary-text);
    background-color: var(--color-light-bg);
    border: 2px solid #333;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.form-control::placeholder {
    color: #666;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Apply form control styling to forms that don't use .form-control class explicitly */
.contact-form input,
.contact-form textarea,
.contact-form select,
.audit-form input,
.audit-form textarea,
.audit-form select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 1em;
    color: var(--color-primary-text);
    background-color: var(--color-light-bg);
    border: 2px solid #333;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.audit-form input:focus,
.audit-form textarea:focus,
.audit-form select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

/* Checkbox styling used in contact and audit forms */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: var(--color-light-bg);
    border: 2px solid #333;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--color-black);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.form-check {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1em;
    user-select: none;
}

.form-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-check label {
    cursor: pointer;
}

/* --- 5b. Top Bar --- */
.top-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1002;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0; gap: 10px;
}
.top-left .top-link { font-weight: 400; }
.top-right { display: flex; align-items: center; gap: 16px; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; color: var(--color-secondary-text); }
.icon-link i { color: var(--color-gold); }
.icon-link:hover { color: var(--color-gold); }
.icon-link span { font-weight: 400; }

/* --- 6. Header & Navigation --- */
.site-header {
    position: fixed;
    top: 36px; /* slimmer top bar offset */
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: transparent; /* let hero show through at top */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Subtle, premium state on scroll */
.site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255,255,255,0.10);
}

.site-header.scrolled .main-nav { padding: 8px 0; }

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0; /* just a little taller than the logo */
}

/* Centered logo with fancy nav */
.header-centered { position: relative; }
.header-centered .logo-container { z-index: 2; }
.header-centered .nav-menu { position: relative; z-index: 1; justify-content: center; }

@media (min-width: 992px) {
  .header-centered .nav-menu { padding-left: 0; padding-right: 0; }
}
.fancy-nav { align-items: center; }
.fancy-nav li { position: relative; }
.fancy-nav li + li::before {
    content: '·';
    color: #444;
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
}

.logo-container {
    flex-shrink: 0;
}

.logo-aristos {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 24px; /* reduce visual height */
    letter-spacing: 2px;
    background-image: linear-gradient(170deg, #D5B65B 0%, #A27E2F 30%, #F3E392 50%, #A98533 70%, #E3C873 100%);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 10px rgba(255, 215, 100, 0.4), 0px 1px 1px rgba(255, 245, 200, 0.5), 0px -1px 1px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--color-primary-text);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

/* tiny letter-spacing on hover for a crisp feel */
.nav-menu a:hover { letter-spacing: 0.3px; }
.nav-menu a:focus-visible { letter-spacing: 0; }

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 3px;
    background-image: var(--gold-gradient);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* small gold dot to reinforce active state */
.nav-menu a.active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-left: auto; /* push to the right in centered header layout */
    z-index: 3; /* above logo */
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-image: var(--gold-gradient);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* Hamburger to X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 576px) {
    .top-bar-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0; }
    .header-centered .logo-container { position: static; transform: none; }
    .main-nav { justify-content: space-between; }
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-cta {
        flex-direction: column;
    }
}

@media (min-width: 0px) {
    /* Fullscreen overlay menu for all viewports when active */
    .nav-menu {
        position: fixed;
        inset: 0;
        padding-top: 140px; /* clears top bar + header visually */
        background: rgba(0,0,0,0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 16px;
        visibility: hidden; opacity: 0; pointer-events: none;
        transition: opacity 200ms ease, visibility 200ms ease;
        z-index: 1200;
    }
    .nav-menu.active { visibility: visible; opacity: 1; pointer-events: auto; }
    .nav-menu li { margin: 0; }
    .nav-menu a { font-size: 1.05rem; padding: 8px 0; }
}

/* --- 7. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: none;
    background-color: var(--color-dark-bg);
    background-size: cover;
    background-position: center;
    margin-top: 0;
    padding-top: 96px; /* clear smaller top bar + header */
}

/* Subtle animated gradient overlay (GPU-friendly) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0; /* sits under .hero-overlay and content */
    background: linear-gradient(120deg,
        rgba(212, 175, 55, 0.10) 0%,
        rgba(255, 255, 255, 0.00) 30%,
        rgba(212, 175, 55, 0.07) 60%,
        rgba(255, 255, 255, 0.00) 100%
    );
    background-size: 300% 300%;
    animation: heroGradientMove 22s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
        background-position: 50% 50%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--color-primary-text);
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-note {
    margin-top: 12px;
    color: var(--color-secondary-text);
    font-size: 0.95em;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- 7b. Page Banner (used on inner pages like Projects) --- */
.page-banner {
    position: relative;
    padding: 140px 0 80px; /* clear fixed header */
    background-color: var(--color-dark-bg);
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(255, 255, 255, 0.00) 35%,
        rgba(212, 175, 55, 0.06) 70%,
        rgba(255, 255, 255, 0.00) 100%
    );
    background-size: 300% 300%;
    animation: heroGradientMove 22s ease-in-out infinite;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .page-banner::before { animation: none; background-position: 50% 50%; }
}

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.60) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1 { color: var(--color-primary-text); margin-bottom: 10px; }
.page-banner p { color: var(--color-secondary-text); font-size: 1.1em; }

/* --- 8. Value Proposition Section --- */
.section-header {
    margin-bottom: 50px;
}

.section-header p {
    font-size: 1.2em;
    color: var(--color-secondary-text);
}

/* Credibility section */
.credibility .credibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.credibility .cred-item {
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    padding: 28px;
    border: 2px solid; border-image: var(--gold-gradient) 1;
    text-align: center;
}
.credibility .cred-item i { font-size: 1.8em; color: var(--color-gold); margin-bottom: 10px; }
.credibility .cred-item h3 { margin-bottom: 8px; }
.credibility .cred-item p { color: var(--color-secondary-text); margin: 0; }

/* Dotted flow arrow separators */
.flow-arrow { height: 90px; display: grid; place-items: center; }
.flow-arrow::before {
    content: '';
    display: block;
    width: 2px; height: 72px;
    background: repeating-linear-gradient(to bottom, rgba(212,175,55,0.7) 0 6px, rgba(212,175,55,0.0) 6px 12px);
}
.flow-arrow::after {
    content: '';
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--color-gold);
    margin-top: -6px;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    transition: transform var(--transition-speed) ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5em;
    color: var(--color-gold);
    margin-bottom: 20px;
}

/* --- 9. Services Overview --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-gold);
    transition: transform var(--transition-speed) ease;
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2em;
    color: var(--color-gold);
    margin-bottom: 20px;
}

/* --- 10. Case Study Highlight --- */
.case-study-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.case-study-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-gold);
}

.overline {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--color-gold);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.case-study-results {
    margin: 20px 0 30px;
    list-style: none;
    padding: 0;
}

.case-study-results li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.case-study-results i {
    color: var(--color-gold);
    margin-right: 10px;
}

/* --- 11. Audit Form Section --- */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
}

.form-content {
    padding: 50px;
}

.form-wrapper {
    padding: 50px;
    background-color: var(--color-light-bg);
}

.audit-benefits {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.audit-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.audit-benefits i {
    color: var(--color-gold);
    margin-right: 15px;
}

/* --- 12. Testimonials --- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-gold);
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
    margin-bottom: 30px;
}

.testimonial-content {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    margin: 0;
    font-size: 0.9em;
    color: var(--color-secondary-text);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.testimonial-controls button {
    background-color: transparent;
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
    color: var(--color-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.testimonial-controls button:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-gold);
}

/* --- 13. Partners Section --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    text-align: center;
}

.partner-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
}

/* --- 14. Blog Preview --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    transition: transform var(--transition-speed) ease;
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background-image: var(--gold-gradient);
    background-size: 200% auto;
    color: var(--color-black);
    font-size: 0.8em;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.blog-content h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.blog-content p {
    margin-bottom: 20px;
}

/* --- 15. Newsletter Section --- */
.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

/* --- 16. Footer --- */
.site-footer {
    background-color: var(--color-black);
    padding: 80px 0 30px;
    border-top: 2px solid;
    border-image: var(--gold-gradient) 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo .logo-aristos {
    font-size: 32px;
    margin-bottom: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--color-secondary-text);
}

.footer-column ul li a:hover {
    color: var(--color-gold);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--color-gold);
    margin-right: 10px;
    margin-top: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-light-bg);
    color: var(--color-gold);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* --- 19. Project Process Timeline --- */
.project-process { position: relative; }

.process-timeline { position: relative; margin: 30px 0 0; }

.process-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0; bottom: 0;
    width: 2px;
    background-image: var(--gold-gradient);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 22px;
    margin-bottom: 18px;
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    border: 2px solid; border-image: var(--gold-gradient) 1;
}

.timeline-marker { position: relative; display: flex; align-items: center; justify-content: center; }

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 22px; top: 50%; transform: translate(-50%, -50%);
    width: 24px; height: 24px; border-radius: 50%;
    background-image: var(--gold-gradient);
    box-shadow: 0 0 0 6px rgba(212,175,55,0.15);
}

.marker-number {
    position: relative; z-index: 1;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--color-black);
    background-image: var(--gold-gradient);
}

.timeline-content h3 { margin-bottom: 8px; }

.timeline-duration {
    display: inline-block; margin-top: 10px; font-size: 0.9em;
    color: var(--color-gold);
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid rgba(212,175,55,0.4);
    background-color: rgba(212,175,55,0.08);
}

@media (max-width: 768px) {
    .timeline-item { grid-template-columns: 60px 1fr; }
    .process-timeline::before { left: 24px; }
    .timeline-marker::before { left: 18px; }
}

/* --- 17. Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    .case-study-content,
    .form-container,
    .newsletter-content {
        grid-template-columns: 1fr;
    }
    
    .case-study-image {
        order: -1;
    }
    
    .form-content,
    .form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 120px; /* account for top bar + header */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path var(--transition-speed) ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .top-bar-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0; }
    .header-centered .logo-container { position: static; transform: none; }
    .main-nav { justify-content: space-between; }
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-cta {
        flex-direction: column;
    }
}

/* Ensure desktop hamburger shows and hidden menu doesn't overlay content when closed */
@media (min-width: 0px) {
    /* Fullscreen overlay menu for all viewports when active */
    .nav-menu {
        position: fixed;
        inset: 0;
        padding-top: 140px; /* clears top bar + header visually */
        background: rgba(0,0,0,0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 16px;
        visibility: hidden; opacity: 0; pointer-events: none;
        transition: opacity 200ms ease, visibility 200ms ease;
        z-index: 1200;
    }
    .nav-menu.active { visibility: visible; opacity: 1; pointer-events: auto; }
    .nav-menu li { margin: 0; }
    .nav-menu a { font-size: 1.05rem; padding: 8px 0; }
}
