/* Think Hive - Corporate Website Styles */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --color-primary: #1a2744;
    --color-secondary: #2d3748;
    --color-accent: #d4a012;
    --color-accent-hover: #b8890f;
    --color-light: #f7f8fa;
    --color-white: #ffffff;
    --color-text: #4a5568;
    --color-text-light: #718096;
    --color-border: #e2e8f0;

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

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

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-accent-hover);
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

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

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

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo__icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo__icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-white);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    color: var(--color-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

.btn--white:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero__content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.hero__image--photo {
    aspect-ratio: 4/3;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255,255,255,0.15);
}

.hero__image--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero__image--photo:hover img {
    transform: scale(1.05);
}

.hero__image svg {
    width: 60%;
    height: 60%;
    fill: var(--color-accent);
    opacity: 0.9;
}

/* ========================================
   Cards
   ======================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

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

.card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card__icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.card__link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card__link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: var(--transition);
}

.card__link:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Stats
   ======================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 2rem;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.section--dark .stat__number {
    color: var(--color-accent);
}

.stat__label {
    font-size: 1rem;
    color: var(--color-text-light);
}

.section--dark .stat__label {
    color: rgba(255,255,255,0.8);
}

/* ========================================
   Features / Benefits
   ======================================== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature__icon {
    width: 70px;
    height: 70px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition);
}

.feature:hover .feature__icon {
    background: var(--color-accent);
}

.feature__icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-accent);
    transition: var(--transition);
}

.feature:hover .feature__icon svg {
    fill: var(--color-white);
}

.feature h4 {
    margin-bottom: 0.75rem;
}

.feature p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ========================================
   CTA Banner
   ======================================== */
.cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ========================================
   Page Header (for subpages)
   ======================================== */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    text-align: center;
    color: var(--color-white);
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb span {
    color: var(--color-accent);
}

/* ========================================
   Services Page
   ======================================== */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.service-block:nth-child(even) {
    direction: rtl;
}

.service-block:nth-child(even) > * {
    direction: ltr;
}

.service-block__content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-block__content p {
    margin-bottom: 1.5rem;
}

.service-block__list {
    list-style: none;
}

.service-block__list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.service-block__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.service-block__image {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-block__image svg {
    width: 50%;
    height: 50%;
    fill: var(--color-accent);
    opacity: 0.6;
}

/* ========================================
   About Page
   ======================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro__image {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-intro__image svg {
    width: 50%;
    height: 50%;
    fill: var(--color-accent);
    opacity: 0.6;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value {
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.value__icon {
    width: 80px;
    height: 80px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value__icon svg {
    width: 40px;
    height: 40px;
    fill: var(--color-accent);
}

.value h4 {
    margin-bottom: 0.75rem;
}

.team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
}

.team-member__photo {
    width: 150px;
    height: 150px;
    background: var(--color-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
}

.team-member__photo svg {
    width: 60px;
    height: 60px;
    fill: var(--color-text-light);
}

.team-member h4 {
    margin-bottom: 0.25rem;
}

.team-member__role {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ========================================
   References Page
   ======================================== */
.case-studies {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.case-study__image {
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.case-study__image svg {
    width: 80px;
    height: 80px;
    fill: var(--color-accent);
    opacity: 0.5;
}

.case-study__content {
    padding: 2rem;
}

.case-study__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.case-study h3 {
    margin-bottom: 1rem;
}

.case-study__meta {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.case-study__meta-item {
    text-align: center;
}

.case-study__meta-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.case-study__meta-item span {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

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

.client {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.client:hover {
    box-shadow: var(--shadow-md);
}

.client svg {
    width: 100px;
    height: 40px;
    fill: var(--color-text-light);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    background: var(--color-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item__icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
}

.contact-item__content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item__content p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

.contact-item__content a {
    color: var(--color-text);
}

.contact-item__content a:hover {
    color: var(--color-accent);
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 160, 18, 0.1);
}

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

.map {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand p {
    opacity: 0.8;
    margin-top: 1rem;
    max-width: 300px;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.footer__contact svg {
    width: 18px;
    height: 18px;
    fill: var(--color-accent);
    flex-shrink: 0;
}

.footer__bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__visual {
        order: 2;
        margin-top: 2rem;
    }

    .hero__image--photo {
        max-width: 400px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-block,
    .about-intro,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-block:nth-child(even) {
        direction: ltr;
    }

    .values,
    .team {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-study {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav__list {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav__list.active {
        display: flex;
    }

    .nav__link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__toggle {
        display: flex;
    }

    .hero__visual {
        display: none;
    }

    .cards,
    .features,
    .stats {
        grid-template-columns: 1fr;
    }

    .values,
    .team {
        grid-template-columns: 1fr;
    }

    .clients {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 8rem 0 4rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
    }

    .hero__buttons {
        flex-direction: column;
    }

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