/* ================================================================
   Harbour Point Digital — Main Stylesheet
   ================================================================ */

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

html {
    scroll-behavior: smooth;
}

/* ── Design Tokens ── */
:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-text: #f5f5f5;
    --color-text-secondary: #d4d4d4;
    --color-text-muted: #b0b0b0;
    --color-border: #2e2e2e;
    --color-blue: #386bb7;
    --color-blue-hover: #4a7dcf;
    --color-blue-light: rgba(56, 107, 183, 0.12);
    --color-red: #e24c4a;
    --font: 'Montserrat', sans-serif;
    --radius: 4px;
    --max-width: 1200px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    background-color: var(--color-blue);
    color: #ffffff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(56, 107, 183, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-blue-hover);
    box-shadow: 0 4px 16px rgba(56, 107, 183, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ── Floating CTA ── */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 90;
    background-color: var(--color-blue);
    color: #ffffff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(56, 107, 183, 0.35);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.floating-cta:hover {
    background-color: var(--color-blue-hover);
    box-shadow: 0 6px 28px rgba(56, 107, 183, 0.45);
    transform: translateY(-2px);
}

.floating-cta:active {
    transform: translateY(0) scale(0.97);
}

/* ── Section Label ── */
.section-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* ── Section Animations ── */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    border-bottom: 1px solid transparent;
    background-color: rgba(10, 10, 10, 0);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
    background-color: rgba(10, 10, 10, 0.92);
    border-bottom-color: var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-logo img {
    height: 36px;
    width: auto;
    filter: invert(1) brightness(2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 48px 80px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

/* Hero glow effects */
.hero-glow {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 107, 183, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-secondary {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 107, 183, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 10s ease-in-out 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Floating accent shapes */
.hero-accent {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.hero-accent-1 {
    top: 15%;
    right: 18%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(56, 107, 183, 0.1);
    border-radius: 50%;
    animation: floatSlow 12s ease-in-out infinite;
}

.hero-accent-2 {
    bottom: 22%;
    right: 30%;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(56, 107, 183, 0.15), transparent);
    animation: floatSlow 9s ease-in-out 1s infinite;
}

.hero-accent-3 {
    top: 30%;
    left: 42%;
    width: 6px;
    height: 6px;
    background: rgba(56, 107, 183, 0.2);
    border-radius: 50%;
    animation: floatSlow 7s ease-in-out 3s infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* Grid overlay for the hero background */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(56, 107, 183, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 107, 183, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 20%, transparent 70%);
}

/* Hero label above headline */
.hero-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-text {
    flex: 0 0 58%;
    max-width: 58%;
    position: relative;
    z-index: 2;
}

.hero-svg-wrap {
    flex: 0 0 42%;
    max-width: 42%;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 900;
    font-size: 68px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-sub {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-cta {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-note {
    font-weight: 400;
    font-size: 15px;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero accent line */
.hero-accent-line {
    width: 40px;
    height: 3px;
    background: var(--color-blue);
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-num {
    font-weight: 800;
    font-size: 22px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-weight: 400;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--color-border);
}

/* SVG pulse animation */
.hero-pulse {
    animation: pulseDrift 4s ease-in-out infinite;
}

.hero-pulse:nth-child(2) {
    animation-delay: 1.5s;
}

.hero-pulse:nth-child(3) {
    animation-delay: 3s;
}

@keyframes pulseDrift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
    padding: 100px 48px;
    background: var(--color-bg-alt);
}

.about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about h2 {
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.about p {
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.75;
    max-width: 720px;
}

/* ================================================================
   SERVICES
   ================================================================ */
.services {
    padding: 100px 48px;
    background: var(--color-bg);
}

.services-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.services-header {
    margin-bottom: 56px;
}

.services-header h2 {
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.03em;
}

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

.service-card {
    padding: 40px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.service-card:hover {
    border-color: var(--color-blue);
    box-shadow: 0 2px 16px rgba(56, 107, 183, 0.15);
}

.service-num {
    font-weight: 800;
    font-size: 18px;
    color: var(--color-blue);
    margin-bottom: 14px;
}

.service-card h3 {
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.service-card p {
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

/* ================================================================
   PACKAGES
   ================================================================ */
.packages {
    padding: 100px 48px;
    background: var(--color-bg-alt);
}

.packages-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.packages-header {
    margin-bottom: 56px;
}

.packages-header h2 {
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.packages-header p {
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 540px;
}

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

.package-card {
    padding: 40px;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.package-card:hover {
    border-color: var(--color-blue);
    box-shadow: 0 2px 16px rgba(56, 107, 183, 0.15);
}

.package-card h3 {
    font-weight: 700;
    font-size: 21px;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.package-descriptor {
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-style: italic;
}

.package-card ul {
    list-style: none;
    flex: 1;
}

.package-card li {
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text-secondary);
    padding: 9px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.package-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-blue);
    opacity: 0.5;
}

/* ================================================================
   WORK / CASE STUDIES
   ================================================================ */
.work {
    padding: 100px 48px;
    background: var(--color-bg);
}

.work-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.work-header {
    margin-bottom: 56px;
}

.work-header h2 {
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.work-header p {
    font-weight: 400;
    font-size: 17px;
    color: var(--color-text-secondary);
}

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

.work-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
    border-color: var(--color-blue);
    box-shadow: 0 2px 16px rgba(56, 107, 183, 0.15);
}

.work-card-img {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    background: #1a1a1a;
}

.work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.work-card-img img.img-contain {
    object-fit: contain;
    padding: 24px;
}

.work-card-img-stacked {
    display: flex;
    flex-direction: column;
    height: auto;
}

.work-card-img-stacked img {
    position: relative;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.work-card-img-stacked img:first-child {
    padding-bottom: 0;
}

.work-card-img-stacked img:last-child {
    padding-top: 0;
}

.work-card:hover .work-card-img img {
    filter: brightness(1.05);
}

.work-card-body {
    padding: 28px 32px 32px;
}

.work-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-blue);
    background: var(--color-blue-light);
    padding: 4px 10px;
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.work-card-body h3 {
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.work-teaser {
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.work-toggle {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-blue);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
    padding: 0;
    transition: color 0.2s ease;
}

.work-toggle:hover {
    color: var(--color-blue-hover);
}

.work-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.work-expanded.open {
    max-height: 800px;
}

.work-expanded-inner {
    padding-top: 18px;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.work-expanded-inner strong {
    font-weight: 600;
    color: var(--color-text);
}

.work-expanded-inner p {
    margin-bottom: 14px;
}

.work-expanded-inner p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   TESTIMONIAL
   ================================================================ */
.testimonial {
    padding: 100px 48px;
    background: var(--color-bg-alt);
}

.testimonial-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 32px 0 28px;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 64px;
    font-style: normal;
    color: var(--color-blue);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -8px;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-stars {
    color: #f5a623;
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.testimonial-attribution {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 4px;
}

.testimonial-role {
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text-muted);
}

.testimonial-slider {
    position: relative;
    min-height: 220px;
}

.testimonial-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.testimonial-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-blue);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: var(--font);
    padding: 0;
    box-shadow: 0 2px 12px rgba(56, 107, 183, 0.3);
}

.testimonial-arrow:hover {
    background: var(--color-blue-hover);
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(56, 107, 183, 0.45);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact {
    padding: 100px 48px;
    background: radial-gradient(ellipse at center, rgba(56, 107, 183, 0.03) 0%, var(--color-bg) 70%);
    text-align: center;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-weight: 900;
    font-size: 52px;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.contact-sub {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    line-height: 1.55;
}

.contact .btn-primary {
    margin-bottom: 24px;
}

.contact-details {
    margin-top: 12px;
}

.contact-details p {
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.contact-details a {
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

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

.contact-linkedin {
    display: inline-block;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-blue);
    margin-top: 8px;
    transition: color 0.2s ease;
}

.contact-linkedin:hover {
    color: var(--color-blue-hover);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg);
}

.site-footer span,
.site-footer a {
    font-weight: 400;
    font-size: 13px;
    color: var(--color-text-muted);
}

.site-footer a {
    transition: color 0.2s ease;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ================================================================
   RESPONSIVE — 768px
   ================================================================ */
@media (max-width: 768px) {
    .site-nav {
        padding: 14px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-inner {
        flex-direction: column;
    }

    .hero-text {
        flex: 1;
        max-width: 100%;
    }

    .hero-svg-wrap {
        display: none;
    }

    .hero-accent,
    .hero-grid-overlay {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-num {
        font-size: 18px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    .about {
        padding: 72px 24px;
    }

    .about h2 {
        font-size: 30px;
    }

    .services {
        padding: 72px 24px;
    }

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

    .services-header h2 {
        font-size: 30px;
    }

    .packages {
        padding: 72px 24px;
    }

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

    .packages-header h2 {
        font-size: 30px;
    }

    .work {
        padding: 72px 24px;
    }

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

    .work-header h2 {
        font-size: 30px;
    }

    .work-card-img img {
        object-position: left center;
    }

    .work-card-img img.img-contain {
        object-position: left center;
    }

    .testimonial {
        padding: 72px 24px;
    }

    .testimonial-quote {
        font-size: 17px;
    }

    .contact {
        padding: 72px 24px;
    }

    .contact h2 {
        font-size: 34px;
    }

    .site-footer {
        padding: 24px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        flex-direction: column;
        gap: 4px;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 22px;
        font-size: 13px;
    }
}
