/* =====================================================================
   Wavebreak Development — site styles
   Direction "Clean Tide": light, minimal, premium. Navy + cyan on white.
   Brand: navy #142A4C / ocean #1F8FD0 / cyan #2FC6E0 / teal #23B4BD / wash #EAF4F4
   ===================================================================== */

:root {
    --navy: #142A4C;
    --navy-700: #1c3a64;
    --ocean: #1F8FD0;
    --cyan: #2FC6E0;
    --teal: #23B4BD;
    --wash: #EAF4F4;
    --ink: #2b3a4a;
    --muted: #5b6b7b;
    --soft: #6a7986;
    --line: #e3ebef;
    --white: #ffffff;
    --max: 1080px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(20, 42, 76, 0.06), 0 8px 24px rgba(20, 42, 76, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--ocean); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .18s ease;
    border: 1.5px solid transparent;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-cyan { background: var(--cyan); color: #0d2238; }
.btn-cyan:hover { background: var(--teal); color: #0d2238; transform: translateY(-1px); }

/* ---------- Header / nav ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-content {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .wordmark {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    letter-spacing: 0.2px;
}
.brand .wordmark span { color: var(--ocean); }

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-menu > ul > li { position: relative; }
.nav-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy);
    border-radius: 6px;
}
.nav-menu a:hover { background: var(--wash); color: var(--navy); }
.nav-cta a, a.nav-cta-link {
    background: var(--cyan);
    color: #0d2238 !important;
}
.nav-cta a:hover, a.nav-cta-link:hover { background: var(--teal); }

/* dropdowns */
.dropdown-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .16s ease;
}
.nav-menu li:hover > .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content a { font-size: 0.88rem; padding: 9px 12px; color: var(--ink); border-radius: 6px; }
.dropdown-content a:hover { background: var(--wash); color: var(--navy); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-wash { background: var(--wash); }
.section-navy { background: var(--navy); color: #cfe0ee; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ocean);
    margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.accent-bar { width: 46px; height: 4px; background: var(--cyan); border-radius: 2px; margin-bottom: 20px; }
.center .accent-bar { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--wash); padding: 92px 0 84px; }
.hero h1 { max-width: 720px; }
.hero .lead { margin-top: 18px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Trust strip ---------- */
.trust {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 16px 0;
}
.trust .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    justify-content: center;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    color: var(--soft);
    font-family: 'Poppins', sans-serif;
}
.trust span { white-space: nowrap; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3e2ec; }
.card .icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--wash);
    color: var(--ocean);
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 500; font-size: 0.9rem; color: var(--ocean); }
.card.featured { border-color: var(--cyan); border-width: 1.5px; }
.tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ocean);
    background: var(--wash);
    padding: 4px 10px; border-radius: 20px;
    margin-bottom: 12px;
}

/* ---------- Featured project ---------- */
.feature-project { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature-project .shot {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: #fff;
}
.feature-project .shot img { display: block; width: 100%; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.tech-tags span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.74rem; font-weight: 500;
    color: var(--navy); background: var(--wash);
    border: 1px solid #d6e6ec;
    padding: 5px 12px; border-radius: 20px;
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process .step { position: relative; padding-top: 8px; }
.process .step .num {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    color: var(--cyan); font-size: 1.5rem; margin-bottom: 6px;
}
.process .step h4 { font-size: 1rem; margin: 0 0 4px; color: var(--navy); }
.process .step p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #9fc4e6; max-width: 540px; margin: 12px auto 28px; }

/* ---------- Footer ---------- */
footer {
    background: #0f2240;
    color: #9db4cc;
    padding: 44px 0 28px;
    font-size: 0.9rem;
}
footer .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .wordmark { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: 1.1rem; }
footer a { color: #bcd0e6; }
footer a:hover { color: #fff; }
footer .foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
footer .foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 28px; padding-top: 18px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 0.82rem; color: #7e94ad;
}

/* ---------- Generic content (inner pages) ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--ink); }
.prose ul { color: var(--ink); padding-left: 1.2rem; }
.prose li { margin-bottom: 8px; }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--wash); padding: 58px 0 50px; }
.page-head .accent-bar { margin-bottom: 16px; }
.page-head h1 { max-width: 780px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.page-head .lead { margin-top: 14px; }

/* ---------- Media + text two-column ---------- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.media-row img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.media-row.reverse > :first-child { order: 2; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 16px; color: var(--muted); }
.checklist li::before {
    content: "\2713";
    position: absolute; left: 0; top: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--cyan); color: #0d2238;
    font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}
.checklist li strong { color: var(--navy); font-family: 'Poppins', sans-serif; font-weight: 600; }

/* ---------- Inline CTA ---------- */
.inline-cta { background: var(--wash); border-radius: var(--radius); padding: 36px; text-align: center; }
.inline-cta h3 { margin-bottom: 8px; }
.inline-cta p { color: var(--muted); max-width: 480px; margin: 0 auto 20px; }

/* ---------- Forms ---------- */
.form { max-width: 600px; }
.form label { display: block; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 0.9rem; color: var(--navy); margin: 16px 0 6px; }
.form input[type=text], .form input[type=email], .form textarea {
    width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus {
    outline: none; border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(31, 143, 208, 0.15);
}
.form input[type=submit] {
    margin-top: 22px; background: var(--navy); color: #fff; border: none;
    font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 0.95rem;
    padding: 13px 32px; border-radius: var(--radius-sm); cursor: pointer;
    transition: all .18s ease;
}
.form input[type=submit]:hover { background: var(--navy-700); transform: translateY(-1px); }

/* ---------- Article (tutorials) ---------- */
.article .container { max-width: 768px; }
.article h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.article h3 { margin-top: 1.7rem; font-size: 1.12rem; }
.article p { color: var(--ink); }
.article ul, .article ol { color: var(--ink); padding-left: 1.25rem; }
.article li { margin-bottom: 8px; }
.article a { color: var(--ocean); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--navy); }
.article pre {
    background: #0f2240; color: #e7eef7;
    border-radius: var(--radius-sm); padding: 18px 20px;
    overflow-x: auto; margin: 1.3rem 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem; line-height: 1.65;
}
.article pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article :not(pre) > code {
    background: var(--wash); color: var(--navy);
    padding: 2px 6px; border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.88em;
}
.read-next { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .feature-project { grid-template-columns: 1fr; gap: 28px; }
    .media-row { grid-template-columns: 1fr; gap: 28px; }
    .media-row.reverse > :first-child { order: 0; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
    }
    .nav-menu.open { max-height: 640px; }
    .nav-menu ul { flex-direction: column; align-items: stretch; padding: 8px; gap: 2px; }
    .dropdown-content {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: 0 0 6px 12px; min-width: 0;
    }
}
@media (max-width: 520px) {
    .process { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .hero { padding: 64px 0 56px; }
}
