/* =============================================
   AJR Supply — Modern Industrial Supply Website
   Colors: Teal (#0D9488) + Slate Grey (#1E293B)
   ============================================= */

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

:root {
    --teal:        #0D9488;
    --teal-dark:   #0F766E;
    --teal-light:  #99F6E4;
    --teal-50:     #F0FDFA;
    --slate:       #1E293B;
    --slate-mid:   #334155;
    --slate-light: #94A3B8;
    --slate-100:   #F1F5F9;
    --slate-200:   #E2E8F0;
    --white:       #FFFFFF;
    --bg:          #F8FAFC;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    --radius:      12px;
    --radius-lg:   20px;
    --shadow:      0 4px 24px rgba(30,41,59,0.08);
    --shadow-lg:   0 12px 48px rgba(30,41,59,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--slate);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: var(--teal); color: var(--white);
    padding: 8px 16px; border-radius: var(--radius);
    z-index: 200; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- HEADER ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow); }

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

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700; font-size: 1.25rem; color: var(--slate);
}
.logo-accent { color: var(--teal); }

.nav ul { display: flex; gap: 32px; }
.nav a {
    font-weight: 500; font-size: 0.938rem; color: var(--slate-mid);
    position: relative; transition: color 0.2s;
}
.nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--teal);
    transition: width 0.25s ease;
}
.nav a:hover { color: var(--teal); }
.nav a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; z-index: 110;
}
.nav-toggle-bar {
    display: block; width: 24px; height: 2px;
    background: var(--slate); border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--white); border-bottom: 1px solid var(--slate-200);
        padding: 24px; transform: translateY(-120%);
        transition: transform 0.35s ease;
        box-shadow: var(--shadow);
    }
    .nav.open { transform: translateY(0); }
    .nav ul { flex-direction: column; gap: 20px; }
    .nav a { font-size: 1.1rem; }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px;
    background: var(--slate);
    overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.geo-circle {
    position: absolute; border-radius: 50%;
    background: var(--teal); opacity: 0.07;
}
.geo-circle--1 { width: 600px; height: 600px; top: -150px; right: -100px; }
.geo-square {
    position: absolute;
    background: var(--teal); opacity: 0.05;
    transform: rotate(45deg);
}
.geo-square--1 { width: 200px; height: 200px; bottom: 10%; left: 5%; }
.geo-diamond {
    position: absolute;
    background: var(--teal-light); opacity: 0.06;
    transform: rotate(30deg); border-radius: 8px;
}
.geo-diamond--1 { width: 120px; height: 120px; top: 20%; left: 15%; }
.geo-triangle {
    position: absolute;
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid var(--teal);
    opacity: 0.05;
}
.geo-triangle--1 { bottom: 15%; right: 25%; transform: rotate(-20deg); }

.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    position: relative; z-index: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(13,148,136,0.15); color: var(--teal-light);
    padding: 8px 16px; border-radius: 100px;
    font-size: 0.813rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700; line-height: 1.1;
    color: var(--white); margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.125rem; line-height: 1.7;
    color: var(--slate-light); margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-weight: 600;
    font-size: 0.938rem; padding: 14px 28px;
    border-radius: var(--radius); transition: all 0.25s ease;
}
.btn-primary {
    background: var(--teal); color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.35); }
.btn-secondary {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-light {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.063rem; }
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; gap: 24px; align-items: center; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
    font-family: var(--font-heading); font-size: 1.5rem;
    font-weight: 700; color: var(--white);
}
.hero-stat-label {
    font-size: 0.813rem; color: var(--slate-light);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-stat-divider {
    width: 1px; height: 40px;
    background: rgba(255,255,255,0.15);
}

.hero-image-wrap { position: relative; }
.hero-image-frame {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 600/720;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-floating-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: var(--white); padding: 14px 20px;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    font-weight: 600; font-size: 0.875rem; color: var(--slate);
    z-index: 2;
}
.hero-floating-card--1 { bottom: 15%; left: -32px; }
.hero-floating-card--2 { top: 12%; right: -24px; }
.floating-card-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--teal-50); display: flex;
    align-items: center; justify-content: center;
    color: var(--teal); flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-image-wrap { max-width: 480px; }
    .hero-floating-card--1 { left: 0; }
    .hero-floating-card--2 { right: 0; }
    .geo-circle--1 { width: 400px; height: 400px; }
}
@media (max-width: 480px) {
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-stats { gap: 16px; }
}

/* ---------- SECTION COMMON ---------- */
.section { padding: 100px 0; }
.section-label {
    display: inline-block; font-size: 0.813rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700; line-height: 1.15;
    color: var(--slate); margin-bottom: 20px;
}
.section-desc {
    font-size: 1.063rem; color: var(--slate-mid);
    max-width: 600px; line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-desc { margin: 0 auto; }

/* ---------- ABOUT ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.about-visual { position: relative; }
.about-img-stack { position: relative; }
.about-img-main {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
    position: absolute; bottom: -24px; right: -24px;
    display: flex; gap: 8px; z-index: -1;
}
.accent-block {
    width: 80px; height: 80px; border-radius: var(--radius);
}
.accent-block--teal { background: var(--teal); }
.accent-block--slate { background: var(--slate); }

.about-year-badge {
    position: absolute; top: -20px; left: -20px;
    background: var(--slate); color: var(--white);
    padding: 20px 24px; border-radius: var(--radius);
    display: flex; flex-direction: column;
}
.about-year-num {
    font-family: var(--font-heading); font-size: 1.5rem;
    font-weight: 700; line-height: 1;
}
.about-year-label { font-size: 0.813rem; color: var(--slate-light); margin-top: 4px; }

.about-content p {
    color: var(--slate-mid); font-size: 1.063rem;
    line-height: 1.75; margin-bottom: 16px;
}
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-features li {
    display: flex; align-items: center; gap: 12px;
    font-weight: 500; color: var(--slate);
}
.check-icon { flex-shrink: 0; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { max-width: 480px; }
}

/* ---------- PRODUCTS ---------- */
.products {
    position: relative; background: var(--bg); overflow: hidden;
}
.products-bg-accent {
    position: absolute; top: 0; right: 0;
    width: 40%; height: 100%;
    background: linear-gradient(135deg, rgba(13,148,136,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    position: relative; background: var(--white);
    border-radius: var(--radius-lg); padding: 40px 32px;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease; overflow: hidden;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--teal);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { transform: scaleX(1); }

.product-card-accent {
    position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--teal); opacity: 0.04;
    transition: opacity 0.3s;
}
.product-card:hover .product-card-accent { opacity: 0.08; }

.product-card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--teal-50); display: flex;
    align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.188rem; font-weight: 700;
    color: var(--slate); margin-bottom: 12px;
}
.product-card p { color: var(--slate-mid); font-size: 0.938rem; line-height: 1.7; }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ---------- SERVICES ---------- */
.services { background: var(--white); }
.services-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.services-visual { position: relative; }
.services-img-block {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.services-img-block img { width: 100%; height: 100%; object-fit: cover; }
.services-geo-accent {
    position: absolute; bottom: -32px; left: -32px;
    z-index: -1;
}
.geo-accent-circle {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--teal); opacity: 0.12;
}
.geo-accent-square {
    width: 60px; height: 60px; border-radius: var(--radius);
    background: var(--slate); opacity: 0.08;
    margin-top: -20px; margin-left: 40px;
}

.services-content p { color: var(--slate-mid); font-size: 1.063rem; line-height: 1.75; margin-bottom: 40px; }
.services-intro { margin-bottom: 40px; }

.service-list { display: flex; flex-direction: column; gap: 32px; }
.service-item { display: flex; gap: 24px; }
.service-num {
    font-family: var(--font-heading); font-size: 2rem;
    font-weight: 700; color: var(--teal); opacity: 0.3;
    line-height: 1; flex-shrink: 0;
}
.service-title {
    font-family: var(--font-heading); font-size: 1.125rem;
    font-weight: 700; color: var(--slate); margin-bottom: 6px;
}
.service-desc { color: var(--slate-mid); font-size: 0.938rem; line-height: 1.65; }

@media (max-width: 900px) {
    .services-layout { grid-template-columns: 1fr; gap: 48px; }
    .services-visual { max-width: 480px; order: -1; }
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    position: relative; background: var(--slate);
    padding: 88px 0; overflow: hidden;
}
.cta-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta-geo { position: absolute; }
.cta-geo--circle {
    width: 300px; height: 300px; border-radius: 50%;
    background: var(--teal); opacity: 0.08;
    top: -80px; left: -60px;
}
.cta-geo--square {
    width: 160px; height: 160px; border-radius: var(--radius);
    background: var(--teal-light); opacity: 0.06;
    transform: rotate(30deg); bottom: -40px; right: 10%;
}
.cta-geo--diamond {
    width: 100px; height: 100px; border-radius: 8px;
    background: var(--teal); opacity: 0.07;
    transform: rotate(45deg); top: 20%; right: 25%;
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; position: relative; z-index: 1;
    flex-wrap: wrap;
}
.cta-content { max-width: 520px; }
.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700; color: var(--white);
    line-height: 1.2; margin-bottom: 16px;
}
.cta-desc { color: var(--slate-light); font-size: 1.063rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
}

/* ---------- CONTACT ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

.contact-info p { color: var(--slate-mid); font-size: 1.063rem; line-height: 1.75; margin-bottom: 40px; }
.contact-intro { margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 28px; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--teal-50); display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-detail-label {
    display: block; font-size: 0.813rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--slate-light); margin-bottom: 4px;
    font-weight: 600;
}
.contact-detail-value {
    display: block; font-weight: 600; color: var(--slate);
    font-size: 1rem; line-height: 1.5;
}
.contact-link { color: var(--teal); transition: color 0.2s; }
.contact-link:hover { color: var(--teal-dark); }

.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Form */
.contact-form-wrap {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow);
    border: 1px solid var(--slate-200);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600; font-size: 0.875rem;
    color: var(--slate); margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius); font-family: var(--font-body);
    font-size: 0.938rem; color: var(--slate);
    background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-light); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
    text-align: center; padding: 48px 24px;
}
.success-icon { margin-bottom: 20px; }
.success-title {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 700;
    color: var(--slate); margin-bottom: 12px;
}
.success-text { color: var(--slate-mid); font-size: 1rem; line-height: 1.7; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
    .contact-form-wrap { padding: 24px; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--slate); color: var(--slate-light); padding: 64px 0 0; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { color: var(--white); }
.footer-tagline {
    margin-top: 16px; font-size: 0.938rem;
    line-height: 1.7; max-width: 320px;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
    color: var(--slate-light); font-size: 0.938rem;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal-light); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-phone, .footer-email {
    color: var(--white); font-weight: 600; font-size: 0.938rem;
    transition: color 0.2s;
}
.footer-phone:hover, .footer-email:hover { color: var(--teal-light); }
.footer-address { font-size: 0.875rem; }
.footer-bottom {
    padding: 24px 0; text-align: center;
    font-size: 0.813rem; color: rgba(148,163,184,0.6);
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
