/* ============================================
   The Ideas Factory - Style Sheet
   Brand: Black + Gold Yellow + White
   ============================================ */

/* CSS Custom Properties */
:root {
    --black: #000000;
    --yellow: #FFD700;
    --yellow-dark: #E6C200;
    --yellow-light: #FFF3B0;
    --white: #FFFFFF;
    --grey-50: #FAFAFA;
    --grey-100: #F5F5F5;
    --grey-200: #EEEEEE;
    --grey-300: #E0E0E0;
    --grey-600: #757575;
    --grey-700: #616161;
    --grey-800: #424242;
    --grey-900: #212121;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--grey-900);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--black);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--yellow-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--grey-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .accent {
    color: var(--yellow);
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--yellow);
    border-radius: 50%;
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-800);
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--black);
}

.nav-menu a.active {
    color: var(--black);
}

.nav-cta {
    display: inline-block;
    background: var(--black);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background var(--transition);
}

.nav-cta:hover {
    background: var(--grey-800);
    color: var(--white) !important;
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    padding: 160px 0 100px;
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    max-width: 700px;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--yellow);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-small {
    padding: 140px 0 60px;
    background: var(--black);
    color: var(--white);
}

.hero-small h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.hero-small p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-yellow {
    background: var(--yellow);
    color: var(--black);
}

.btn-yellow:hover {
    background: var(--yellow-dark);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-black {
    background: var(--black);
    color: var(--white);
}

.btn-black:hover {
    background: var(--grey-800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-dark {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline-dark:hover {
    background: var(--black);
    color: var(--white);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-grey {
    background: var(--grey-50);
}

.section-black {
    background: var(--black);
    color: var(--white);
}

.section-black h2,
.section-black h3,
.section-black h4 {
    color: var(--white);
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header .overline {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--yellow-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--grey-700);
    max-width: 600px;
    margin: 0 auto;
}

.section-black .section-header p {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

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

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid var(--grey-200);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--yellow);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    color: var(--grey-700);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.card-dark {
    background: var(--grey-900);
    border-color: var(--grey-800);
    color: var(--white);
}

.card-dark h3 {
    color: var(--white);
}

.card-dark p {
    color: rgba(255,255,255,0.7);
}

.card-dark:hover {
    border-color: var(--yellow);
}

/* ============================================
   SECTOR STRIP
   ============================================ */
.sector-strip {
    padding: 60px 0;
    background: var(--grey-100);
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}

.sector-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.sector-item {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey-600);
    position: relative;
}

.sector-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

/* ============================================
   STATS
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 60px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey-600);
}

.section-black .stat-label {
    color: rgba(255,255,255,0.6);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: var(--black);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT / CONTENT BLOCKS
   ============================================ */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    margin-bottom: 24px;
}

.content-block p {
    color: var(--grey-700);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blockquote {
    border-left: 4px solid var(--yellow);
    padding: 24px 32px;
    margin: 40px 0;
    background: var(--grey-50);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--grey-800);
    line-height: 1.8;
}

.blockquote cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
}

/* ============================================
   SERVICE DETAIL PAGES
   ============================================ */
.service-intro {
    font-size: 1.2rem;
    color: var(--grey-700);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 60px;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--yellow);
    border-radius: 50%;
    margin-top: 10px;
}

.service-list h4 {
    margin-bottom: 8px;
}

.service-list p {
    color: var(--grey-700);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   SILVERBACKS / NETWORK
   ============================================ */
.network-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.network-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.network-card:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.network-card h4 {
    margin-bottom: 8px;
}

.network-card p {
    color: var(--grey-600);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.network-icon {
    width: 48px;
    height: 48px;
    background: var(--yellow-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.25rem;
}

/* ============================================
   SECTORS PAGE
   ============================================ */
.sector-card {
    padding: 48px 40px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--yellow);
    transform: scaleY(0);
    transition: transform var(--transition);
    transform-origin: top;
}

.sector-card:hover::before {
    transform: scaleY(1);
}

.sector-card:hover {
    box-shadow: var(--shadow);
}

.sector-card h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.sector-card p {
    color: var(--grey-700);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ============================================
   TRACK RECORD / TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--grey-300);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--yellow);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--grey-300);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yellow-dark);
    margin-bottom: 8px;
}

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

.timeline-item p {
    color: var(--grey-700);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--grey-800);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--grey-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--grey-900);
    background: var(--white);
    transition: border-color var(--transition);
    margin-bottom: 24px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-card {
    background: var(--grey-50);
    padding: 32px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--grey-200);
}

.contact-info-card h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.contact-info-card p {
    color: var(--grey-700);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.contact-info-card a {
    color: var(--black);
    font-weight: 600;
}

.contact-info-card a:hover {
    color: var(--yellow-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

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

.footer-brand .logo {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   ANIMATIONS (scroll-triggered via JS)
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   DROPDOWN NAV
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 12px 0;
    min-width: 220px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--grey-50);
    color: var(--black);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }
    .hero h1 { font-size: 2.75rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-bar { gap: 40px; }
    .network-areas { grid-template-columns: repeat(2, 1fr); }
}

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2.25rem; }
    .hero-small { padding: 110px 0 40px; }
    .hero-small h1 { font-size: 2rem; }
    .section { padding: 64px 0; }

    /* Mobile Nav */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 0;
        transition: right var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        align-items: flex-start;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        padding: 12px 0;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--grey-100);
    }

    .nav-cta {
        margin-top: 16px;
        width: 100%;
        text-align: center;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        min-width: auto;
    }

    .nav-dropdown .dropdown-menu a {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .stats-bar { flex-direction: column; gap: 32px; }
    .network-areas { grid-template-columns: 1fr; }

    .sector-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    .hero h1 { font-size: 1.85rem; }
    .container { padding: 0 16px; }
    .card { padding: 28px 24px; }
    .sector-card { padding: 32px 24px; }
}
