/*
 * Abroad Campus - Premium Static CSS Design System
 * File: css/style.css
 * Core variables, layouts, header, footer, forms, and general UI tokens.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #9c0e15;
    --primary-light: #c81c24;
    --primary-dark: #71090d;
    --secondary: #1e293b;
    --secondary-light: #334155;
    --accent: #d97706; /* Gold */
    --accent-light: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --grey-100: #f1f5f9;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-600: #475569;
    
    /* Semantic Colors */
    --body-bg: var(--white);
    --body-color: var(--secondary);
    --text-muted: var(--grey-600);
    --border-color: var(--grey-200);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Styling */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 22px 40px rgba(156, 14, 21, 0.15);
    
    /* Global Spacing variables */
    --header-height: 120px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--body-color);
    background-color: var(--body-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.6rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--grey-600);
}

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

a:hover {
    color: var(--primary-light);
}

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

ul, ol {
    list-style: none;
}

/* Grid & Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-4 { width: 33.333%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
.col-8 { width: 66.666%; padding: 0 15px; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Spacing Utilities */
.section-py { padding: 80px 0; }
.section-pt { padding-top: 80px; }
.section-pb { padding-bottom: 80px; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--primary-light) !important; }
.text-white { color: var(--white) !important; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 14, 21, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Header & Navbar Top-Bar */
.top-bar {
    background-color: var(--secondary);
    color: var(--grey-300);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-links a {
    color: var(--grey-300);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-links a:hover {
    color: var(--accent-light);
}

.top-bar-icons svg {
    font-size: 0.9rem;
    color: var(--accent-light);
}

/* Sticky Header Navbar */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-logo img {
    height: 52px;
}

/* Navigation items */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
    padding: 28px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-link:hover, .nav-item:hover > .nav-link {
    color: var(--primary);
}

.nav-link svg {
    font-size: 0.75rem;
    transition: var(--transition);
}

.nav-item:hover > .nav-link svg {
    transform: rotate(180deg);
}

/* Custom dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    width: 230px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--grey-100);
    color: var(--primary);
    padding-left: 24px;
}

/* Mega menu details if any */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary);
    background: none;
    border: none;
    cursor: pointer;
}

/* Breadcrumbs Banner */
.breadcrumbs-banner {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('../images/about_campus.png') no-repeat center center / cover;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.breadcrumbs-banner h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.breadcrumb-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb-list a {
    color: var(--grey-300);
}

.breadcrumb-list a:hover {
    color: var(--white);
}

.breadcrumb-separator {
    color: var(--grey-300);
}

.breadcrumb-current {
    color: var(--accent-light);
}

/* Footer Section */
footer {
    background-color: var(--dark);
    color: var(--grey-300);
    padding-top: 80px;
    padding-bottom: 30px;
    border-top: 5px solid var(--primary);
}

footer h3, footer h4 {
    color: var(--white);
    margin-bottom: 25px;
}

footer p {
    color: var(--grey-300);
}

.footer-logo img {
    height: 55px;
    margin-bottom: 20px;
    background-color: var(--white);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--grey-300);
    display: inline-block;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.office-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.office-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
}

.office-card h5 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.office-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

/* Accreditation and Partners Strip */
.accreditations-strip {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accreditations-strip img {
    height: 35px;
    opacity: 0.85;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.accreditations-strip img:hover {
    opacity: 1;
}

/* Enquiry Form Styling */
.enquiry-form-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    background-color: var(--light);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(156, 14, 21, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--grey-600);
}

.checkbox-group input {
    margin-top: 4px;
}

.form-alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 15px;
    display: none;
}

.form-alert.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-alert.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Floating Actions */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba5a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* Mobile Off-canvas Sidebar */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--dark);
    color: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.offcanvas-menu.open {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-logo img {
    height: 40px;
    background-color: var(--white);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.offcanvas-close {
    font-size: 1.8rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

.offcanvas-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offcanvas-links .nav-link {
    color: var(--grey-300);
    padding: 0;
    font-size: 1.1rem;
}

.offcanvas-links .nav-link:hover {
    color: var(--white);
}

.offcanvas-submenu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
    flex-direction: column;
    gap: 12px;
}

.offcanvas-submenu.open {
    display: flex;
}

.offcanvas-submenu a {
    color: var(--grey-300);
    font-size: 0.95rem;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.offcanvas-overlay.open {
    opacity: 1;
    visibility: visible;
}
