/* ===== style.css ===== */
/* RESET & BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --color-text-light: #475569;
    --color-primary: #0f3b3c;      /* deep teal – professional, calm */
    --color-primary-light: #1e5f60;
    --color-accent: #b99a6b;       /* warm sand – subtle contrast */
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    --shadow-sm: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    --shadow-hover: 0 20px 30px -10px rgba(0,50,50,0.12);
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-padding: 1.5rem;
    --border-radius: 24px;
    --border-radius-card: 20px;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* main fills space between header/footer */
.site-main {
    flex: 1 0 auto;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== TYPOGRAPHY ===== */
.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    background: rgba(15, 59, 60, 0.06);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin-bottom: 1.2rem;
}

.section-heading {
    margin-bottom: 3rem;
}
.section-heading-center {
    text-align: center;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.96);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px; /* flexible */
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* logo height 100px – adjusted via width auto to keep ratio */
.brand-logo {
    width: auto;
    height: 100px;   /* as requested */
    object-fit: contain;
}

.brand-text {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* navigation */
.nav-toggle {
    display: none; /* hidden on desktop, shown via media query */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.nav-toggle-line {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-link {
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 40px;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-link:hover {
    background: rgba(15,59,60,0.06);
    color: var(--color-primary);
}

.nav-link.active {
    background: var(--color-primary);
    color: white;
    font-weight: 500;
}

.lang-link {
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.9rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 650;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-text {
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-link {
    color: var(--color-text-light);
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.4rem;
}
.footer-link:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.footer-email {
    font-weight: 500;
    color: var(--color-primary);
    word-break: break-word;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links a {
    color: var(--color-text-light);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.btn-secondary:hover {
    background: rgba(15,59,60,0.04);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.btn-light:hover {
    background: var(--color-surface);
    transform: scale(1.02) translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(to bottom, #ffffff, var(--color-surface));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 1rem 0 1.5rem;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* hero card */
.hero-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.hero-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.hero-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    color: var(--color-primary);
}

.hero-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.hero-list li:last-child {
    border-bottom: none;
}
.hero-list li::before {
    content: "▹";
    color: var(--color-primary);
    font-weight: bold;
    margin-right: 0.8rem;
}

/* ===== CARD GRIDS ===== */
.card-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* info card (services overview) */
.info-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-card);
    padding: 2rem 1.8rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}
.info-card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.info-card-title {
    font-size: 1.4rem;
    font-weight: 650;
    margin-bottom: 0.8rem;
}
.info-card-text {
    color: var(--color-text-light);
    line-height: 1.5;
}

/* project / template card */
.project-card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.project-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.project-card-body {
    padding: 2rem 1.8rem 1rem;
}
.project-card-title {
    font-size: 1.5rem;
    font-weight: 650;
    margin-bottom: 0.75rem;
}
.project-card-text {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.project-card-footer {
    padding: 1rem 1.8rem 2rem;
    margin-top: auto;
}

/* review card */
.review-card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.review-card:hover {
    background: var(--color-surface);
    transform: scale(1.01);
}
.review-stars {
    color: #eab308;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}
.review-meta {
    display: flex;
    flex-direction: column;
}
.review-name {
    font-weight: 700;
    color: var(--color-primary);
}
.review-company {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* feature grid (why choose) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
}
.feature-item {
    border-left: 4px solid var(--color-primary-light);
    padding-left: 1.5rem;
}
.feature-title {
    font-size: 1.4rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}
.feature-text {
    color: var(--color-text-light);
}

/* cta box */
.cta-box {
    background: var(--color-primary);
    color: white;
    border-radius: var(--border-radius);
    padding: 4rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}
.cta-content {
    flex: 2;
    min-width: 280px;
}
.cta-content .section-label {
    background: rgba(255,255,255,0.15);
    color: white;
}
.cta-content .section-title {
    color: white;
}
.cta-content .section-text {
    color: rgba(255,255,255,0.85);
}
.cta-actions .btn-primary {
    background: white;
    color: var(--color-primary);
}
.cta-actions .btn-primary:hover {
    background: var(--color-surface);
}

/* section-actions (center button) */
.section-actions {
    text-align: center;
    margin-top: 1.5rem;
}

/* ===== MEDIA QUERIES ===== */
/* tablet */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { gap: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* mobile */
@media (max-width: 768px) {
    .container { padding: 0 1.2rem; }
    .section-title { font-size: 1.8rem; }

    /* header */
    .header-inner { height: 80px; }
    .brand-logo { height: 80px; } /* keep proportion, reduce slightly on small screens if needed */
    .brand-text { font-size: 1.3rem; }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(8px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 90;
    }
    .site-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 1.2rem;
        padding: 2rem;
        width: 100%;
    }
    .nav-link {
        font-size: 1.5rem;
        padding: 0.8rem 2rem;
        width: 100%;
        text-align: center;
    }
    .lang-link {
        margin-left: 0;
        margin-top: 1rem;
        border: 1px solid var(--color-border);
    }

    /* hero */
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { order: -1; } /* optional: show card first if desired, but fine either */
    .hero-title { font-size: 2rem; }

    /* grids */
    .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-column { text-align: center; }
    .footer-links { align-items: center; }
}

/* small phones */
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .brand-logo { height: 70px; }
}

/* ===== HELPER / ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content, .hero-card, .info-card, .project-card {
    animation: fadeUp 0.5s ease-out forwards;
}

/* staggered feel (optional) */
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.2s; }
.info-card:nth-child(4) { animation-delay: 0.3s; }

/* focus & accessibility */
.nav-link:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
}

/* images lazy loading (blur-up) – we control via js, but base style */
img {
    background: var(--color-border);
    transition: opacity 0.2s;
}
img[data-src] {
    opacity: 0;
}
img.loaded {
    opacity: 1;
}