/* ==========================================================
   Student Connect UK — Education & Support
   ========================================================== */
:root {
    --bg: #f8f7f3;
    --bg-soft: #f0f2ea;
    --bg-footer: #e9ecdf;
    --card: #faf9f5;
    --border: #d4d8cb;
    --border-soft: #e2e4dc;
    --green: #5b7f5a;
    --green-dark: #2f4a33;
    --sage: #c2cfb0;
    --sage-hover: #b2c29d;
    --chip: #e2e6dd;
    --ink: #1c2a20;
    --text: #4f5a52;
    --muted: #6b746c;
    --radius-lg: 30px;
    --radius-md: 22px;
    --shadow: 0 30px 60px -30px rgba(40, 60, 40, .18);
    --font-head: 'Lora', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    --font-logo: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; font-weight: 600; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--sage);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    cursor: pointer;
    transition: background .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--sage-hover); transform: translateY(-2px); }
.btn-shadow { box-shadow: 0 14px 30px -12px rgba(90, 120, 80, .45); }
.btn-outline { background: transparent; border: 1px solid var(--border); }
.btn-outline:hover { background: var(--chip); }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: flex; align-items: center; gap: 12px;
    font-size: 12.5px; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 38px; height: 1px; background: var(--green-dark); }

.section-title { font-size: clamp(34px, 4.2vw, 52px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(248, 247, 243, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name { font-family: var(--font-logo); color: var(--green); font-size: 31px; }
.logo-tag {
    font-size: 10px; font-weight: 700; letter-spacing: .3em;
    color: #3d3a2e; margin-top: 8px; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 15px; position: relative; }
.nav a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
    background: var(--green); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; background: var(--bg); }
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.hero::before { width: 520px; height: 520px; right: -140px; top: 20px; background: rgba(194, 207, 176, .45); }
.hero::after { width: 340px; height: 340px; left: -200px; bottom: 40px; background: rgba(194, 207, 176, .22); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 560px; gap: 90px; align-items: center; }
.hero-text { max-width: 600px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5vw, 70px); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; }
.hero p.lead { font-size: 18.5px; line-height: 1.75; color: #4a564d; margin: 34px 0 22px; }
.hero p.hero-body { font-size: 15.5px; line-height: 2.05; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 18px; font-weight: 500; padding: 13px 32px; }
.hero-actions .btn-outline { background: rgba(255, 255, 255, .5); border-color: #c9cdc0; }
.hero-checks { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 30px; max-width: 480px; }
.hero-checks li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: #3d4a40; }
.hero-checks i { color: var(--green); font-size: 13px; }
.hero-image {
    position: relative;
    border-radius: 999px 999px 14px 14px;
    overflow: hidden; aspect-ratio: 560 / 720; box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.arch-hero::after {
    content: ''; position: absolute; inset: 18px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px 999px 4px 4px;
    pointer-events: none;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 450px 1fr; gap: 138px; align-items: center; }
.arch {
    position: relative;
    border-radius: 225px 225px 14px 14px;
    overflow: hidden;
    aspect-ratio: 450 / 620;
    background: #dcdbd6;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.arch::after {
    content: ''; position: absolute; inset: 18px 18px 18px 18px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 207px 207px 4px 4px;
    pointer-events: none;
}
.about-text .section-title { margin-bottom: 36px; }
.about-text p { font-size: 16px; line-height: 2; margin: 0 0 16px; }

.numbered-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 90px; }
.numbered-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px 26px;
    background: var(--card);
}
.numbered-card .num { font-family: var(--font-head); color: var(--green); font-size: 22px; font-weight: 600; }
.numbered-card h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin: 14px 0 8px; }
.numbered-card p { font-size: 14.5px; line-height: 1.75; margin: 0; }

.include-box {
    margin-top: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 32px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.include-box h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.include-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.include-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; padding: 7px 0; }
.include-list i { color: var(--green); font-size: 13px; }
.include-note { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 26px; font-size: 14.5px; line-height: 2.2; }

/* ---------- Services ---------- */
.services-head { display: grid; grid-template-columns: 1fr 450px; gap: 40px; align-items: center; margin-bottom: 50px; }
.services-head p { margin: 0; font-size: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -30px rgba(40, 60, 40, .28); }
.icon-chip {
    width: 58px; height: 58px; border-radius: 14px;
    background: var(--chip); color: var(--green);
    display: grid; place-items: center; font-size: 22px;
}
.service-card h3 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 34px 0 14px; }
.service-card p { font-size: 14.5px; line-height: 1.95; margin: 0 0 34px; flex: 1; }
.service-card .btn { align-self: flex-start; font-size: 14px; padding: 12px 20px; }

/* ---------- Process ---------- */
.process { background: var(--bg-soft); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.process-grid .section-title { margin-bottom: 44px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.step {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 20px 22px 14px;
    background: rgba(250, 249, 245, .7);
}
.step h4 { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 15.5px; font-weight: 600; }
.step .dot {
    width: 26px; height: 26px; border-radius: 50%; background: var(--chip);
    display: grid; place-items: center; flex-shrink: 0;
}
.step .dot::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.step p { font-size: 14px; line-height: 1.75; margin: 8px 0 0 36px; }
.process-image {
    border-radius: 18px 50% 50% 18px / 18px 50% 50% 18px;
    overflow: hidden; aspect-ratio: 583 / 660;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.process-image img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg-soft), #f3f4ee); }
.contact-grid { display: grid; grid-template-columns: 1fr 680px; gap: 40px; align-items: center; }
.contact-info .section-title { margin-bottom: 36px; }
.contact-info > p { font-size: 16px; line-height: 2; margin: 0 0 34px; max-width: 540px; }
.contact-badges { display: flex; gap: 30px; margin-bottom: 30px; }
.contact-badges div { display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); line-height: 1.3; }
.contact-badges i { color: var(--green); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 20px 20px 22px; background: rgba(250, 249, 245, .7);
    transition: background .25s;
}
.contact-card:hover { background: var(--card); }
.contact-card span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green-dark); }
.contact-card strong { display: block; color: var(--ink); font-size: 15px; margin-top: 6px; word-break: break-all; line-height: 1.3; }

.contact-form {
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 40px;
    background: rgba(250, 249, 245, .85);
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.form-control {
    width: 100%; font-family: var(--font-body); font-size: 17px; color: var(--ink);
    border: 1px solid var(--border); border-radius: 999px;
    background: rgba(255, 255, 255, .55); padding: 10px 20px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #6e756f; }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(91, 127, 90, .15); }
select.form-control { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231c2a20'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; text-overflow: ellipsis; }
textarea.form-control { border-radius: 24px; min-height: 120px; resize: vertical; font-size: 13.5px; padding: 20px; }
.contact-form .btn { width: 100%; font-size: 17px; padding: 12px; margin-top: 10px; }
.field-error { color: #a33b2f; font-size: 12.5px; margin-top: 5px; padding-left: 12px; }
.alert { border-radius: 18px; padding: 14px 20px; margin-bottom: 22px; font-size: 14.5px; }
.alert-success { background: #e1ead8; color: var(--green-dark); border: 1px solid var(--sage); }
.alert-error { background: #f6e3df; color: #8a3226; border: 1px solid #e8c2ba; }

/* ---------- Contact success ---------- */
.contact-success { text-align: center; padding: 50px 46px; animation: successIn .6s ease both; }
.success-icon {
    width: 78px; height: 78px; margin: 0 auto 24px; border-radius: 50%;
    background: var(--sage); color: var(--green-dark);
    display: grid; place-items: center; font-size: 30px;
    box-shadow: 0 0 0 10px rgba(194, 207, 176, .35);
    animation: successPop .6s .15s cubic-bezier(.2, 1.4, .4, 1) both;
}
.eyebrow-center { justify-content: center; margin-bottom: 12px; }
.eyebrow-center::after { content: ''; width: 38px; height: 1px; background: var(--green-dark); }
.contact-success h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 14px; }
.success-lead { font-size: 15.5px; line-height: 1.9; margin: 0 auto 28px; max-width: 470px; }
.success-lead strong { color: var(--ink); font-weight: 600; word-break: break-word; }
.success-steps {
    list-style: none; padding: 22px 26px; margin: 0 auto 24px; max-width: 420px; text-align: left;
    border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255, 255, 255, .5);
}
.success-steps li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--ink); padding: 6px 0; }
.success-steps span {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: var(--chip); color: var(--green); font-family: var(--font-head); font-weight: 600;
    display: grid; place-items: center; font-size: 14px;
}
.success-note { font-size: 14px; margin: 0 0 26px; }
.success-note a { color: var(--green); font-weight: 600; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-form .success-actions .btn { width: auto; font-size: 15px; padding: 12px 24px; margin-top: 0; }
@keyframes successIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes successPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 680px) { .contact-success { padding: 36px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); padding: 48px 0 40px; }
.footer-top { border-top: 1px solid #c9cdbe; padding-top: 34px; display: grid; grid-template-columns: 1fr 292px 228px; gap: 30px; }
.site-footer .logo { align-items: flex-start; }
.site-footer .logo-name { font-size: 38px; }
.site-footer .logo-tag { font-size: 12.5px; margin-left: 32px; }
.footer-about { font-size: 14.5px; line-height: 2; margin: 18px 0 0; max-width: 380px; }
.footer-col h5 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { font-size: 14.5px; line-height: 1.95; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; font-size: 12.5px; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 60;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center;
    font-size: 28px; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35);
    transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr 460px; gap: 60px; }
    .about-grid { grid-template-columns: 400px 1fr; gap: 70px; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    section { padding: 80px 0; }
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 80px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 18px;
        background: var(--bg); padding: 24px; border-bottom: 1px solid var(--border-soft);
        display: none;
    }
    .nav.open { display: flex; }
    .nav .btn { margin-left: 0; }
    .hero-grid, .about-grid, .process-grid, .contact-grid, .services-head { grid-template-columns: 1fr; gap: 50px; }
    .hero-image { max-width: 460px; width: 100%; margin: 0 auto; }
    .hero-text { max-width: none; }
    .arch { max-width: 450px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .process-image { max-width: 560px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .logo-name { font-size: 25px; }
    .numbered-grid, .include-list, .services-grid, .steps, .form-row, .contact-cards { grid-template-columns: 1fr; }
    .contact-badges { flex-direction: column; gap: 14px; }
    .contact-form { padding: 26px 20px; border-radius: 28px; }
    .include-box { padding: 26px 20px; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .site-footer .logo-name { font-size: 32px; }
}
