/* Master Stylesheet for S R Thorpe Drainage & Guttering
   Domain: srthorpedrainageguttering.com
   Based on the clean, professional UK trade style of drainage-portsmouth.uk
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
    --primary: #005ba9;
    --primary-dark: #004580;
    --primary-deep: #003366;
    --secondary: #2b3a4a;
    --dark: #1f2c38;
    --text-color: #555555;
    --text-dark: #222222;
    --light-bg: #f8f9fa;
    --border-color: #e5e9ec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Roboto', 'Lato', sans-serif;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #444;
    text-decoration: none;
    transition: all 0.25s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
h5 { font-size: 15px; }

p {
    margin-bottom: 15px;
}

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

ul, ol {
    margin-bottom: 15px;
}

/* Container & Grid (Bootstrap style) */
.container {
    width: 100%;
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

/* Default / Mobile (col-xs or stacked) */
.col-xs-12, .col-12 { flex: 0 0 100%; max-width: 100%; }
.col-xs-11, .col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-xs-10, .col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-xs-9,  .col-9  { flex: 0 0 75%; max-width: 75%; }
.col-xs-8,  .col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-xs-7,  .col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-xs-6,  .col-6  { flex: 0 0 50%; max-width: 50%; }
.col-xs-5,  .col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-xs-4,  .col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-xs-3,  .col-3  { flex: 0 0 25%; max-width: 25%; }
.col-xs-2,  .col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-xs-1,  .col-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-9  { flex: 0 0 75%; max-width: 75%; }
    .col-sm-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-6  { flex: 0 0 50%; max-width: 50%; }
    .col-sm-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-3  { flex: 0 0 25%; max-width: 25%; }
    .col-sm-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-9  { flex: 0 0 75%; max-width: 75%; }
    .col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-6  { flex: 0 0 50%; max-width: 50%; }
    .col-md-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-3  { flex: 0 0 25%; max-width: 25%; }
    .col-md-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

/* Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .col-lg-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-6  { flex: 0 0 50%; max-width: 50%; }
    .col-lg-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-3  { flex: 0 0 25%; max-width: 25%; }
}

.pull-right { float: right; }
.pull-left  { float: left; }
.text-center { text-align: center; }
.text-align-center { text-align: center; }
.text-left { text-align: left; }
.clearfix::after { content: ""; clear: both; display: table; }

/* Responsive Visibility Utilities */
.desktop-only { display: block; }
.mobile-only  { display: none !important; }
.site-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.btn-default {
    background-color: #f1f3f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-default:hover {
    background-color: #e2e6ea;
    color: #000;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 15px;
}

hr.sm {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border: none;
    margin: 15px auto 30px auto;
}

/* Spacers */
.spacer-20 { height: 20px; }
.spacer-40 { height: 40px; }
.spacer-50 { height: 50px; }
.spacer-60 { height: 60px; }

/* ==================================================
   Header Wrapper
   ================================================== */
.header-wrapper {
    background: #fff;
    border-top: 3px solid var(--primary);
}

.site-header {
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.main-logo-text {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-inner-text {
    color: var(--primary);
}

.site-tagline {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-header-right {
    display: flex;
    align-items: center;
}

.header-info-cols {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-bottom: 0;
}

.header-info-cols li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-info-cols li .icon-col {
    width: 42px;
    height: 42px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.3s;
}

.header-info-cols li:hover .icon-col {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.header-info-cols strong {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.header-info-cols a, .header-info-cols span {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.header-info-cols a:hover {
    color: var(--primary);
}

/* ==================================================
   Main Navigation & Mega Menu
   ================================================== */
.main-navigation {
    background-color: var(--dark);
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dd-menu {
    list-style: none;
    display: flex;
    margin-bottom: 0;
}

.dd-menu > li {
    position: relative;
}

.dd-menu > li > a {
    display: block;
    padding: 16px 18px;
    color: #e5e9ec;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.dd-menu > li:hover > a,
.dd-menu > li.active > a {
    background-color: var(--primary);
    color: #ffffff;
}

/* Standard Dropdown */
.dd-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    display: none;
    z-index: 1000;
    border-top: 3px solid var(--primary);
}

.dd-menu li:hover > .sub-menu {
    display: block;
}

.dd-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.dd-menu .sub-menu li a:hover {
    background: #f8f9fa;
    color: var(--primary);
    padding-left: 22px;
}

/* Mega Menu */
.dd-menu > li.megamenu {
    position: static;
}

.dd-menu > li.megamenu > .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    list-style: none;
    display: none;
    z-index: 1000;
    border-top: 3px solid var(--primary);
    padding: 25px 0;
}

.dd-menu > li.megamenu:hover > .dropdown {
    display: block;
}

.megamenu-col h3 {
    font-size: 15px;
    text-transform: uppercase;
    color: var(--primary);
    border-bottom: 2px solid #eef0f3;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.megamenu-col .sub-menu {
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    border-top: none;
    margin-bottom: 20px;
}

.megamenu-col .sub-menu li a {
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.megamenu-col .sub-menu li a::before {
    content: "›";
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.megamenu-col .sub-menu li a:hover {
    color: var(--primary);
    padding-left: 5px;
    background: transparent;
}

.quote-head-btn {
    margin-left: 20px;
    padding: 10px 18px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    align-items: center;
}

.social-icons li a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.social-icons li a:hover {
    background: var(--primary);
}

#menu-toggle {
    display: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    cursor: pointer;
}

/* ==================================================
   Hero Slider Area
   ================================================== */
.hero-area {
    position: relative;
    overflow: hidden;
    background-color: #1a252f;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 460px;
}

.hero-slide {
    position: relative;
    min-height: 460px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20, 30, 45, 0.82) 0%, rgba(20, 30, 45, 0.65) 100%);
}

.flex-caption {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 80px 0;
    text-align: center;
}

.flex-caption h2 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.flex-caption p {
    color: #e1e8ed;
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.basic-link {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(74, 137, 220, 0.4);
    transition: all 0.3s;
}

.basic-link:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==================================================
   Content Sections
   ================================================== */
.content {
    padding: 50px 0 0 0;
}

.shadow-row {
    padding-bottom: 20px;
}

.connected-blocks {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.3s;
}

.connected-blocks:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(74, 137, 220, 0.12);
}

.connected-blocks .icon {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: #edf3fc;
    color: var(--primary);
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.connected-blocks h5 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Why Choose Us 4-Col Feature Blocks */
.lgray-bg {
    background-color: #f6f8fa;
    padding: 50px 0;
    border-top: 1px solid #ebeff3;
    border-bottom: 1px solid #ebeff3;
}

.stacked-title {
    font-size: 22px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 35px;
    position: relative;
}

.stacked-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0 auto;
}

.feature-block {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border-color);
    height: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.feature-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.feature-block .icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
}

.feature-block h5 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-block p {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
}

/* ==================================================
   Services Grid & Cards
   ================================================== */
.service-grid-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.service-grid-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(74, 137, 220, 0.15);
    transform: translateY(-3px);
}

.service-grid-item .media-box {
    position: relative;
    display: block;
    overflow: hidden;
    height: 180px;
    background: #edf2f7;
}

.service-grid-item .media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-grid-item:hover .media-box img {
    transform: scale(1.05);
}

.grid-item-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-item-inner h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.grid-item-inner h4 a {
    color: var(--dark);
}

.grid-item-inner h4 a:hover {
    color: var(--primary);
}

.grid-item-inner p {
    font-size: 13px;
    color: #666;
    flex-grow: 1;
    margin-bottom: 15px;
}

.grid-item-inner .more {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.grid-item-inner .more:hover {
    color: var(--primary-deep);
    padding-left: 4px;
}

/* ==================================================
   Modular Callouts & Problem Checklist
   ================================================== */
.modular-row.callout {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.listing-page {
    background-color: var(--primary);
    color: #fff;
    border-radius: 4px;
    padding: 20px;
}

.listing-page ul {
    list-style: none;
    margin-bottom: 8px;
    padding-left: 0;
}

.listing-page ul li {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

.listing-page ul li:not(.callout-phone-item) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.listing-page ul li a {
    color: #fff;
    text-decoration: underline;
}

.listing-page ul li i {
    background: rgba(255,255,255,0.25);
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-top: 1px;
}

.listing-page .callout-phone-item {
    display: block !important;
    width: 100%;
}

/* Bottom Call to Action Banner */
.bottom-call-to-action {
    background: var(--primary);
    color: #fff;
    padding: 24px 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
}

.bottom-call-to-action p {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.bottom-call-to-action a.btn-cta {
    background: #ffffff;
    color: var(--dark) !important;
    padding: 10px 22px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.bottom-call-to-action a.btn-cta:hover {
    background: var(--dark);
    color: #ffffff !important;
}

/* Information / SEO Section */
.info-section {
    padding: 30px 0;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.info-section ul li::before {
    content: "•";
    color: var(--primary);
    font-size: 18px;
    position: absolute;
    left: 4px;
    top: -2px;
}

/* ==================================================
   Site Footer
   ================================================== */
.site-footer {
    background-color: var(--dark);
    color: #a0aec0;
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--primary);
}

.footer_widget {
    margin-bottom: 30px;
}

.footer_widget .widgettitle {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer_widget .widgettitle i {
    color: var(--primary);
}

.footer_widget p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
}

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

.widget_links ul li {
    margin-bottom: 8px;
}

.widget_links ul li a {
    color: #a0aec0;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.widget_links ul li a::before {
    content: "›";
    color: var(--primary);
    font-size: 14px;
}

.widget_links ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.site-footer-bottom {
    background-color: #17212a;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.copyrights-col-left p {
    margin: 0;
    font-size: 12px;
    color: #718096;
}

.copyrights-col-left a {
    color: #a0aec0;
}

.copyrights-col-left a:hover {
    color: #ffffff;
}

.social-icons-rounded {
    list-style: none;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: 0;
}

.social-icons-rounded li a {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.social-icons-rounded li a:hover {
    background: var(--primary);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s;
}

#back-to-top:hover {
    background: var(--dark);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d2d6dc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Alert Boxes */
.alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Page Header Banner */
.page-header-banner {
    background: linear-gradient(135deg, #1f2c38 0%, #2b3a4a 100%);
    color: #fff;
    padding: 45px 0;
    border-bottom: 3px solid var(--primary);
}

.page-header-banner h1 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 30px;
}

.page-header-banner p {
    color: #cbd5e0;
    font-size: 15px;
    margin-bottom: 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin-top: 10px;
    font-size: 12px;
}

.breadcrumb li a {
    color: var(--primary);
}

.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    color: #718096;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li:last-child {
    color: #a0aec0;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark);
    margin-top: 15px;
}

.testimonial-author span {
    font-weight: 400;
    color: #888;
    font-size: 12px;
    display: block;
}

/* ==================================================
   Responsive Styles & Mobile Friendliness
   ================================================== */
@media (max-width: 991px) {
    .desktop-only { display: none !important; }
    .mobile-only  { display: flex !important; }

    /* Top Bar Mobile - Clean, sleek single line */
    .top-bar {
        padding: 5px 0 !important;
        font-size: 11px !important;
    }
    .top-bar .container {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    .top-bar-left {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Single-Row Mobile Header (~55px height) */
    .site-header {
        padding: 8px 0 !important;
        background: #ffffff !important;
    }
    .site-header-flex {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .site-logo {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }
    .site-logo img {
        max-height: 38px !important;
        max-width: 175px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    .main-logo-text {
        font-size: 17px !important;
    }

    /* Mobile Quick Actions: Sleek Call pill + hamburger menu */
    .mobile-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .mobile-nav-call {
        background: #e11d48 !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        padding: 7px 14px !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3) !important;
        white-space: nowrap !important;
    }
    .mobile-nav-call:hover, .mobile-nav-call:active {
        background: #be123c !important;
        color: #ffffff !important;
    }
    .mobile-menu-btn {
        background: #005ba9 !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 6px !important;
        width: 36px !important;
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 17px !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(0, 91, 169, 0.2) !important;
        padding: 0 !important;
    }
    .mobile-menu-btn:hover, .mobile-menu-btn:active {
        background: #004480 !important;
    }

    /* Dropdown Navigation */
    .main-navigation {
        background: transparent !important;
        border-bottom: none !important;
        padding: 0 !important;
        position: relative !important;
    }
    .main-navigation .container {
        padding: 0 !important;
    }
    #menu-toggle {
        display: none !important;
    }
    .nav-phone-btn {
        display: none !important;
    }
    .dd-menu {
        display: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #003e73 !important;
        border-top: 2px solid #005ba9 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        z-index: 9999 !important;
        border-radius: 0 0 8px 8px !important;
        list-style: none !important;
    }
    .dd-menu.open {
        display: block !important;
    }
    .dd-menu > li {
        width: 100% !important;
        display: block !important;
    }
    .dd-menu > li > a {
        padding: 13px 22px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        text-decoration: none !important;
    }
    .dd-menu > li.active > a,
    .dd-menu > li > a:hover {
        background: #002d54 !important;
        color: #63b3ed !important;
    }

    /* Grid fallback */
    [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Quote Section Stacking & Fix */
    .quote-booking-wrapper {
        padding: 25px 18px !important;
    }
    .quote-form-col {
        margin-bottom: 25px;
    }
    .quote-info-col {
        margin-top: 10px;
    }
    .quote-emergency-card {
        padding: 28px 18px !important;
    }

    /* Content & Blocks */
    .flex-caption h2 {
        font-size: 24px;
    }
    
    .bottom-call-to-action {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .bottom-call-to-action .btn {
        width: 100%;
        text-align: center;
    }

    .modular-row.callout {
        padding: 20px 15px !important;
    }
}

@media (max-width: 767px) {
    /* Top Bar Mobile */
    .top-bar {
        padding: 4px 0 !important;
        font-size: 11px !important;
    }
    .top-bar .container {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    .top-bar-left {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Hero section */
    .hero-area .hero-overlay {
        min-height: 260px !important;
    }
    .hero-area .container {
        padding: 35px 15px !important;
    }
    .hero-area h2 {
        font-size: 20px !important;
        line-height: 1.35 !important;
        margin-bottom: 18px !important;
    }
    .basic-link {
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding: 10px 22px !important;
        font-size: 13.5px !important;
        border-radius: 4px !important;
    }

    /* Page Header Banner on Mobile */
    .page-header-banner {
        padding: 28px 0 !important;
    }
    .page-header-banner h1 {
        font-size: 22px !important;
    }
    .page-header-banner p {
        font-size: 13.5px !important;
    }

    /* Service card grid on mobile */
    .service-grid-item {
        margin-bottom: 20px;
    }
    .service-grid-item .media-box {
        height: 190px !important;
    }

    /* Listing Page & Common Problems Box on Mobile */
    .listing-page {
        padding: 16px 14px !important;
        border-radius: 6px;
    }
    .listing-page ul li {
        font-size: 13.5px !important;
        margin-bottom: 9px;
    }
    .listing-page .callout-phone-item a {
        display: inline-flex !important;
        max-width: 100% !important;
        box-sizing: border-box;
        text-align: center;
        padding: 11px 16px !important;
        font-size: 15px !important;
    }

    /* Regional Directory on Mobile */
    .info-section ul {
        padding-left: 18px !important;
    }
    .info-section ul li {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 8px;
    }

    /* Back To Top on Mobile */
    #back-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 12px !important;
        opacity: 0.85;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 35px 0 15px 0;
        text-align: center;
    }
    .site-footer .footer_widget {
        margin-bottom: 28px;
    }
    .site-footer .footer_widget widget_links ul {
        padding-left: 0;
    }
    .site-footer-bottom {
        text-align: center;
        padding: 15px 0;
    }
    .site-footer-bottom .copyrights-col-left,
    .site-footer-bottom .text-right {
        text-align: center !important;
        margin: 5px 0;
    }
}

@media (min-width: 992px) {
    .quote-emergency-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
