/* ============================================================
   RED DIAMOND PROJECTS — Shared Stylesheet
   Brilliant. Professional. Affordable.
   ============================================================ */

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

:root {
    --red:        #c00000;
    --red-dark:   #9a0000;
    --black:      #111111;
    --white:      #ffffff;
    --gray-light: #f5f5f5;
    --gray-mid:   #dddddd;
    --gray-text:  #3a3a3a;
    --shadow-sm:  0 2px 6px rgba(0,0,0,0.04);
    --shadow-md:  0 12px 28px rgba(0,0,0,0.08);
    --radius:     20px;
    --radius-sm:  12px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--white);
    color: var(--black);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: 2.2rem; line-height: 1.15; }
h2 { font-size: 1.8rem; line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p, li { font-size: 1rem; }

/* ---------- NAVIGATION ---------- */
nav {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--black);
    text-decoration: none;
}
.logo span { color: var(--red); }
.tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--red);
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    list-style: none;
    font-size: 0.88rem;
}
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #222;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); border-bottom-color: var(--red); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 40px;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn:hover { background: #333; transform: translateY(-1px); }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ---------- PAGE HERO ---------- */
.page-hero {
    background: var(--gray-light);
    padding: 3rem 1rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-mid);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero h1 span { color: var(--red); }
.page-hero p {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    color: #2c2c2c;
}

/* ---------- CONTAINER ---------- */
.container {
    padding: 2.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
    text-align: center;
    margin-bottom: 1.75rem;
}
.section-title span { color: var(--red); }
.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    max-width: 600px;
    margin: -1rem auto 2rem;
    font-size: 0.97rem;
}

/* ---------- SERVICE GRID ---------- */
.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.service-item {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}
.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}
.item-icon {
    height: 100px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}
.item-content { padding: 1.25rem; }
.item-content h3 { margin-bottom: 0.5rem; }
.item-content p { color: var(--gray-text); font-size: 0.95rem; }

/* ---------- SECTOR NOTE / CALLOUT ---------- */
.sector-note {
    background: var(--gray-light);
    padding: 1.5rem 1.75rem;
    border-radius: 24px;
    margin: 2rem 0;
    text-align: center;
    border-left: 5px solid var(--red);
}
.sector-note strong { color: var(--red); }

/* ---------- HIGHLIGHT STRIP ---------- */
.highlight-strip {
    background: var(--red);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}
.highlight-strip h2 { color: var(--white); margin-bottom: 0.5rem; }
.highlight-strip p { color: rgba(255,255,255,0.88); max-width: 600px; margin: 0 auto 1.25rem; }

/* ---------- STATS ROW ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}
.stat-box {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}
.stat-box .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    display: block;
}
.stat-box .stat-label {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.25rem;
}

/* ---------- FEATURE LIST ---------- */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.feature-list li::before {
    content: "◆";
    color: var(--red);
    font-size: 0.7rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

/* ---------- TEAM / ABOUT CARDS ---------- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.team-card {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}
.team-card h3 { margin-bottom: 0.25rem; }
.team-card .role {
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.9rem; color: var(--gray-text); }

/* ---------- CONTACT FORM ---------- */
.contact-form {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- CONTACT INFO CARDS ---------- */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.contact-card {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-card .icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}
.contact-card h4 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-card p, .contact-card a {
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    font-size: 0.97rem;
}
.contact-card a:hover { color: var(--red); }

/* ---------- TWO-COLUMN LAYOUT ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/* ---------- FOOTER ---------- */
footer {
    background: #111;
    color: #bbb;
    padding: 2.5rem 1rem 1.5rem;
    text-align: center;
    font-size: 0.82rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--red); }
.footer-tagline {
    color: var(--red);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin-bottom: 1.25rem;
}
.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }
.footer-divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 1.25rem 0;
}
footer a { color: var(--red); text-decoration: none; }

/* ============================================================
   RESPONSIVE — TABLET (min-width: 600px)
   ============================================================ */
@media (min-width: 600px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .logo-area {
        flex-direction: row;
        gap: 0.75rem;
        align-items: baseline;
    }
    .tagline {
        border-left: 2px solid var(--red);
        padding-left: 0.75rem;
        font-size: 0.85rem;
    }
    .service-list { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
    .feature-list { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(4, 1fr); }
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — DESKTOP (min-width: 900px)
   ============================================================ */
@media (min-width: 900px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .service-list { grid-template-columns: repeat(3, 1fr); }
    .container { padding: 3.5rem 2rem; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: 1.2fr 1fr; }
}

@media (min-width: 1200px) {
    .service-list { grid-template-columns: repeat(4, 1fr); }
}
