/* =====================================================================
   GreenToastSoftware Business Services
   Flat style: white borders, no shadows, no gradients, no blur, no 3D.
   Dark theme background #101524 · Light theme background #d2d4d8
   ===================================================================== */

:root,
[data-theme="dark"] {
    --bg: #101524;
    --line: #ffffff;
    --bw: 1px;
    --text-1: #ffffff;
    --text-2: rgba(255, 255, 255, 0.74);
    --text-3: rgba(255, 255, 255, 0.54);
    --accent: #34d399;
    --inv-bg: #ffffff;   /* inverted surfaces: buttons, hover states */
    --inv-text: #101524;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #d2d4d8;
    --line: #ffffff;
    --bw: 2px;           /* thicker so white borders stay visible on light grey */
    --text-1: #101524;
    --text-2: rgba(16, 21, 36, 0.82);
    --text-3: rgba(16, 21, 36, 0.68);
    --accent: #0b7a52;
    --inv-bg: #101524;
    --inv-text: #ffffff;
    color-scheme: light;
}

:root {
    --radius: 14px;
    --radius-sm: 10px;
    --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding: 3.5rem 0; }

.box {
    background: var(--bg);
    border: var(--bw) solid var(--line);
    border-radius: var(--radius);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0.9rem; left: 50%; transform: translateX(-50%);
    width: min(1200px, 94vw); z-index: 1000;
    padding: 0.5rem 0.8rem 0.5rem 1.1rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { width: 30px; height: 30px; object-fit: contain; }
.nav-logo .name { font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.nav-logo .name small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-2); }

.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
    display: inline-block; padding: 0.5rem 0.85rem;
    border: var(--bw) solid transparent; border-radius: var(--radius-sm);
    color: var(--text-2); font-weight: 500; font-size: 0.94rem;
    transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text-1); border-color: var(--line); }
.nav-link.external { border-color: var(--line); color: var(--text-1); margin-left: 0.3rem; }
.nav-link.external:hover { background: var(--inv-bg); color: var(--inv-text); }

.theme-toggle {
    width: 40px; height: 40px; display: inline-grid; place-items: center; margin-left: 0.3rem;
    border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
    background: transparent; color: var(--text-1); cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--inv-bg); color: var(--inv-text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
:root:not([data-theme]) .theme-toggle .icon-moon { display: none; }

.hamburger {
    display: none; width: 42px; height: 40px;
    border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
    background: transparent; cursor: pointer;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.hamburger .bar { width: 20px; height: 2px; background: var(--text-1); transition: 0.2s; }
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
    border: var(--bw) solid var(--line); font: inherit; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--inv-bg); color: var(--inv-text); }
.btn-primary:hover { background: transparent; color: var(--text-1); }
.btn-ghost { background: transparent; color: var(--text-1); }
.btn-ghost:hover { background: var(--inv-bg); color: var(--inv-text); }
.btn-block { width: 100%; }

/* ---------- Headings ---------- */
.hero { padding: 8.5rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; align-items: stretch; }
.hero-main { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.4rem; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
.hero-subtitle { color: var(--text-2); font-size: clamp(1rem, 1.8vw, 1.15rem); max-width: 580px; }
.hero-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }

.hero-side { padding: 2rem; }
.hero-side h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.hero-side li {
    padding: 0.85rem 0; border-top: var(--bw) solid var(--line);
    display: flex; justify-content: space-between; gap: 1rem; color: var(--text-2);
}
.hero-side li strong { color: var(--text-1); font-weight: 600; }

.page-hero { padding: 8.5rem 0 1rem; }
.page-hero-card { padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; gap: 1rem; }
.page-hero-card h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.02em; max-width: 820px; }
.page-hero-card p { color: var(--text-2); font-size: 1.1rem; max-width: 640px; }

.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 0.5rem; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.card { padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.card-icon {
    width: 52px; height: 52px; border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
    display: grid; place-items: center; margin-bottom: 0.3rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--text-2); font-size: 0.97rem; }
.card ul { margin-top: auto; padding-top: 0.6rem; display: grid; gap: 0.3rem; }
.card li { color: var(--text-2); font-size: 0.92rem; display: flex; align-items: center; gap: 0.6rem; }
.card li::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }

/* ---------- Split panels, steps, lists ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; align-items: stretch; }
.panel { padding: clamp(1.8rem, 3vw, 2.6rem); }
.panel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.2rem; }
.panel > p { color: var(--text-2); margin-bottom: 1rem; }
.panel > p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; }
.steps li {
    counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem;
    padding: 1rem 0; border-top: var(--bw) solid var(--line);
}
.steps li::before {
    content: counter(step); width: 2.2rem; height: 2.2rem; border: var(--bw) solid var(--line);
    border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.9rem;
}
.steps h3, .why h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.steps p, .why p { color: var(--text-2); font-size: 0.95rem; }
.why li { padding: 1rem 0; border-top: var(--bw) solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { padding: 0.45rem 0.95rem; border: var(--bw) solid var(--line); border-radius: var(--radius-sm); font-weight: 500; font-size: 0.92rem; }

/* ---------- Portfolio ---------- */
.project { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.shot {
    aspect-ratio: 16 / 9; border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
    display: grid; place-items: center; color: var(--text-3); font-size: 0.9rem; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.tag { align-self: flex-start; padding: 0.2rem 0.7rem; border: var(--bw) solid var(--line); border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.project h3 { font-size: 1.25rem; }
.project p { color: var(--text-2); font-size: 0.97rem; }
.project .btn { margin-top: auto; align-self: flex-start; padding: 0.65rem 1.2rem; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; align-items: start; }
.contact-method { padding: 1.4rem; display: flex; align-items: center; gap: 1rem; }
.ci { width: 48px; height: 48px; flex-shrink: 0; border: var(--bw) solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; }
.ci svg { width: 22px; height: 22px; }
.contact-method h4 { font-size: 1rem; margin-bottom: 0.1rem; }
.contact-method p, .contact-method a { color: var(--text-2); font-size: 0.95rem; }
.contact-method a { text-decoration: underline; text-underline-offset: 3px; }
.stack { display: grid; gap: 1rem; margin-top: 1.4rem; }

.form-card { padding: clamp(1.6rem, 3vw, 2.4rem); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.4rem; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--text-1);
    background: transparent; border: var(--bw) solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select option { background: var(--bg); color: var(--text-1); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4rem; font-size: 0.95rem; color: var(--text-2); }

.faq-list { display: grid; gap: 0.8rem; max-width: 860px; }
.faq summary {
    padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.4rem 1.2rem; color: var(--text-2); }

/* ---------- CTA + Footer ---------- */
.cta { padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.5rem; }
.cta p { color: var(--text-2); max-width: 520px; }

.footer { margin: 3rem auto 1.5rem; width: min(1200px, 92vw); padding: 2.5rem 2.5rem 1.5rem; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding-bottom: 1.5rem; border-bottom: var(--bw) solid var(--line); }
.footer-brand p { color: var(--text-2); margin-top: 0.7rem; max-width: 320px; font-size: 0.95rem; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-col a { display: block; color: var(--text-2); font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--text-1); text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 1.4rem; color: var(--text-3); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .split, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute; top: calc(100% + 0.6rem); right: 0; min-width: 240px;
        flex-direction: column; align-items: stretch; padding: 0.6rem; gap: 0.15rem;
        background: var(--bg); border: var(--bw) solid var(--line); border-radius: var(--radius);
        display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-link.external, .theme-toggle { margin-left: 0; }
    .theme-toggle { width: 100%; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
