/* THEME: Executive Career Blog
   FONT: Cormorant Garamond (Serif) + Lato (Sans)
   PALETTE: Forest Green, Gold, Paper White
*/

:root {
    --primary: #1b4332;
    /* Deep Forest Green */
    --primary-light: #2d6a4f;
    --accent: #d4a373;
    /* Old Gold */
    --accent-hover: #c58e5f;

    --bg-body: #f8f9fa;
    /* Paper White */
    --bg-card: #ffffff;

    --text-main: #1f2937;
    --text-muted: #6b7280;

    --border-color: #e5e7eb;
    --radius-md: 0.5rem;
    --radius-xl: 1.5rem;
    /* 2xl requirement */

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;

    --container: 1140px;
    --transition: all 0.4s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-style: italic;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

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

.btn--text {
    background: transparent;
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
    padding: 0.5rem 0;
    margin-left: 1.5rem;
    border-radius: 0;
}

.btn--text:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn--full {
    width: 100%;
    margin: 0;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo__img {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: block;
}

.logo__accent {
    color: var(--accent);
}

.nav__list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav__link {
    font-weight: 400;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav__link:hover {
    color: var(--accent);
}

.nav__cta {
    border: 1px solid var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
}

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

/* Burger */
.burger {
    display: none;
    background: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.burger__line:nth-child(1) {
    top: 0;
}

.burger__line:nth-child(2) {
    bottom: 0;
}

@media (max-width: 1024px) {
    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-body);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        border-left: 1px solid var(--border-color);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .burger[aria-expanded="true"] .burger__line:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }

    .burger[aria-expanded="true"] .burger__line:nth-child(2) {
        bottom: 9px;
        transform: rotate(-45deg);
    }
}

/* Hero Section (Asymmetrical) */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.hero__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

@media (min-width: 992px) {
    .hero__wrapper {
        grid-template-columns: 5fr 7fr;
    }

    .hero__content {
        margin-top: 4rem;
        z-index: 2;
        position: relative;
    }

    .hero__image-box {
        position: absolute;
        right: 0;
        top: 0;
        width: 60%;
        height: 100%;
        z-index: 1;
    }
}

.hero__content {
    background: rgba(248, 249, 250, 0.9);
    padding: 3rem 3rem 3rem 0;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0;
    border-bottom: 2px solid var(--accent);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #d1d5db;
    /* Grey placeholder */
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
}

/* Features */
.section {
    padding: 6rem 0;
}

.section__header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
}

.section__desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-style: italic;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* Blog Masonry */
.blog-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

    .post-large {
        grid-column: span 2;
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .post-large .post-image-placeholder {
        width: 50%;
        height: 300px;
        flex-shrink: 0;
    }

    .post-wide {
        grid-column: 1 / -1;
        text-align: center;
        background: var(--primary);
        color: white;
    }

    .post-wide h3,
    .post-wide p,
    .post-wide a {
        color: white;
    }

    .post-wide .post-tag {
        background: white;
        color: var(--primary);
    }
}

.blog-post {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.blog-post:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.post-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.post-large .post-image-placeholder {
    height: 300px;
    border-radius: var(--radius-xl);
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 1px solid;
    margin-top: 1rem;
    display: inline-block;
}

/* Reviews */
.reviews-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.review-author strong {
    display: block;
    font-size: 1rem;
}

.review-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact */
.contact__layout {
    display: grid;
    gap: 4rem;
}

@media (min-width: 992px) {
    .contact__layout {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.2rem;
}

.contact-list li span {
    flex: 1;
}

.contact__form-wrapper {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.error-msg {
    color: #dc2626;
    font-size: 0.8rem;
    position: absolute;
    bottom: -1.2rem;
    left: 0;
}

.link-btn {
    background: none;
    color: var(--primary);
    border-bottom: 1px solid;
    padding: 0;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer__title {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: white;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.footer__copyright {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
}

.footer h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-link,
.footer a {
    color: #d1d5db;
    transition: var(--transition);
    background: none;
    text-align: left;
    padding: 0;
}

.footer-link:hover,
.footer a:hover {
    color: white;
}

/* Popups */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 2px solid var(--accent);
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.cookie-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 67, 50, 0.8);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body {
    color: var(--text-main);
    line-height: 1.8;
}

.modal-body h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body strong {
    color: var(--primary);
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    background: none;
    color: var(--text-main);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-body);
    color: var(--primary);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal--success {
    text-align: center;
}