/* =========================================================
   Perpento — Organic Growth Consultancy
   Light Theme Design System & Styles
   ========================================================= */

/* ----- Font Face ----- */
@font-face {
    font-family: 'Akashi';
    src: url('assets/akashi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ----- Custom Properties ----- */
:root {
    /* Backgrounds — Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f7f6;
    --bg-tertiary: #eef0ee;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);

    /* Text — Dark on light */
    --text-primary: #0a0a0a;
    --text-secondary: rgba(0, 0, 0, 0.55);
    --text-tertiary: rgba(0, 0, 0, 0.35);

    /* Accent — Light green tones */
    --accent: #5a8a50;
    --accent-light: #7ab06d;
    --accent-subtle: #e6f0e4;
    --accent-glow: rgba(90, 138, 80, 0.08);

    /* Borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    /* Sizing */
    --container-max: 1200px;
    --section-py-top: clamp(40px, 4vw, 56px);
    --section-py-bottom: clamp(64px, 8vw, 100px);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    /* Navbar */
    --nav-height: 72px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.35s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img,
svg {
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

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

/* ----- Typography ----- */
h1,
h2,
h3,
h4 {
    font-family: 'Akashi', 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Akashi', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

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

.btn--primary:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn--primary.form__btn:hover {
    background: #000;
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form__btn:active {
    transform: translateY(0);
}

.form__success {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeUp var(--duration) var(--ease) forwards;
}

.form__success-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--accent);
}

.form__success-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn--ghost {
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
}

.btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ----- Section Header ----- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid var(--accent-subtle);
    border-radius: 100px;
    background: var(--accent-glow);
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-header__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease);
}

.navbar--scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

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

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0;
    order: 1;
}

.navbar__logo-text {
    font-family: 'Akashi', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 24px;
    order: 3;
}

.navbar__link {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    transition: all var(--duration) var(--ease);
}

.navbar__link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.navbar__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    order: 2;
}

.navbar__lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__lang-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.navbar__lang-link:hover,
.navbar__lang-link--active {
    color: var(--text-primary);
}

.navbar__lang-sep {
    font-size: 0.85rem;
    color: var(--border);
    user-select: none;
}

.navbar__link--cta {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.navbar__link--cta:hover {
    background: #222;
    color: var(--bg-primary);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.navbar__toggle-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='40' viewBox='0 0 100 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 20 Q 25 0, 50 20 T 100 20' fill='none' stroke='%23000000' stroke-width='1' stroke-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 80px 32px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero__content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 28px;
    padding: 8px 20px;
    border: 1px solid var(--accent-subtle);
    border-radius: 100px;
    background: var(--accent-glow);
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero__title-accent {
    background: linear-gradient(135deg, #0a0a0a 0%, var(--accent) 70%, #0a0a0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-tertiary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-bar__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    border: 1px solid var(--accent-subtle);
    color: var(--accent);
    flex-shrink: 0;
}

.trust-bar__label {
    display: block;
    font-family: 'Akashi', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.trust-bar__desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.trust-bar__divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
    padding: var(--section-py-top) 0 var(--section-py-bottom);
}

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

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.service-card--featured {
    background: var(--bg-secondary);
    border-color: var(--accent-subtle);
    box-shadow: 0 4px 30px rgba(90, 138, 80, 0.06);
}

.service-card--featured:hover {
    border-color: var(--accent-light);
}

.service-card__badge {
    position: absolute;
    top: -12px;
    left: 32px;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 100px;
}

.service-card__number {
    font-family: 'Akashi', sans-serif;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    border: 1px solid var(--accent-subtle);
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__features {
    margin-bottom: 28px;
    flex-grow: 1;
}

.service-card__features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.service-card__cta {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    transition: all var(--duration) var(--ease);
    margin-top: auto;
}

.service-card__cta:hover {
    color: var(--accent-light);
    letter-spacing: 0.02em;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
    padding: var(--section-py-top) 0 var(--section-py-bottom);
    background: var(--bg-secondary);
}

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

.about__content .section-header__tag {
    display: inline-block;
    margin-bottom: 16px;
}

.about__content .section-header__title {
    text-align: left;
    margin-bottom: 24px;
}

.about__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
}

.about__stat {
    display: flex;
    flex-direction: column;
}

.about__stat-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.about__stat-number {
    font-family: 'Akashi', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--text-primary);
}

.about__stat-suffix {
    font-family: 'Akashi', sans-serif;
    font-size: 2rem;
    color: var(--accent);
}

.about__stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.about__visual-card {
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.about__visual-graph {
    position: relative;
}

.about__visual-graph svg {
    width: 100%;
    height: auto;
}

.about__visual-labels {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.about__visual-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about__visual-label::before {
    content: '';
    width: 20px;
    height: 2px;
    border-radius: 1px;
}

.about__visual-label--organic::before {
    background: var(--text-primary);
}

.about__visual-label--paid::before {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    height: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
    padding: var(--section-py-top) 0 var(--section-py-bottom);
}

.contact__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 64px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact__content .section-header__tag {
    display: inline-block;
    margin-bottom: 16px;
}

.contact__content .section-header__title {
    text-align: left;
    margin-bottom: 20px;
}

.contact__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact__input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--duration) var(--ease);
}

.contact__input::placeholder {
    color: var(--text-tertiary);
}

.contact__input:focus {
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact__select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(0,0,0,0.35)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-color: var(--bg-primary);
    padding-right: 48px;
}

.contact__select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.contact__textarea {
    resize: vertical;
    min-height: 100px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    padding: 64px 0 0;
    border-top: 1px solid var(--border);
    background: var(--text-primary);
    color: #ffffff;
}

.footer .navbar__logo-text {
    color: #ffffff;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 48px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}

.footer__links {
    display: flex;
    gap: 64px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.footer__link {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--duration) var(--ease);
}

.footer__link:hover {
    color: #ffffff;
}

.footer__bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Stagger children */
.services__grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.services__grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.trust-bar__item.reveal:nth-child(3) {
    transition-delay: 0.1s;
}

.trust-bar__item.reveal:nth-child(5) {
    transition-delay: 0.2s;
}

/* Graph animation */
.graph-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s var(--ease-out) 0.3s;
}

.graph-fill {
    opacity: 0;
    transition: opacity 1.5s var(--ease) 1s;
}

.reveal--visible .graph-line {
    stroke-dashoffset: 0;
}

.reveal--visible .graph-fill {
    opacity: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

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

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

@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--bg-primary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 120px 40px 40px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 999;
    }

    .navbar__controls {
        margin-left: 0;
    }

    .navbar__menu--open {
        transform: translateX(0);
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__toggle--active .navbar__toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar__toggle--active .navbar__toggle-line:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle--active .navbar__toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .navbar__link {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.2rem;
    }

    .navbar__link--cta {
        color: var(--bg-primary);
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .trust-bar__divider {
        display: none;
    }

    .trust-bar__inner {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .about__stats {
        flex-direction: column;
        gap: 24px;
    }

    .contact__card {
        padding: 28px;
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer__links {
        gap: 40px;
    }
}

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

    .hero__actions .btn {
        width: 100%;
    }
}

/* =========================================================
   OVERLAY (for mobile menu)
   ========================================================= */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.nav-overlay--visible {
    opacity: 1;
    pointer-events: all;
}