/* ==========================================================================
   Bijoy Tutoring — site styles
   This file replaces the Tailwind CDN script. It contains plain CSS that
   reproduces every utility class used on the page, so there's no console
   warning and nothing to build or install. Just keep this file next to
   the HTML file.
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', system-ui, sans-serif;
    color: #3B2A1F;
    background-color: #FFFFFF;
    line-height: 1.5;
}

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

button {
    font-family: inherit;
    font-size: 16px;
    border: none;
    background: none;
}

a {
    color: inherit;
}

/* -------------------- Design tokens -------------------- */
:root {
    --slate-navy: #3B2A1F;
    --slate-light: #6B5642;
    --gold-accent: #B8562E;
    --gold-light: #E4CBB4;
    --bg-cream: #F6EFE1;
}

.font-serif-display { font-family: 'Source Serif 4', Georgia, serif; }

/* -------------------- Layout / display -------------------- */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.relative { position: relative; }
.sticky { position: sticky; top: 0; }
.overflow-hidden { overflow: hidden; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* -------------------- Sizing -------------------- */
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-20 { height: 5rem; }
.h-auto { height: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.object-cover { object-fit: cover; }

/* -------------------- Spacing -------------------- */
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1  { margin-top: 0.25rem; }
.mt-4  { margin-top: 1rem; }
.ml-4  { margin-left: 1rem; }
.mr-4  { margin-right: 1rem; }

.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2  { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-2  { padding-top: 0.5rem; }
.pt-8  { padding-top: 2rem; }
.pb-3  { padding-bottom: 0.75rem; }

.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* -------------------- Borders / radius / shadow -------------------- */
.border    { border: 1px solid #DDD; }
.border-2  { border: 2px solid #DDD; }
.border-4  { border: 4px solid #DDD; }
.border-t  { border-top: 1px solid #DDD; }
.border-gold-light  { border-color: var(--gold-light); }
.border-slate-light { border-color: var(--slate-light); }
.rounded-full { border-radius: 9999px; }
.rounded-lg   { border-radius: 0.5rem; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* -------------------- Color -------------------- */
.bg-white     { background-color: #FFFFFF; }
.bg-bg-cream  { background-color: var(--bg-cream); }
.bg-slate-navy { background-color: var(--slate-navy); }
.bg-gold-accent { background-color: var(--gold-accent); }
.bg-gold-light  { background-color: var(--gold-light); }
.bg-opacity-20  { background-color: rgba(232, 213, 183, 0.2); }

.text-white       { color: #FFFFFF; }
.text-slate-navy  { color: var(--slate-navy); }
.text-slate-light { color: var(--slate-light); }
.text-gold-accent { color: var(--gold-accent); }
.text-gold-light  { color: var(--gold-light); }

.hover\:text-gold-accent:hover { color: var(--gold-accent); }

/* -------------------- Typography -------------------- */
.text-sm  { font-size: 0.875rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl-logo { font-size: 2.25rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-center { text-align: center; }
.font-light    { font-weight: 300; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.italic        { font-style: italic; }
.leading-tight   { line-height: 1.2; }
.leading-relaxed { line-height: 1.65; }

/* -------------------- Transitions -------------------- */
.transition { transition: all 0.2s ease; }

/* ==========================================================================
   Responsive breakpoints (mobile-first, matches Tailwind defaults)
   ========================================================================== */

/* sm: 640px+ */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:mt-0 { margin-top: 0; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-6xl { font-size: 3.75rem; }
}

/* md: 768px+ */
@media (min-width: 768px) {
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:inline-block { display: inline-block !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:w-auto { width: auto; }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:p-12 { padding: 3rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
}

/* ==========================================================================
   Component styles (custom, not Tailwind utilities)
   ========================================================================== */

.accent-grid {
    background-image: linear-gradient(45deg, rgba(184, 86, 46, 0.03) 25%, transparent 25%, transparent 75%, rgba(184, 86, 46, 0.03) 75%, rgba(184, 86, 46, 0.03)),
                      linear-gradient(45deg, rgba(184, 86, 46, 0.03) 25%, transparent 25%, transparent 75%, rgba(184, 86, 46, 0.03) 75%, rgba(184, 86, 46, 0.03));
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--slate-navy);
    color: white;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--slate-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 42, 31, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--gold-accent);
    color: #FFFFFF;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #9A4325;
    transform: translateY(-2px);
}

input, textarea, select {
    border: 1px solid #DDD;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(184, 86, 46, 0.1);
}
textarea { resize: vertical; }

.service-card {
    background: white;
    border: 1px solid var(--gold-light);
    border-radius: 8px;
    padding: 32px;
    transition: all 0.3s ease;
}
.service-card:hover {
    border-color: var(--gold-accent);
    box-shadow: 0 12px 24px rgba(59, 42, 31, 0.08);
    transform: translateY(-4px);
}
.service-card .accent-line {
    width: 4px;
    height: 40px;
    background-color: var(--gold-accent);
    margin-bottom: 20px;
    border-radius: 2px;
}

.testimonial-card {
    background: white;
    border-left: 4px solid var(--gold-accent);
    border-radius: 6px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(59, 42, 31, 0.06);
}
.testimonial-card .stars {
    color: var(--gold-accent);
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #27AE60;
    color: white;
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    z-index: 1000;
}
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

nav a {
    font-size: 1.125rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold-accent);
    transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 86, 46, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-section { min-height: 500px; }
    .hero-section::before { width: 400px; height: 400px; }
}

/* Gradient helper used on the About headshot frame border (kept simple) */
.smooth-transition { transition: all 0.3s ease; }
