/* Samdiv Technologies — enterprise-style layout inspired by professional services sites */
/* Brand: logo chartreuse + dark green accent (Main_Logo.JPG) */
:root {
    --brand-lime: #d1e231;
    --brand-lime-muted: #b9c62a;
    --ink: #1a1c12;
    --ink-soft: #2d3220;
    --muted: #5a6048;
    --border: #c4cf88;
    --surface: #f2f4df;
    --surface-alt: #e2e8b8;
    --surface-card: #f7f8ea;
    --accent: #2a5740;
    --accent-hover: #1e4030;
    --accent-soft: rgba(42, 87, 64, 0.14);
    --accent-border: rgba(42, 87, 64, 0.38);
    --lime-soft: rgba(209, 226, 49, 0.22);
    --green: #2a5740;
    --green-soft: rgba(42, 87, 64, 0.14);
    --shadow-sm: 0 1px 2px rgba(26, 28, 18, 0.07);
    --shadow-md: 0 12px 40px rgba(26, 28, 18, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.navbar.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
    padding-block: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
    color: var(--ink);
    text-decoration: none;
}

.nav-link.active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.btn-nav {
    flex-shrink: 0;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: var(--accent-hover);
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 50%, var(--surface-card) 100%);
    padding: 3.5rem 0 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 3rem;
}

@media (min-width: 900px) {
    .hero-layout {
        /* Start-aligned rows: logo card height follows the mark (no empty bands above/below inside the panel) */
        align-items: start;
        gap: clamp(1.75rem, 3vw, 2.5rem);
        padding-bottom: 4rem;
    }

    .hero .hero-copy {
        max-width: none;
    }
}

/* Shared width: logo gets all space to the right of copy; fr split keeps first line on one line when row is tight */
@media (min-width: 900px) and (max-width: 1119px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
    }
}

/* Wide: fixed copy width so the headline never narrows; logo column absorbs every remaining px to the container edge */
@media (min-width: 1120px) {
    .hero-layout {
        grid-template-columns: 720px minmax(0, 1fr);
        gap: clamp(1.75rem, 2.5vw, 2.5rem);
    }
}

.hero-copy {
    max-width: 720px;
}

/* Full hero mark: right column only on wide screens (not stacked under copy) */
.hero-visual {
    display: none;
}

@media (min-width: 900px) {
    .hero-visual {
        display: block;
        justify-self: stretch;
        align-self: start;
        width: 100%;
        padding: 0.4rem 1.25rem;
        background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-alt) 100%);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 900px) {
    .hero-logo {
        max-height: min(48vh, 440px);
    }
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
}

.hero-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.hero-line {
    display: block;
}

.hero-line.accent {
    color: var(--accent);
}

.hero-subtitle {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.stats-bar {
    border-top: 1px solid var(--border);
    background: var(--surface-card);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem 2rem;
}

.stat {
    padding: 0.5rem 0;
    border-left: 3px solid var(--accent);
    padding-left: 1.125rem;
    min-width: 0;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(42, 87, 64, 0.32);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 6px 22px rgba(42, 87, 64, 0.38);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--ink);
    background: var(--accent-soft);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--surface-alt);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-head-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.section-lead {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.65;
}

.prose p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.prose h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--ink);
}

/* Services — four capability cards: one row on wide layouts */
.services > .container {
    width: min(1400px, 100% - 40px);
}

.services-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--lime-soft);
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    color: var(--ink);
}

.service-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Healthcare — wider content band so five cards use horizontal space on large screens */
.healthcare > .container {
    width: min(1400px, 100% - 40px);
}

/* Five portfolio cards: one row on wide layouts */
.healthcare-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1000px) {
    .healthcare-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 599px) {
    .healthcare-grid {
        grid-template-columns: 1fr;
    }
}

.healthcare-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.healthcare-card:hover {
    border-color: rgba(42, 87, 64, 0.45);
    box-shadow: var(--shadow-md);
}

.healthcare-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.healthcare-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    color: var(--ink);
}

.healthcare-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.65;
}

.healthcare-card .healthcare-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}

.healthcare-card .healthcare-links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.healthcare-card .healthcare-links a:hover {
    text-decoration: underline;
}

/* Experience */
.expertise-summary {
    text-align: center;
    max-width: min(56rem, 100%);
    margin: 0 auto 2.5rem;
}

.expertise-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.expertise-item {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    border-left: 4px solid var(--accent);
}

.expertise-item h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.expertise-item h4 i {
    color: var(--accent);
    margin-right: 0.4rem;
}

.expertise-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

.inline-link {
    font-weight: 600;
    color: var(--accent);
}

.inline-link:hover {
    text-decoration: underline;
}

.project-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

/* Contact */
.contact-content {
    max-width: min(42rem, 100%);
}

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

.info-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-card i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.info-card h4 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.info-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.info-card a {
    font-weight: 500;
    color: var(--accent);
}

/* Footer — deep neutral so lime + dark green read clearly */
.footer {
    background: #121408;
    color: #b8c49a;
    padding: 3rem 0 0;
}

.footer a {
    color: var(--brand-lime);
    text-decoration: none;
}

.footer a:hover {
    color: #eef2c8;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(209, 226, 49, 0.15);
}

.footer-brand p {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
    color: #9daa7a;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-lime);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-col h4 {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-lime-muted);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.footer-bottom {
    padding: 1.25rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
    color: #7a8560;
}

/* Responsive */
@media (max-width: 960px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1.75rem;
    }

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

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .btn-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 0.85rem 0;
        border-bottom: none;
    }

    .nav-link.active {
        border-bottom: none;
        color: var(--accent);
    }

}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 3.5rem 0;
    }
}
