/* Syam & Co Custom Website Style
   =======================================================
   Main layout and responsive styling.
   Theme colors are controlled from assets/css/theme.css
*/

/* =======================================================
   Base
======================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

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

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

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

address {
    font-style: normal;
    line-height: 1.7;
    color: var(--muted);
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 1000;
}

.skip-link:focus {
    top: 16px;
}

/* =======================================================
   Header / Navigation
======================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    flex-shrink: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-logo {
    width: auto;
    height: 88px;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.82rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.main-nav a {
    color: var(--text);
    font-weight: 700;
    font-size: 0.93rem;
    padding: 10px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 999px;
}

/* =======================================================
   Hero
======================================================= */

.hero {
    padding: 88px 0;
    background:
        radial-gradient(circle at top right, rgba(15, 53, 87, 0.16), transparent 36%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #f4f8fb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.15rem, 4.4vw, 4.35rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero p,
.page-hero p,
.section-heading p {
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-content > p:last-of-type {
    max-width: 760px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =======================================================
   Buttons
======================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--primary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-light:hover {
    background: var(--accent-soft);
    color: var(--primary-dark);
}

/* =======================================================
   Cards / Lists
======================================================= */

.hero-card,
.feature-card,
.content-card,
.service-card,
.person-card,
.client-card,
.contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
}

.hero-card h2,
.feature-card h3,
.content-card h2,
.service-card h2,
.person-card h2,
.contact-card h2 {
    margin-top: 0;
}

.check-list,
.service-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.check-list li,
.service-list li {
    position: relative;
    padding-left: 30px;
    margin: 12px 0;
    color: var(--muted);
}

.check-list li::before,
.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
}

.service-list {
    margin: 18px 0 20px;
}

/* =======================================================
   Sections
======================================================= */

.section {
    padding: 74px 0;
}

.section-muted {
    background: var(--bg-soft);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading h2,
.split h2,
.narrow h2,
.cta-box h2 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.narrow {
    max-width: 860px;
}

.narrow p {
    color: var(--muted);
    font-size: 1.04rem;
}

/* =======================================================
   Grids
======================================================= */

.feature-grid,
.content-grid,
.service-grid,
.people-grid,
.client-grid,
.contact-grid {
    display: grid;
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.content-grid,
.contact-grid {
    grid-template-columns: repeat(2, 1fr);
}

.service-grid {
    grid-template-columns: repeat(4, 1fr);
}

.people-grid {
    grid-template-columns: repeat(3, 1fr);
}

.client-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.content-card,
.service-card,
.person-card,
.contact-card {
    padding: 26px;
}

.feature-card p,
.content-card p,
.service-card p,
.person-card p,
.contact-card p {
    color: var(--muted);
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card a {
    margin-top: auto;
    font-weight: 800;
}

/* =======================================================
   Page Hero
======================================================= */

.page-hero {
    padding: 76px 0;
    background:
        linear-gradient(135deg, rgba(15, 53, 87, 0.97), rgba(9, 35, 59, 0.97)),
        var(--primary);
    color: #fff;
}

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

.page-hero p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.84);
}

/* =======================================================
   Split Section / CTA
======================================================= */

.split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: center;
}

.split p {
    color: var(--muted);
}

.mini-service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mini-service-list a {
    display: block;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    font-weight: 800;
}

.cta-section {
    background: var(--primary);
    color: #fff;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

/* =======================================================
   People
======================================================= */

.person-card {
    min-height: 100%;
}

.person-photo {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    margin-bottom: 18px;
    overflow: hidden;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-photo span {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.person-card h2 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.person-role {
    color: var(--accent);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
}

/* =======================================================
   Clients
======================================================= */

.client-card {
    min-height: 112px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: var(--text);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.client-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.client-card span {
    display: block;
}

/* =======================================================
   Contact
======================================================= */

.contact-detail-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.contact-detail-list p {
    margin: 0;
    padding: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
}

.map-placeholder {
    margin-top: 24px;
    min-height: 220px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--bg-soft);
    text-align: center;
    padding: 20px;
}

.map-embed {
    margin-top: 24px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.map-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* =======================================================
   Footer
======================================================= */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 0.8fr;
    gap: 36px;
    padding: 54px 0;
}

.site-footer h2 {
    color: #fff;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.site-footer p,
.site-footer address {
    color: var(--footer-muted);
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-tagline {
    color: var(--accent) !important;
    font-weight: 800;
    margin-top: -4px;
}

.footer-contact-list {
    display: grid;
    gap: 8px;
}

.footer-contact-list span {
    display: block;
}

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

.footer-links li {
    margin: 8px 0;
}

.footer-links a.active {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
    font-size: 0.92rem;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-muted);
}

/* =======================================================
   Responsive - Tablet
======================================================= */

@media (max-width: 1100px) {
    .brand-logo {
        width: auto;
        height: 78px;
        max-width: 200px;
    }

    .main-nav a {
        font-size: 0.88rem;
        padding: 9px 10px;
    }

    .service-grid,
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .split,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .people-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        border-radius: 12px;
        font-size: 0.98rem;
        padding: 12px 14px;
    }

    .nav-toggle {
        display: inline-block;
        flex-shrink: 0;
    }

    .footer-grid {
        gap: 28px;
    }
}

/* =======================================================
   Responsive - Mobile
======================================================= */

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .brand-logo {
        width: auto;
        height: 58px;
        max-width: calc(100vw - 96px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 0.86rem;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .hero,
    .section,
    .page-hero {
        padding: 52px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .hero p,
    .page-hero p,
    .section-heading p {
        font-size: 1rem;
    }

    .feature-grid,
    .service-grid,
    .people-grid,
    .client-grid,
    .footer-grid,
    .mini-service-list {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .feature-card,
    .content-card,
    .service-card,
    .person-card,
    .contact-card {
        padding: 22px;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-embed iframe {
        height: 300px;
    }
}

@media (max-width: 420px) {
    .brand-logo {
        width: auto;
        height: 52px;
        max-width: calc(100vw - 92px);
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }

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

    .btn {
        width: 100%;
    }
}