/* ===========================
   Logic Pro Inc
   System derived from the logo: crimson mark (#db1241), near-black ink wordmark (#070d1d), white.
   Crimson is the single accent. It marks the primary action, the current page and small
   confirmations, so it always reads as figure against ink and white.
   =========================== */

:root {
    --crimson: #db1241;
    --crimson-deep: #b50f35;
    --ink: #070d1d;
    --ink-2: #131b2e;
    --text: #2a3243;
    --text-muted: #566075;
    --line: #dfe3ea;
    --surface: #f4f5f8;
    --white: #fff;

    --radius: 2px;
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    accent-color: var(--crimson);
    caret-color: var(--crimson);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--crimson);
    color: var(--white);
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-stretch: 112%;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

:focus-visible {
    outline: 2px solid var(--crimson);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 2000;
    background: var(--white);
    color: var(--ink);
    padding: 8px 14px;
    border: 1px solid var(--line);
}

.skip-link:focus {
    left: 8px;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

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

.nav-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover {
    border-bottom-color: var(--line);
}

.nav-link.active {
    border-bottom-color: var(--crimson);
}

.nav-cta {
    background: var(--crimson);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius);
    border-bottom: 0;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--crimson-deep);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.btn-primary:hover {
    background: var(--crimson-deep);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.02rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ===========================
   Hero (home)
   =========================== */

.hero {
    margin-top: 69px;
    padding: 96px 0;
    background: var(--ink);
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.2rem, 4.4vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 52ch;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-badge i {
    color: var(--crimson);
}

.hero-image {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ===========================
   Page header
   =========================== */

.page-header {
    margin-top: 69px;
    padding: 72px 0 64px;
    color: var(--white);
    background: var(--ink);
}

.page-header.photo {
    background:
        linear-gradient(90deg, rgba(7, 13, 29, 0.94) 0%, rgba(7, 13, 29, 0.78) 55%, rgba(7, 13, 29, 0.55) 100%),
        var(--img) center / cover no-repeat;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    margin-bottom: 16px;
    max-width: 22ch;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 60ch;
}

.page-header .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===========================
   Sections
   =========================== */

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--surface);
}

.section-header {
    margin-bottom: 48px;
    max-width: 60ch;
}

.section-header h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Value strip (home features, about principles):
   open columns, each opened by one ink rule, no boxes. */

.features {
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

.features-grid,
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px 32px;
}

.feature-card,
.value-card {
    border-top: 2px solid var(--ink);
    padding-top: 20px;
}

.feature-card h3,
.value-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.feature-card p,
.value-card p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* ===========================
   About
   =========================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text);
    margin-bottom: 18px;
    max-width: 62ch;
}

.about-panel {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-panel-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-panel-item i {
    color: var(--crimson);
    font-size: 1.15rem;
    margin-top: 4px;
    width: 1.2rem;
    text-align: center;
}

.about-panel-item h3 {
    color: var(--white);
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.about-panel-item p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.93rem;
    margin: 0;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 64px;
}

.photo-strip img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.about-video {
    width: 100%;
    max-height: 560px;
    border-radius: var(--radius);
    background: var(--ink);
}

/* ===========================
   Services and portfolio cards
   =========================== */

.services-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card,
.portfolio-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}

.service-card:hover,
.portfolio-item:hover {
    border-color: var(--ink);
}

.service-visual,
.portfolio-visual {
    height: 220px;
    background: var(--surface);
}

.service-visual.photo,
.portfolio-visual.photo {
    background: var(--img) center / cover no-repeat;
}

.service-content,
.portfolio-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3,
.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-content p,
.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.97rem;
    margin-bottom: 20px;
    flex: 1;
}

.portfolio-content p {
    margin-bottom: 0;
}

.service-list {
    list-style: none;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.service-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.93rem;
    color: var(--text);
    margin-bottom: 10px;
}

.service-list i {
    color: var(--crimson);
    margin-top: 5px;
    font-size: 0.8rem;
}

.service-link {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid var(--crimson);
    align-self: flex-start;
    padding-bottom: 2px;
    transition: color 0.2s var(--ease);
}

.service-link:hover {
    color: var(--crimson);
}

.about-content .service-link {
    display: inline-block;
}

.portfolio-note {
    margin-top: 48px;
    padding: 40px;
    background: var(--surface);
    border-radius: var(--radius);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.portfolio-note p {
    color: var(--text);
    font-size: 1.05rem;
    max-width: 58ch;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

/* ===========================
   Process
   =========================== */

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px 32px;
}

.process-step {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.step-number {
    color: var(--crimson);
    font-weight: 600;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
}

.process-step h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===========================
   Industries
   =========================== */

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

.industry-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 500;
}

.industry-pill i {
    color: var(--crimson);
}

/* ===========================
   Call to action band
   =========================== */

.cta-section {
    background: var(--ink);
    color: var(--white);
    padding: 80px 0;
}

.cta-content {
    max-width: 60ch;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 14px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
    margin-bottom: 32px;
}

/* ===========================
   Contact
   =========================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 18px;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--crimson);
    border-radius: var(--radius);
    font-size: 1.05rem;
}

.contact-text h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--text);
    font-size: 0.97rem;
}

.contact-text a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--crimson);
    text-decoration-thickness: 2px;
}

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

.contact-hours {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-hours h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.contact-hours ul {
    list-style: none;
}

.contact-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.93rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.contact-hours li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-hours li span:last-child {
    color: var(--ink);
    font-weight: 500;
}

.contact-form-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    background: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #b9c0cc;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #667085;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--crimson);
    box-shadow: 0 0 0 3px rgba(219, 18, 65, 0.14);
}

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

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-status {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-weight: 600;
}

.form-status.success {
    display: block;
    background: #e8f5ec;
    color: #145c2e;
}

.form-status.error {
    display: block;
    background: #fdecef;
    color: #8f0f2c;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--ink);
    color: var(--white);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand .logo-mark {
    height: 28px;
    width: auto;
}

.footer-brand span {
    font-size: 1.1rem;
    font-weight: 600;
    font-stretch: 112%;
}

.footer-section h3 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-section p,
.footer-section ul li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--crimson);
    text-decoration-thickness: 2px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.87rem;
}

/* ===========================
   Responsive
   =========================== */

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

    .hero-image { height: 280px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 20px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }

    .hero { padding: 56px 0; }
    .page-header { padding: 48px 0 44px; }
    .section { padding: 64px 0; }
    .features { padding: 48px 0; }
    .cta-section { padding: 56px 0; }

    .cta-buttons { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
    .portfolio-note .btn,
    .cta-content .btn { width: 100%; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .about-panel { padding: 28px; }
    .photo-strip { grid-template-columns: 1fr; }
    .photo-strip img { height: 220px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .logo-img { height: 32px; }
    .gallery { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
