/* ============================================
   HS Contracting Services Ltd
   Main Stylesheet
   Colours: Navy #1B3A5C / White / Light Grey
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1B3A5C;
    --navy-dark: #0F2337;
    --navy-light: #264D73;
    --white: #FFFFFF;
    --grey-light: #F5F7FA;
    --grey-border: #E2E8F0;
    --grey-text: #64748B;
    --text: #1E293B;
    --shadow: 0 2px 8px rgba(27, 58, 92, 0.08);
    --shadow-lg: 0 8px 24px rgba(27, 58, 92, 0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--navy-light);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header / Navigation --- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    height: 140px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy);
}

.logo img {
    height: 120px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.logo-text .company-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navy);
    transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--navy);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
}

.header-phone {
    display: none;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
}

/* --- Hero Sections --- */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.hero-phone {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-phone a {
    color: var(--white);
}

.hero-phone a:hover {
    opacity: 0.9;
}

/* Page-level heroes (smaller) */
.hero-page {
    padding: 56px 0;
}

.hero-page h1 {
    font-size: 2.25rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-navy:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section-grey {
    background: var(--grey-light);
}

.section-navy {
    background: var(--navy);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-navy .section-header h2 {
    color: var(--white);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--grey-text);
    max-width: 600px;
    margin: 0 auto;
}

.section-navy .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Service Cards Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--grey-border);
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--grey-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--grey-text);
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-card .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
}

/* --- Features / Why Choose Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 24px;
}

.feature .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--grey-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-navy .feature .icon {
    background: rgba(255, 255, 255, 0.15);
}

.feature .icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-navy .feature .icon svg {
    stroke: var(--white);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.section-navy .feature h3 {
    color: var(--white);
}

.feature p {
    font-size: 0.95rem;
    color: var(--grey-text);
    line-height: 1.5;
}

.section-navy .feature p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--navy);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Service Detail Page --- */
.service-detail {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.service-content h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.service-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-content ul {
    margin-bottom: 24px;
}

.service-content ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.5;
}

.service-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--navy);
    border-radius: 50%;
}

/* Sidebar */
.service-sidebar {
    background: var(--grey-light);
    border-radius: var(--radius);
    padding: 32px;
    position: sticky;
    top: 104px;
}

.service-sidebar h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
}

.service-sidebar ul li {
    border-bottom: 1px solid var(--grey-border);
}

.service-sidebar ul li:last-child {
    border-bottom: none;
}

.service-sidebar ul li a {
    display: block;
    padding: 12px 0;
    color: var(--text);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.service-sidebar ul li a:hover,
.service-sidebar ul li a.active {
    color: var(--navy);
    font-weight: 600;
}

.sidebar-cta {
    margin-top: 24px;
    padding: 24px;
    background: var(--navy);
    border-radius: var(--radius);
    color: var(--white);
    text-align: center;
}

.sidebar-cta h4 {
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.sidebar-cta .btn {
    width: 100%;
    font-size: 0.9rem;
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
}

.form-message {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* Contact info panel */
.contact-info {
    background: var(--grey-light);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-info h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item .icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.95rem;
    color: var(--grey-text);
}

/* --- About Page --- */
.about-content {
    max-width: 800px;
}

.about-content h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 16px;
    margin-top: 40px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--white);
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-about .logo {
    margin-bottom: 12px;
}

.footer-about .logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-about .logo .logo-text .company-name,
.footer-about .logo .logo-text .company-tagline {
    color: rgba(255, 255, 255, 0.9);
}

.footer-about .logo .logo-text .company-tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    stroke: rgba(255, 255, 255, 0.7);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 3px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 12px 0;
    background: var(--grey-light);
    font-size: 0.85rem;
}

.breadcrumbs a {
    color: var(--grey-text);
}

.breadcrumbs a:hover {
    color: var(--navy);
}

.breadcrumbs span {
    color: var(--grey-text);
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--navy);
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 140px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--grey-border);
        box-shadow: var(--shadow-lg);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        padding: 16px 24px;
        border-bottom: 1px solid var(--grey-border);
        width: 100%;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .header-phone {
        display: block;
    }

    .hero {
        padding: 56px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.05rem;
    }

    .hero-phone {
        font-size: 1.25rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }
}
