/* ============================================
   NORTHPOINT — Digital Agency
   Clean, corporate, modern
   ============================================ */

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

:root {
    --white: #ffffff;
    --off-white: #f8f8f8;
    --gray-50: #f3f4f6;
    --gray-100: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-glow: rgba(37, 99, 235, 0.1);
    --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

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

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--blue);
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.header__nav {
    display: flex;
    gap: 28px;
}

.header__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s;
}

.header__link:hover,
.header__link--active { color: var(--gray-900); }

.header__cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--blue);
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.header__cta:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-900);
    transition: all 0.3s;
    transform-origin: center;
}

.burger--active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.burger--active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn--primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--blue-glow);
}

.btn--secondary {
    background: var(--gray-50);
    color: var(--gray-900);
}

.btn--secondary:hover {
    background: var(--gray-100);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--white);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero__title span { color: var(--blue); }

.hero__subtitle {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ============================================
   CLIENTS
   ============================================ */

.clients {
    padding: 60px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.clients__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.clients__logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.clients__logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 0.02em;
}

/* ============================================
   SERVICES PREVIEW
   ============================================ */

.services-preview {
    padding: 120px 0;
    background: var(--off-white);
}

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

.service-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 36px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-item:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 30px var(--blue-glow);
    transform: translateY(-4px);
}

.service-item__number {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 16px;
}

.service-item__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-item__text {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

.services-preview__cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   WORK
   ============================================ */

.work {
    padding: 120px 0;
    background: var(--white);
}

.work__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.work-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--off-white);
    transition: transform 0.4s, box-shadow 0.4s;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.work-card--large {
    grid-column: span 2;
}

.work-card__image {
    overflow: hidden;
}

.work-card--large .work-card__image { aspect-ratio: 16/7; }
.work-card:not(.work-card--large) .work-card__image { aspect-ratio: 4/3; }

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-card:hover .work-card__image img {
    transform: scale(1.03);
}

.work-card__info {
    padding: 24px;
}

.work-card__tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
    display: inline-block;
}

.work-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.work-card__desc {
    font-size: 15px;
    color: var(--gray-500);
}

/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial {
    padding: 100px 0;
    background: var(--gray-900);
    color: var(--white);
}

.testimonial__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial__quote {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 28px;
    color: var(--gray-100);
}

.testimonial__author strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial__author span {
    font-size: 14px;
    color: var(--gray-400);
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    padding: 120px 0;
    background: var(--off-white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__text {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__details strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 4px;
}

.contact__details p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

.contact__details a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
}

.contact__details a:hover { color: var(--blue); }

/* Form */
.contact__form {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 40px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 15px;
    color: var(--gray-900);
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    padding: 12px 14px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-success {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
    margin-top: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
}

.form-success--show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 60px 0 32px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer .logo-mark {
    background: var(--blue);
}

.footer .logo-text {
    color: var(--white);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer__desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer__nav h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer__nav ul {
    list-style: none;
}

.footer__nav li {
    margin-bottom: 10px;
}

.footer__nav a {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer__bottom {
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */

.page-hero {
    padding: 160px 0 80px;
    background: var(--gray-900);
    color: var(--white);
    text-align: center;
}

.page-hero .section-title {
    color: var(--white);
    font-size: clamp(36px, 5vw, 56px);
}

.page-hero .section-tag {
    color: var(--blue);
}

.page-hero__desc {
    font-size: 17px;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   SERVICES PAGE GRID
   ============================================ */

.services-page {
    padding: 100px 0;
    background: var(--off-white);
}

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

.service-detail {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 40px;
}

.service-detail__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--blue-glow);
    color: var(--blue);
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-detail__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-detail__text {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.service-detail__list li {
    font-size: 14px;
    color: var(--gray-500);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.service-detail__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 600;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-section {
    padding: 100px 0;
}

.about-section--alt { background: var(--off-white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-grid__image img {
    width: 100%;
    border-radius: 12px;
}

.about-grid__content p {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    text-align: center;
    padding: 32px 20px;
}

.value-card__icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.value-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card__text {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__visual { order: -1; }

    .services-preview__grid,
    .services-page__grid {
        grid-template-columns: 1fr;
    }

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

    .work-card--large { grid-column: span 1; }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 48px auto 0;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
    }

    .header__nav--open {
        opacity: 1;
        pointer-events: all;
    }

    .header__nav--open .header__link {
        font-size: 20px;
        color: var(--gray-900);
    }

    .header__cta { display: none; }
    .burger { display: flex; }

    .hero { padding-top: 110px; padding-bottom: 60px; }

    .clients__logos { gap: 24px; }
    .clients__logo { font-size: 16px; }

    .services-preview { padding: 80px 0; }
    .work { padding: 80px 0; }
    .contact { padding: 80px 0; }

    .contact__form { padding: 28px 20px; }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__desc { max-width: 100%; }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

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