:root {
    /* Ultra-Minimalist Colors */
    --clr-primary: #1E3A8A; /* Logo Blue */
    --clr-primary-light: #eff6ff; 
    --clr-secondary: #0F172A; /* Slate 900 for headings */
    --clr-bg: #ffffff; /* Pure white */
    --clr-surface: #fafafa; /* Neutral 50 for subtle alternating sections */
    --clr-text: #52525b; /* Zinc 600 for body text - refined readability */
    --clr-border: #f4f4f5; /* Very subtle borders if needed */
    --clr-white: #ffffff;

    /* Fonts */
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --spacing-section-mobile: 5rem;
    --spacing-section-desktop: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--clr-secondary);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.text-primary { color: var(--clr-primary); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px; /* Wider and more relaxed */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.pt-section { padding-top: var(--spacing-section-mobile); }
.pb-section { padding-bottom: var(--spacing-section-mobile); }

@media (min-width: 768px) {
    .pt-section { padding-top: var(--spacing-section-desktop); }
    .pb-section { padding-bottom: var(--spacing-section-desktop); }
}

.grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid { gap: 5rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0; /* Sharp corners for minimalism */
    font-weight: 500;
    transition: all var(--transition-base);
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: 1px solid var(--clr-primary);
}

.btn-primary:hover {
    background-color: var(--clr-secondary);
    border-color: var(--clr-secondary);
    color: var(--clr-white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-secondary);
}

.btn-outline:hover {
    border-color: var(--clr-secondary);
}

.btn-full { width: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all var(--transition-base);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--clr-border);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: padding var(--transition-base);
}

.navbar.scrolled .navbar-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-img {
    height: 56px; /* Increased further */
    width: auto;
}

@media (min-width: 768px) {
    .logo-img {
        height: 68px; /* Noticeably larger on desktop */
    }
}

.nav-links {
    display: none;
    gap: 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text);
}

.nav-links a:hover {
    color: var(--clr-secondary);
}

.mobile-menu-btn {
    display: block;
    color: var(--clr-secondary);
}

.mobile-nav {
    display: none;
    background-color: var(--clr-bg);
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 100%;
    left: 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    text-align: center;
    color: var(--clr-secondary);
    font-size: 1.25rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .hidden-mobile { display: inline-flex; }
    .mobile-menu-btn { display: none; }
}

@media (max-width: 767px) {
    .hidden-mobile { display: none !important; }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-header { margin-bottom: 6rem; }
}

.section-subtitle {
    display: block;
    color: var(--clr-primary);
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.5rem; }
}

.section-description {
    font-size: 1.0625rem;
    color: var(--clr-text);
    max-width: 40rem;
}

.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    background-color: var(--clr-surface);
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 4rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--clr-text);
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Situations / Cards */
.cards-grid {
    grid-template-columns: 1fr;
    gap: 4rem 2rem; /* More vertical space */
}

@media (min-width: 768px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 5rem 3rem; }
}

.minimal-card {
    background: transparent; /* No background */
    border: none; /* No border */
    padding: 0;
}

.card-icon {
    color: var(--clr-primary);
    margin-bottom: 1.25rem;
    stroke-width: 1.5; /* Thinner icons */
    width: 1.75rem;
    height: 1.75rem;
}

.card-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-text {
    font-size: 0.9375rem;
    color: var(--clr-text);
}

/* Image + Content Grid */
.img-content-grid {
    grid-template-columns: 1fr;
    align-items: flex-start; /* Changed from center to prevent misalignment when content is tall */
    gap: 3rem;
}

@media (min-width: 768px) {
    .img-content-grid { 
        grid-template-columns: 5fr 4fr; 
        gap: 6rem; 
    }
    .img-content-grid.reverse {
        grid-template-columns: 4fr 5fr;
    }
}

.img-wrapper {
    width: 100%;
    max-width: 480px; /* Increased max-width */
    margin: 0 auto;
}

.img-wrapper img {
    width: 100%;
    aspect-ratio: 4/5; /* Make images taller */
    object-fit: cover; /* Prevent distortion */
    border-radius: 0; /* Sharp edges for minimalism */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.order-2 { order: 2; }
@media (min-width: 768px) {
    .md-order-1 { order: 1; }
    .md-order-2 { order: 2; }
}

/* Services */
.services-section {
    background-color: var(--clr-surface);
}

.services-top-grid {
    margin-bottom: 5rem; /* Replaces html margin classes */
}

.main-service-box {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--clr-border);
}

.check-list {
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.check-list i {
    color: var(--clr-primary);
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    stroke-width: 1.5;
}

/* Degrees */
.degree-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .degree-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.degree-box {
    border-left: 1px solid var(--clr-border);
    padding-left: 1.5rem;
}

.degree-box strong {
    display: block;
    color: var(--clr-secondary);
    font-weight: 500;
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.degree-box span {
    font-size: 0.8125rem;
    color: var(--clr-text);
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .process-steps { 
        grid-template-columns: 1fr 1fr; 
        gap: 4rem;
    }
}

.process-step {
    border-top: 1px solid var(--clr-border);
    padding-top: 1.5rem;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--clr-border);
}

.faq-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    text-align: left;
    color: var(--clr-secondary);
}

.faq-question {
    font-weight: 500;
    font-size: 1.0625rem;
    padding-right: 2rem;
}

.faq-icon {
    color: var(--clr-text);
    transition: transform 0.3s ease;
    stroke-width: 1.5;
}

.faq-button.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 0 2rem 0;
    font-size: 0.9375rem;
    display: none;
    max-width: 36rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--clr-surface);
}

.contact-method {
    margin-bottom: 2rem;
}

.contact-method h5 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.contact-method p, .contact-method a {
    font-size: 1.0625rem;
    color: var(--clr-secondary);
}

.contact-method a:hover {
    color: var(--clr-primary);
}

.contact-form {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .contact-form { margin-top: 0; }
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--clr-text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    padding: 0.75rem 0;
    color: var(--clr-secondary);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 0;
    transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-secondary);
}

input::placeholder, textarea::placeholder {
    color: #a1a1aa;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-group input {
    margin-top: 0.35rem;
}

.checkbox-group label {
    font-size: 0.8125rem;
    color: var(--clr-text);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

/* Footer */
.footer {
    background-color: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    padding-top: 6rem;
}

.footer-grid {
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo-img {
    height: 68px; /* Matched desktop navbar height */
    margin-bottom: 2rem;
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--clr-text);
    max-width: 20rem;
}

.footer h6 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-secondary);
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer a {
    color: var(--clr-text);
    font-size: 0.9375rem;
}

.footer a:hover {
    color: var(--clr-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--clr-text);
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; }
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translate(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
