/* -----------------------------------
   RESET & BASE
--------------------------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-color: #f3f4f6;
}

/* Smooth transitions for interactive elements */
a,
button,
.btn,
.card,
.main-nav a {
    transition: all 0.2s ease-in-out;
}

a {
    color: #1f4f86;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Utility */
.text-center {
    text-align: center;
}

.lead {
    font-size: 1.05rem;
    color: #4b5563;
}

/* -----------------------------------
   HEADER & NAVIGATION
--------------------------------------*/
.site-header {
    background: rgba(10, 25, 47, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

/* Logo */
.logo {
    flex: 0 0 auto;
}

.logo a {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f9fafb;
}

.logo-subtitle {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

/* Nav */
.main-nav {
    flex: 1 1 auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.15rem;
    flex-wrap: nowrap;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    padding: 0.35rem 0.15rem;
    font-size: 0.93rem;
    color: #e5e7eb;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    border-bottom-color: #fbbf24;
    color: #ffffff;
}

/* Header CTA */
.header-cta {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* -----------------------------------
   DROPDOWN (Expertise)
--------------------------------------*/
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    position: relative;
    padding-right: 1.2rem;
}

/* Caret icon */
.has-dropdown > a::after {
    content: "▾";
    font-size: 0.65rem;
    margin-left: 0.25rem;
    color: #9ca3af;
}

/* Dropdown menu */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 190px;
    background-color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    border-radius: 0.45rem;
    padding: 0.4rem 0;
    z-index: 60;
}

.has-dropdown .dropdown li {
    list-style: none;
}

.has-dropdown .dropdown a {
    display: block;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
    color: #111827;
    border-bottom: none;
}

.has-dropdown .dropdown a:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Show dropdown on hover (desktop) */
.has-dropdown:hover .dropdown {
    display: block;
}

/* -----------------------------------
   BUTTONS
--------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, #1f4f86, #0b305b);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #163a63, #081b33);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
}

.btn-outline {
    border-color: #fbbf24;
    color: #fbbf24;
    background: transparent;
}

.btn-outline:hover {
    background-color: #fbbf24;
    color: #111827;
    transform: translateY(-1px);
}

/* -----------------------------------
   MAIN LAYOUT & SECTIONS
--------------------------------------*/
.site-main {
    padding-bottom: 3.5rem;
}

/* Shared section styling */
.section {
    padding: 3.25rem 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-muted {
    background: radial-gradient(circle at top left, #e5f0ff 0, #f3f4f6 40%, #e5e7eb 100%);
}

/* Section headings with accent line */
.section h1,
.section h2 {
    margin-bottom: 1rem;
    color: #111827;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.section h1::before,
.section h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fbbf24, #f97316);
}

/* General paragraph spacing */
.section p {
    margin-bottom: 0.6rem;
}

/* -----------------------------------
   HERO
--------------------------------------*/
.hero {
    background: radial-gradient(circle at top left, #fbbf24 0, #1f2937 40%, #020617 100%);
    color: #ffffff;
    padding: 4.1rem 0 3.25rem;
    position: relative;
    overflow: hidden;
}

/* subtle glow overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(248, 250, 252, 0.12), transparent 60%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
    gap: 2.4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: #e5e7eb;
}

.hero .tagline {
    font-style: italic;
    margin: 0.8rem 0 1.1rem;
    color: #fef3c7;
}

.hero p {
    color: #e5e7eb;
}

.hero .buttons {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-card {
    background: rgba(15, 23, 42, 0.86);
    border-radius: 1rem;
    padding: 1.35rem 1.4rem;
    font-size: 0.95rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card p {
    margin-bottom: 0.35rem;
}

.small-heading {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* -----------------------------------
   GRIDS & CARDS
--------------------------------------*/
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
    margin-top: 1.7rem;
}

.card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.3rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(209, 213, 219, 0.7);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), transparent 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    color: #111827;
    font-weight: 600;
}

.card p {
    color: #4b5563;
    font-size: 0.95rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border-color: rgba(251, 191, 36, 0.7);
}

.card:hover::before {
    opacity: 1;
}

/* -----------------------------------
   FORMS
--------------------------------------*/
form {
    margin-top: 1.1rem;
}

form .form-row {
    margin-bottom: 1rem;
}

form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #374151;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    background-color: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #1f4f86;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background-color: #ffffff;
}

form textarea {
    min-height: 130px;
    resize: vertical;
}

/* -----------------------------------
   FOOTER
--------------------------------------*/
.site-footer {
    background-color: #020617;
    color: #9ca3af;
    padding: 1.75rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(55, 65, 81, 0.9);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: #e5e7eb;
    margin-left: 0.5rem;
}

.site-footer a:hover {
    color: #fbbf24;
}

/* -----------------------------------
   RESPONSIVE
--------------------------------------*/
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-card {
        margin-top: 1.2rem;
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .logo {
        flex-basis: 100%;
        margin-bottom: 0.3rem;
    }

    .main-nav {
        order: 2;
        flex-basis: 100%;
    }

    .main-nav ul {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .header-cta {
        order: 3;
        margin-top: 0.5rem;
        margin-left: 0;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Dropdown becomes inline list on mobile */
    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        padding: 0.2rem 0 0.2rem 0.7rem;
        margin-top: 0.25rem;
        border-radius: 0;
        background: transparent;
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    .has-dropdown .dropdown a {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 3.2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}
