/* ============================================
   Apple Design System — Mario Marques Fotografia
   Based on DESIGN-Apple.md
   ============================================ */

:root {
    /* Brand & Accent */
    --primary: #0066cc;
    --primary-focus: #0071e3;
    --primary-on-dark: #2997ff;

    /* Surface */
    --canvas: #ffffff;
    --canvas-parchment: #f5f5f7;
    --surface-pearl: #fafafc;
    --surface-tile-1: #272729;
    --surface-tile-2: #2a2a2c;
    --surface-tile-3: #252527;
    --surface-black: #000000;

    /* Text */
    --ink: #1d1d1f;
    --ink-muted-80: #333333;
    --ink-muted-48: #7a7a7a;
    --body-muted: #cccccc;
    --on-dark: #ffffff;

    /* Hairlines & Borders */
    --divider-soft: #f0f0f0;
    --hairline: #e0e0e0;

    /* Spacing */
    --section-pad: 80px;
    --card-pad: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: "ss03";
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.374px;
    color: var(--ink);
    background-color: var(--canvas);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

/* ── Container ── */
.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
.hero-display {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
}

.display-lg {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
}

.display-md {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.47;
    letter-spacing: -0.374px;
}

.lead-text {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: 0.196px;
}

.tagline {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: 0.231px;
}

.body-strong {
    font-weight: 600;
}

.caption {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: -0.224px;
}

.caption-strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: -0.224px;
}

.fine-print {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.12px;
}

/* ── Accent text (replaces theme-gradient) ── */
.theme-gradient {
    color: var(--primary);
}

/* ── Section base ── */
.section {
    padding: var(--section-pad) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title .subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.224px;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.section-title .title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-title .description {
    color: var(--ink-muted-48);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark tile sections */
.tile-dark {
    background-color: var(--surface-tile-1);
    color: var(--on-dark);
}

.tile-dark .section-title .subtitle {
    color: var(--primary-on-dark);
}

.tile-dark .section-title .title {
    color: var(--on-dark);
}

.tile-dark .section-title .description {
    color: var(--body-muted);
}

.tile-dark .theme-gradient {
    color: var(--primary-on-dark);
}

/* Parchment tile sections */
.tile-parchment {
    background-color: var(--canvas-parchment);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 9999px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.374px;
    cursor: pointer;
    transition: transform 0.15s ease;
    border: none;
    outline: none;
}

.btn:active {
    transform: scale(0.95);
}

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

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

.btn-primary:focus-visible {
    outline: 2px solid var(--primary-focus);
    outline-offset: 2px;
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--on-dark);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--on-dark);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-light:hover {
    background: var(--surface-pearl);
}

/* Text link */
.text-link {
    color: var(--primary);
    font-size: 17px;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link-on-dark {
    color: var(--primary-on-dark);
}

/* ── Header / Global Nav ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 55px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
}

.logo {
    font-size: 14px;
    font-weight: 600;
    color: var(--on-dark);
    letter-spacing: -0.224px;
}

.logo span {
    color: var(--body-muted);
    font-weight: 400;
}

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

.nav-menu a {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.12px;
    transition: color 0.2s ease;
}

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

.header-btn {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.12px;
    background: var(--primary);
    color: var(--on-dark);
    border-radius: 9999px;
}

.header-btn:hover {
    background: var(--primary-focus);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--on-dark);
    border-radius: 1px;
}

/* ── Mobile Menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 28px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.14;
    letter-spacing: 0.196px;
}

.mobile-menu a:hover {
    color: var(--on-dark);
}

.mobile-menu-close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('imagens/bg-index2.webp');
    background-size: cover;
    background-position: center;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 40%,
            rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    padding-top: 44px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
    color: var(--on-dark);
    margin-bottom: 16px;
}

.hero-title .theme-gradient {
    color: var(--primary-on-dark);
}

.hero-subtitle {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero service cards */
.hero-services {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 24px 48px;
}

.hero-service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-service-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.hero-service-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.hero-service-card h4 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.374px;
    color: var(--on-dark);
    margin-bottom: 4px;
}

.hero-service-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: -0.224px;
    line-height: 1.43;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 18px;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0px;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 24px;
    border-radius: 18px;
    text-align: center;
}

.about-badge .number {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    color: var(--on-dark);
}

.about-badge .label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.12px;
}

.about-content .subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.224px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 16px;
    color: var(--ink);
}

.about-content p {
    color: var(--ink-muted-48);
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.47;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature .check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

.about-feature span {
    font-size: 14px;
    color: var(--ink-muted-80);
    letter-spacing: -0.224px;
}

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    padding: 32px;
    transition: transform 0.2s ease;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card:hover {
    border-color: var(--primary);
}

.service-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--canvas-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.service-card h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: 0.231px;
    margin-bottom: 8px;
    color: var(--ink);
}

.service-card p {
    color: var(--ink-muted-48);
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: -0.224px;
}

/* ── Portfolio ── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.12px;
    color: var(--primary-on-dark);
    margin-bottom: 4px;
}

.portfolio-title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    color: var(--on-dark);
    margin-bottom: 4px;
}

.portfolio-desc {
    font-size: 14px;
    color: var(--body-muted);
    letter-spacing: -0.224px;
}

/* ── Stats ── */
.stats-section {
    background-color: var(--surface-tile-1);
    color: var(--on-dark);
}

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

.stat-item {
    text-align: center;
    padding: 32px;
}

.stat-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--on-dark);
}

.stat-item .number.theme-gradient {
    color: var(--primary-on-dark);
}

.stat-item .label {
    font-size: 14px;
    color: var(--body-muted);
    font-weight: 400;
    letter-spacing: -0.224px;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.testimonial-content {
    position: relative;
    padding-left: 0;
}

.testimonial-content::before {
    content: '"';
    display: block;
    font-size: 80px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 21px;
    line-height: 1.5;
    font-weight: 300;
    color: var(--ink-muted-80);
    margin-bottom: 24px;
    font-style: normal;
}

.testimonial-author h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--ink);
    letter-spacing: -0.374px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--primary);
    font-weight: 400;
    letter-spacing: -0.224px;
}

.testimonial-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.testimonial-thumb {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
}

.testimonial-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.testimonial-thumb:hover {
    opacity: 1;
}

.testimonial-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ── CTA ── */
.cta-section {
    background-color: var(--surface-tile-2);
    color: var(--on-dark);
}

.cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 12px;
    color: var(--on-dark);
}

.cta-content h2 .theme-gradient {
    color: var(--primary-on-dark);
}

.cta-content p {
    color: var(--body-muted);
    font-size: 17px;
}

/* ── Footer ── */
.footer {
    padding: 64px 0 0;
    background-color: var(--canvas-parchment);
    color: var(--ink-muted-80);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--hairline);
}

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

.footer .logo span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--ink-muted-48);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: -0.224px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--ink-muted-80);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--on-dark);
    border-color: var(--primary);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.224px;
    margin-bottom: 16px;
    color: var(--ink);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--ink-muted-48);
    font-size: 14px;
    letter-spacing: -0.224px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ink-muted-48);
    font-size: 14px;
    letter-spacing: -0.224px;
}

.footer-contact li .icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--ink-muted-48);
    font-size: 12px;
    letter-spacing: -0.12px;
}

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-focus);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Responsive ── */
@media (max-width: 1068px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .section-title .title {
        font-size: 34px;
        letter-spacing: -0.374px;
    }

    .about-content h2 {
        font-size: 34px;
        letter-spacing: -0.374px;
    }

    .cta-content h2 {
        font-size: 34px;
        letter-spacing: -0.374px;
    }
}

@media (max-width: 834px) {
    .section {
        padding: 64px 0;
    }

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

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -0.374px;
    }

    .hero-services {
        display: none;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-item .number {
        font-size: 36px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .section-title .title {
        font-size: 28px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
    }
}