/* ===================================
   Yorkshire Built Group — Brand Stylesheet
   Colours: Navy #1B2A4A | Orange #E8732A | Slate #3A4F6F | White #FFFFFF
   Fonts: Montserrat (headings) | Open Sans (body)
   =================================== */

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

:root {
    --navy: #1B2A4A;
    --navy-dark: #111D33;
    --navy-light: #243656;
    --orange: #E8732A;
    --orange-dark: #D4611E;
    --orange-light: #F5924D;
    --slate: #3A4F6F;
    --grey-light: #F4F5F7;
    --grey: #E2E4E8;
    --grey-dark: #6B7280;
    --white: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --shadow: 0 4px 24px rgba(27, 42, 74, 0.10);
    --shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent { color: var(--orange); }

.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 115, 42, 0.4);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--grey-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-emergency {
    background: #DC2626;
    color: var(--white);
    border-color: #DC2626;
    animation: pulse-border 2s infinite;
}
.btn-emergency:hover {
    background: #B91C1C;
    border-color: #B91C1C;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Top Bar --- */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item a {
    color: var(--white);
    transition: color var(--transition);
}
.top-bar-item a:hover { color: var(--orange); }

.top-bar-right { color: rgba(255,255,255,0.7); }

/* --- Header / Nav --- */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--orange);
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy);
    letter-spacing: 1px;
}

.logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--orange);
    letter-spacing: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--navy);
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-link:hover, .nav-link.active {
    color: var(--orange);
    background: rgba(232, 115, 42, 0.08);
}

.nav-link.emergency-link {
    background: #DC2626;
    color: var(--white);
    margin-left: 8px;
}
.nav-link.emergency-link:hover {
    background: #B91C1C;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 120px 0 100px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: 40px 40px;
    z-index: 1;
}

/* Hero photo layer — shows images/hero.jpg if present; falls back to the navy
   gradient on .hero if the file is missing (background-image simply no-ops). */
.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(17,29,51,0.92) 0%, rgba(27,42,74,0.82) 45%, rgba(27,42,74,0.55) 100%);
    z-index: 1;
}

/* Real photo in the "Built on trust" block */
.why-image img,
.about-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 115, 42, 0.2);
    color: var(--orange-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--orange);
}

.trust-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(232, 115, 42, 0.1);
    color: var(--orange);
    padding: 4px 14px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Services Grid --- */
.services-section { background: var(--grey-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(232, 115, 42, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--orange);
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--orange);
    transition: color var(--transition);
}
.service-link:hover { color: var(--orange-dark); }

/* --- Why Section --- */
.why-section { background: var(--white); }

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.why-content > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.why-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.check-icon {
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-feature strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.why-feature p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.why-image-placeholder {
    background: var(--grey-light);
    border-radius: var(--radius-lg);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--grey);
    color: var(--text-light);
}
.why-image-placeholder span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    padding: 64px 0;
}

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

.cta-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Areas Section --- */
.areas-section { background: var(--white); }

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.area-tag {
    background: var(--grey-light);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
    transition: all var(--transition);
    border: 1px solid var(--grey);
}
.area-tag:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* --- Footer --- */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo .logo-icon { color: var(--orange); font-size: 1.5rem; }
.footer-logo .logo-name { color: var(--white); font-size: 1rem; }
.footer-logo .logo-sub { color: var(--orange); font-size: 0.65rem; }

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--orange); }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-contact .icon {
    stroke: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .top-bar-left { flex-direction: column; gap: 4px; }
    .top-bar-right { display: none; }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
    }
    .nav.active { display: flex; }
    .nav-link { width: 100%; padding: 12px 16px; }
    .nav-link.emergency-link { margin-left: 0; margin-top: 8px; text-align: center; }
    .nav-toggle { display: flex; }

    .hero { padding: 80px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero-trust { flex-direction: column; gap: 16px; align-items: flex-start; }
    .trust-divider { width: 40px; height: 1px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; justify-content: center; }

    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
}

/* --- Page Styles (shared across subpages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 80px 0 48px;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--grey);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 115, 42, 0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

/* --- Emergency Page --- */
.emergency-hero {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
}

.emergency-hero h1 { color: var(--white); }

.emergency-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: var(--white);
    margin: 24px 0;
}

.emergency-number a { color: var(--white); }
