/* ===================================
   Renderful — Sunrise / Bento (v3)
   earthy meets tech · light · bento grid
   =================================== */

:root {
    --ivory: #faf6ed;
    --peach: #f6ede0;
    --surface: #fffdf8;
    --ink: #2b2620;
    --soft-ink: #55503f;
    --muted: #857a66;
    --terracotta: #c4602f;
    --amber: #e0a544;
    --clay-deep: #b4502a;
    --olive: #6d7a4f;
    --olive-soft: rgba(109, 122, 79, 0.12);
    --border: #e5dbc6;
    --sunrise: linear-gradient(135deg, var(--terracotta) 0%, var(--amber) 100%);
    --shadow-warm: 0 18px 40px -18px rgba(180, 80, 42, 0.35);
    --shadow-peach: 0 24px 60px -24px rgba(180, 80, 42, 0.4);
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

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

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

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

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ===================================
   Floating pill nav
   =================================== */
.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(880px, calc(100% - 40px));
    background: rgba(250, 246, 237, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 24px;
    box-shadow: 0 12px 34px -18px rgba(100, 76, 40, 0.45);
    transition: padding 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 24px;
    box-shadow: 0 16px 40px -18px rgba(100, 76, 40, 0.55);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.logo-word {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft-ink);
    padding: 9px 16px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--ink);
    background: rgba(109, 122, 79, 0.1);
}

.nav-link.nav-cta {
    background: var(--sunrise);
    color: #fff;
    padding: 11px 22px;
    font-weight: 600;
    box-shadow: 0 10px 22px -12px rgba(196, 96, 47, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--sunrise);
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(196, 96, 47, 0.8);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Sections shared
   =================================== */
section {
    position: relative;
    padding: 96px 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive);
    background: var(--olive-soft);
    border: 1px solid rgba(109, 122, 79, 0.2);
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 20px;
}

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

.section-desc {
    color: var(--soft-ink);
    max-width: 560px;
}

.centered {
    text-align: center;
    margin: 0 auto;
}

/* ===================================
   Hero
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 80px;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ring-arc {
    position: absolute;
    border: 1.5px dashed rgba(196, 96, 47, 0.35);
    border-radius: 50%;
}
.ring-arc.r1 { width: 460px; height: 460px; top: -120px; right: -120px; }
.ring-arc.r2 { width: 340px; height: 340px; top: 30%; left: -160px; border-color: rgba(224, 165, 68, 0.4); }
.ring-arc.r3 { width: 260px; height: 260px; bottom: 6%; right: 6%; border-color: rgba(109, 122, 79, 0.3); }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-kicker {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--soft-ink);
    box-shadow: 0 8px 20px -12px rgba(100, 76, 40, 0.35);
    margin-bottom: 32px;
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--olive);
    box-shadow: 0 0 0 0 rgba(109, 122, 79, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(109, 122, 79, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(109, 122, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(109, 122, 79, 0); }
}

.hero-title {
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.gradient-text {
    background: var(--sunrise);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title em {
    font-style: italic;
}

.hero-subtitle {
    color: var(--soft-ink);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 600;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--sunrise);
    color: #fff;
    box-shadow: 0 16px 34px -16px rgba(196, 96, 47, 0.75);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -16px rgba(196, 96, 47, 0.85);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--ink);
    box-shadow: 0 10px 24px -16px rgba(100, 76, 40, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--terracotta);
    color: var(--terracotta);
}

/* Floating pill cards */
.hero-floaties {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 18px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-warm);
    animation: bob 5.5s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 1.2rem;
}

.card-1 { top: 20%; left: 6%; animation-delay: 0s; }
.card-2 { top: 30%; right: 5%; animation-delay: 0.8s; }
.card-3 { bottom: 30%; left: 10%; animation-delay: 1.6s; }
.card-4 { bottom: 22%; right: 10%; animation-delay: 2.4s; }
.card-5 { top: 12%; right: 28%; animation-delay: 3.2s; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Stats row */
.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: var(--sunrise);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 6px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ===================================
   About
   =================================== */
.about {
    background: var(--surface);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-sticky {
    position: sticky;
    top: 140px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    line-height: 1.5;
}

.about-text p {
    color: var(--soft-ink);
    margin-bottom: 18px;
}

.about-highlights {
    margin: 28px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 500;
}

.highlight-item svg {
    color: var(--olive);
    flex-shrink: 0;
}

.about-tile {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--peach);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 18px 24px;
    box-shadow: var(--shadow-warm);
}

.about-tile img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.about-tile .tile-word {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
}

/* ===================================
   Services — Bento grid
   =================================== */
.services {
    background: var(--peach);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 20px;
    margin-top: 48px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-warm);
}

.service-card .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--olive-soft);
    color: var(--olive);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.service-card .service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 1.25rem;
}

.service-card > p {
    color: var(--soft-ink);
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--soft-ink);
}

.service-features li::before {
    content: "→";
    color: var(--terracotta);
    font-weight: 700;
}

/* Bento spans */
.b-tall     { grid-row: span 2; }
.b-wide     { grid-column: span 2; }
.b-featured { grid-column: span 2; }

.service-card.featured {
    background: linear-gradient(160deg, #f7dfc4 0%, #f3cfa6 50%, #ecd098 100%);
    border-color: rgba(196, 96, 47, 0.3);
}

.service-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    background: var(--sunrise);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

.service-card.featured h3 {
    font-style: italic;
}

.service-card.featured .service-icon {
    background: rgba(255, 253, 248, 0.6);
    color: var(--terracotta);
}

/* ===================================
   Expertise
   =================================== */
.expertise {
    background: var(--ivory);
}

.tech-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-top: 48px;
    box-shadow: 0 18px 40px -28px rgba(100, 76, 40, 0.4);
}

.tech-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 26px 32px;
}

.tech-row + .tech-row {
    border-top: 1px dashed var(--border);
}

.tech-label {
    flex-shrink: 0;
    width: 190px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--olive);
    padding-top: 8px;
}

.tech-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    border-color: var(--olive);
    background: var(--surface);
}

.tech-icon {
    font-size: 1rem;
}

/* ===================================
   CTA
   =================================== */
.cta-section {
    background: var(--ivory);
    padding-top: 0;
}

.cta-panel {
    background: var(--sunrise);
    border-radius: var(--radius-2xl);
    padding: 72px 48px;
    text-align: center;
    color: #fffdf8;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-peach);
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(109,122,79,0.25), transparent 40%);
}

.cta-panel h2 {
    position: relative;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    margin-bottom: 16px;
    color: #fffdf8;
}

.cta-panel p {
    position: relative;
    color: rgba(255, 253, 248, 0.9);
    max-width: 520px;
    margin: 0 auto 36px;
}

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fffdf8;
    color: var(--terracotta);
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Contact
   =================================== */
.contact {
    background: var(--surface);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: var(--peach);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-top: 48px;
    box-shadow: 0 20px 50px -30px rgba(100, 76, 40, 0.5);
}

.contact-info {
    padding: 48px 40px;
    background: var(--peach);
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--olive-soft);
    color: var(--olive);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
    color: var(--soft-ink);
    font-size: 0.93rem;
}

.contact-item a:hover {
    color: var(--terracotta);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--soft-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.contact-form {
    padding: 48px 40px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--soft-ink);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--ivory);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(196, 96, 47, 0.14);
    background: var(--surface);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

.btn-full {
    width: 100%;
    margin-top: 6px;
    padding: 16px 28px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--ivory);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.footer-nav {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft-ink);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--terracotta);
}

.footer-bottom {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-sticky {
        position: static;
    }
    .contact-card {
        grid-template-columns: 1fr;
    }
    .tech-row {
        flex-direction: column;
        gap: 14px;
    }
    .tech-label {
        width: auto;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .navbar {
        top: 12px;
        border-radius: 24px;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 84px 16px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 16px;
        box-shadow: var(--shadow-warm);
        opacity: 0;
        transform: translateY(-14px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-link {
        text-align: center;
        padding: 13px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-cta {
        margin-top: 6px;
    }

    .floating-card {
        display: none;
    }
    .ring-arc {
        opacity: 0.4;
    }

    .hero {
        padding-top: 140px;
    }
    .hero-stats {
        gap: 32px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
    .b-wide,
    .b-featured,
    .b-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    section {
        padding: 72px 0;
    }
    .cta-panel {
        padding: 52px 28px;
    }
    .contact-info,
    .contact-form {
        padding: 32px 24px;
    }
}
