
/*
Theme Name: G10 Custom
Theme URI: https://g10kitchensandbathrooms.co.uk/
Author: Webeea
Description: Custom responsive WordPress theme for G10 Kitchens & Bathrooms.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: g10-custom
*/

:root {
    --g10-navy: #172b3a;
    --g10-blue: #1769aa;
    --g10-blue-dark: #105385;
    --g10-light: #eaf2f7;
    --g10-white: #ffffff;
    --g10-text: #273440;
    --g10-muted: #657381;
    --g10-border: #e1e7ec;
    --g10-container: 1200px;
    --g10-radius: 10px;
    --g10-shadow: 0 12px 35px rgba(23, 43, 58, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--g10-text);
    background: var(--g10-white);
    font-size: 16px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--g10-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--g10-blue-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
.button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--g10-blue);
    outline-offset: 4px;
}

.container {
    width: min(var(--g10-container), calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 100;
    background: var(--g10-white);
    border-bottom: 1px solid var(--g10-border);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-branding {
    flex: 0 1 auto;
    min-width: 0;
}

.site-name {
    display: inline-block;
    color: var(--g10-navy);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    width: auto;
    max-width: 240px;
    max-height: 68px;
    object-fit: contain;
}

.primary-navigation {
    margin-left: auto;
}

.primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu li {
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--g10-navy);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.primary-menu a:hover {
    color: var(--g10-blue);
}

.header-cta {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    padding: 9px 12px;
    border: 1px solid var(--g10-border);
    border-radius: 6px;
    color: var(--g10-navy);
    background: var(--g10-white);
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid var(--g10-blue);
    border-radius: 6px;
    background: var(--g10-blue);
    color: var(--g10-white);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.button:hover {
    border-color: var(--g10-blue-dark);
    background: var(--g10-blue-dark);
    color: var(--g10-white);
}

.button-outline {
    border-color: var(--g10-border);
    background: transparent;
    color: var(--g10-navy);
}

.button-outline:hover {
    border-color: var(--g10-navy);
    background: var(--g10-navy);
    color: var(--g10-white);
}

.section {
    padding-block: clamp(56px, 8vw, 100px);
}

.section-light {
    background: var(--g10-light);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading p {
    color: var(--g10-muted);
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--g10-blue);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--g10-navy);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
}

.hero {
    overflow: hidden;
    padding-block: clamp(60px, 8vw, 108px);
    background: var(--g10-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 76px);
}

.hero-copy {
    max-width: 620px;
}

.hero-copy > p {
    max-width: 580px;
    color: var(--g10-muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-image img,
.project-card img,
.service-card img {
    width: 100%;
    object-fit: cover;
}

.hero-image img {
    min-height: 360px;
    max-height: 560px;
    border-radius: var(--g10-radius);
    box-shadow: var(--g10-shadow);
}

.trust-strip {
    padding-block: 26px;
    border-bottom: 1px solid var(--g10-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.trust-item {
    color: var(--g10-navy);
    font-size: 0.94rem;
    font-weight: 700;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.service-card,
.project-card {
    overflow: hidden;
    border: 1px solid var(--g10-border);
    border-radius: var(--g10-radius);
    background: var(--g10-white);
    box-shadow: var(--g10-shadow);
}

.service-card img {
    aspect-ratio: 16 / 10;
}

.service-card-content,
.project-card-content {
    padding: 26px;
}

.service-card-content p,
.project-card-content p {
    color: var(--g10-muted);
}

.text-link {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card img {
    aspect-ratio: 4 / 3;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.why-item {
    padding: 28px;
    border: 1px solid var(--g10-border);
    border-radius: var(--g10-radius);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.process-step {
    padding: 24px;
    border-radius: var(--g10-radius);
    background: var(--g10-light);
}

.process-number {
    display: block;
    margin-bottom: 12px;
    color: var(--g10-blue);
    font-size: 1.5rem;
    font-weight: 800;
}

.faq-list {
    max-width: 850px;
    margin-inline: auto;
}

.faq-item {
    padding-block: 22px;
    border-bottom: 1px solid var(--g10-border);
}

.faq-item h3 {
    font-size: 1.1rem;
}

.cta-section {
    padding-block: 70px;
    background: var(--g10-navy);
    color: var(--g10-white);
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: var(--g10-white);
}

.cta-section p {
    max-width: 700px;
    margin-inline: auto;
}

.site-footer {
    padding-top: 54px;
    background: #10212d;
    color: #e8eef2;
}

.site-footer h2,
.site-footer h3,
.site-footer a {
    color: var(--g10-white);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
}

.footer-bottom {
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--g10-white);
    color: var(--g10-navy);
}

.skip-link:focus {
    top: 16px;
}

@media (max-width: 1050px) {
    .header-inner {
        gap: 16px;
    }

    .primary-menu {
        gap: 14px;
    }

    .primary-menu a {
        font-size: 0.88rem;
    }

    .custom-logo {
        max-width: 190px;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .header-inner {
        min-height: 76px;
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .primary-navigation {
        display: none;
        order: 4;
        width: 100%;
        margin: 0;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding-block: 8px;
    }

    .primary-menu a {
        display: block;
        padding: 12px 4px;
        border-top: 1px solid var(--g10-border);
        font-size: 1rem;
    }

    .header-cta {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        min-height: 0;
        max-height: 440px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 32px);
    }

    .site-name {
        font-size: 1.1rem;
    }

    .custom-logo {
        max-width: 175px;
        max-height: 56px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .service-grid,
    .project-grid,
    .why-grid,
    .process-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        gap: 18px 12px;
    }

    .trust-item {
        font-size: 0.85rem;
    }

    .service-card-content,
    .project-card-content {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* G10 header navigation layout refinement */
.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.site-header .container,
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-header .custom-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 90px;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation li {
    position: relative;
    list-style: none;
}

.primary-navigation li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.primary-navigation li:hover > ul,
.primary-navigation li:focus-within > ul {
    display: flex;
}

.primary-navigation li ul a {
    display: block;
    padding: 10px 12px;
}

.primary-navigation a {
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .site-header .container,
    .site-header .header-inner {
        flex-wrap: wrap;
    }

    .primary-navigation {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-navigation li ul {
        position: static;
        display: flex;
        box-shadow: none;
        border: 0;
        padding-left: 18px;
    }
}

/* G10 service page typography and spacing */
.entry-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.entry-content p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .entry-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* G10 premium header refinement */
.site-header {
    background: #090909;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 100;
}

.site-header .container,
.site-header .header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-header .custom-logo {
    max-width: 155px;
    max-height: 86px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-header .site-title,
.site-header .site-title a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.primary-navigation a {
    color: #f4f4f4;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
    color: #76b7df;
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation li {
    position: relative;
    list-style: none;
}

.site-header .quote-button,
.site-header .button,
.site-header .btn {
    background: var(--g10-brand-accent, #176b99);
    color: #ffffff;
    border: 1px solid var(--g10-brand-accent, #176b99);
    border-radius: 6px;
    padding: 15px 22px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.site-header .quote-button:hover,
.site-header .button:hover,
.site-header .btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .site-header .container,
    .site-header .header-inner {
        min-height: 82px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-header .custom-logo {
        max-width: 120px;
        max-height: 68px;
    }

    .primary-navigation {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-navigation a {
        display: block;
        padding: 10px 0;
    }

    .site-header .quote-button,
    .site-header .button,
    .site-header .btn {
        align-self: flex-start;
    }
}

/* G10 dark header - readable Services dropdown */
.site-header .primary-navigation li ul,
.site-header .primary-navigation .sub-menu {
    background: #111111;
    border: 1px solid #383838;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    padding: 10px;
}

.site-header .primary-navigation li ul a,
.site-header .primary-navigation .sub-menu a {
    display: block;
    color: #ffffff !important;
    padding: 12px 16px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .primary-navigation li ul a:hover,
.site-header .primary-navigation .sub-menu a:hover {
    background: #176b99;
    color: #ffffff !important;
}

/* Keep dropdown text readable when hovering or tabbing */
.site-header .primary-navigation li:hover > ul,
.site-header .primary-navigation li:focus-within > ul {
    z-index: 9999;
}
