/* Libralato.com — Static site stylesheet */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.7em;
    color: #666;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a { color: #7EBEC5; text-decoration: none; }
a:hover { color: #5fa8b0; text-decoration: underline; }

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

h1, h2, h3, h4 {
    color: #2e2545;
    font-weight: 500;
    line-height: 1.3em;
    margin: 0 0 0.5em;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Top bar (social) ---- */
.top-bar {
    background: #2e2545;
    padding: 8px 0;
    color: #ffffff;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: flex-end;
}
.social-icons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.social-icons a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-icons a svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.social-icons a:hover { text-decoration: none; transform: translateY(-2px); }
.social-icons .social-fb:hover  { background: #1877F2; color: #ffffff; }
.social-icons .social-x:hover   { background: #000000; color: #ffffff; }
.social-icons .social-li:hover  { background: #0A66C2; color: #ffffff; }
.social-icons .social-rss:hover { background: #F26522; color: #ffffff; }
.site-footer .social-icons a { background: rgba(255, 255, 255, 0.06); }

/* ---- Header / nav ---- */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}
.site-logo img {
    height: 50px;
    width: auto;
    transition: height 0.25s ease;
}
.site-header.scrolled .site-logo img { height: 36px; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.main-nav a {
    color: #2e2545;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-nav a:hover,
.main-nav a.active {
    color: #7EBEC5;
    text-decoration: none;
}

/* hamburger button */
.menu-toggle {
    display: none;
    position: relative;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.menu-toggle span {
    position: absolute;
    left: 7px;
    width: 22px;
    height: 2px;
    background: #2e2545;
    border-radius: 1px;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 23px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ---- Hero & sections ---- */
.section {
    padding: 80px 0;
}
.section.dark {
    background: #2e2545;
    color: #d8d4e4;
}
.section.dark h1, .section.dark h2 { color: #ffffff; }
.section.alt { background: #f7f8fa; }
.section.dots-bg {
    background: #2e2545 url('img/coding-dot-bg.png') repeat;
}
.section.dots-bg, .section.dots-bg p { color: #d8d4e4; }
.section.dots-bg h1 { color: #ffffff; }

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.row.reverse > :first-child { order: 2; }

.lead {
    font-size: 18px;
    line-height: 1.7em;
}
.eyebrow {
    color: #2e2545;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 0.4em;
    display: block;
}
.divider {
    width: 60px;
    height: 3px;
    background: #7EBEC5;
    margin: 16px 0 22px;
    border: 0;
}

/* ---- Feature list (blurbs) ---- */
.features {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
.features li {
    position: relative;
    padding: 12px 0 12px 36px;
    font-size: 16px;
    color: #2e2545;
    font-weight: 600;
    border-top: 1px solid rgba(126, 190, 197, 0.25);
}
.features li:first-child { border-top: 0; }
.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7EBEC5;
    box-shadow: 0 0 0 4px rgba(126, 190, 197, 0.2);
}

/* ---- Icon mini-block ---- */
.icon-block {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.icon-block img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

/* ---- CTA / buttons ---- */
.cta-section {
    text-align: center;
    padding: 90px 0;
    background: #ffffff;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #7EBEC5;
    color: #ffffff;
    border: 2px solid #7EBEC5;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.2s ease;
}
.btn:hover {
    background: transparent;
    color: #7EBEC5;
    text-decoration: none;
}
.btn.btn-light {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.btn.btn-light:hover { background: #ffffff; color: #2e2545; }

/* ---- Contact page ---- */
.page-header {
    background: #2e2545;
    color: #ffffff;
    padding: 70px 0 60px;
    text-align: center;
}
.page-header h1 { color: #ffffff; }
.page-header p { color: #d8d4e4; max-width: 640px; margin: 0 auto; }

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 70px 0;
}
.contact-grid h2 { font-size: 22px; }

.contact-form .field {
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2e2545;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6d8df;
    border-radius: 4px;
    font: inherit;
    color: #2e2545;
    background: #f7f8fa;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7EBEC5;
    background: #ffffff;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .form-note {
    font-size: 13px;
    color: #888;
    margin: 18px 0;
}

.social-card {
    background: #2e2545;
    color: #d8d4e4;
    padding: 28px;
    border-radius: 6px;
}
.social-card h2 { color: #ffffff; margin-bottom: 18px; }
.social-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.social-list li { margin: 0 0 12px; }
.social-list a {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    transition: background 0.25s ease, transform 0.25s ease;
}
.social-list a svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.social-list a:hover { transform: translateX(2px); text-decoration: none; }
.social-list .social-fb:hover { background: #1877F2; }
.social-list .social-x:hover  { background: #000000; }
.social-list .social-li:hover { background: #0A66C2; }

/* ---- Footer ---- */
.site-footer {
    background: #1d1730;
    color: #9b95ae;
    padding: 36px 0 24px;
    font-size: 14px;
}
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.site-footer a { color: #d8d4e4; }
.site-footer .footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}
.site-footer .copyright { font-size: 13px; }

/* ---- Scroll-reveal animations ---- */
[data-anim] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}
[data-anim="slide-top"]    { transform: translateY(-30px); }
[data-anim="slide-bottom"] { transform: translateY(30px); }
[data-anim="zoom"]         { transform: scale(0.94); }
[data-anim="zoom-left"]    { transform: translateX(-50px) scale(0.92); }
[data-anim="zoom-right"]   { transform: translateX(50px) scale(0.92); }
[data-anim="zoom-bottom"]  { transform: translateY(30px) scale(0.96); }
[data-anim].is-visible {
    opacity: 1;
    transform: none;
}
[data-anim-delay="100"].is-visible { transition-delay: 100ms; }
[data-anim-delay="200"].is-visible { transition-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
    [data-anim] { opacity: 1; transform: none; transition: none; }
}

/* ---- Parallax dots background ---- */
.section.dots-bg {
    background-color: #2e2545;
    background-image: url('img/coding-dot-bg.png');
    background-repeat: repeat;
    background-position: center 0;
    will-change: background-position;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.is-open { max-height: 240px; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 24px;
    }
    .main-nav li {
        padding: 14px 0;
        border-bottom: 1px solid rgba(46, 37, 69, 0.08);
    }
    .main-nav li:last-child { border-bottom: 0; }
}

@media (max-width: 768px) {
    .row { grid-template-columns: 1fr; gap: 30px; }
    .row.reverse > :first-child { order: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
    .section { padding: 50px 0; }
    .cta-section { padding: 60px 0; }
    h1 { font-size: 26px; }
    .site-footer .container { flex-direction: column; text-align: center; }
    .section.dots-bg { background-attachment: scroll; }
}
