/* Devon Roofing - Complete Stylesheet */

/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
    --primary: #1a5f7a;
    --primary-dark: #134a5f;
    --primary-light: #2d7d9a;
    --secondary: #e8601c;
    --secondary-dark: #c54f14;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --grey-dark: #4a4a5a;
    --grey: #6b6b7b;
    --grey-light: #9a9aaa;
    --grey-lighter: #e8e8ed;
    --grey-lightest: #f5f5f8;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Mulish', 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--grey-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================
   2. Header
   ============================================ */
.tt-header {
    position: relative;
    z-index: 1000;
}

.tt-header-top {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.tt-header-top__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tt-header-top__left,
.tt-header-top__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tt-header-top__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tt-header-top__item a {
    color: var(--white);
}

.tt-header-top__item a:hover {
    color: var(--secondary);
}

.tt-header-main {
    background: var(--white);
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.tt-header-main__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.tt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.tt-logo:hover {
    color: var(--primary);
}

.tt-logo__icon {
    font-size: 2rem;
}

.tt-logo__text {
    font-family: var(--font-heading);
}

.tt-logo__img {
    height: 80px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.tt-logo:hover .tt-logo__img {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .tt-logo__img {
        height: 55px;
    }
}

/* Navigation */
.tt-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.tt-nav__list > li {
    position: relative;
}

.tt-nav__list > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tt-nav__list > li > a:hover,
.tt-nav__list > li.active > a {
    color: var(--primary);
    background: var(--grey-lightest);
}

/* Submenu */
.tt-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-submenu:hover .tt-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tt-submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--grey-dark);
    font-size: 0.9rem;
}

.tt-submenu li a:hover {
    background: var(--grey-lightest);
    color: var(--primary);
}

.tt-header-main__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile menu toggle */
.tt-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.tt-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile menu */
.tt-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.tt-mobile-menu.active {
    right: 0;
}

.tt-mobile-menu__inner {
    padding: 20px;
}

.tt-mobile-menu__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--grey-lightest);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-mobile-nav {
    margin-top: 60px;
}

.tt-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-mobile-nav li {
    border-bottom: 1px solid var(--grey-lighter);
}

.tt-mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--dark);
    font-weight: 600;
}

.tt-mobile-menu__contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--grey-lighter);
}

.tt-mobile-menu__contact .tt-phone {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
}


/* ============================================
   3. Buttons
   ============================================ */
.tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tt-btn--primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.tt-btn--primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
}

.tt-btn--secondary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tt-btn--secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.tt-btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.tt-btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.tt-btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.tt-btn--outline-light:hover {
    background: var(--white);
    color: var(--dark);
}

.tt-btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.tt-btn--full {
    width: 100%;
}

.tt-btn__icon {
    font-size: 1.1em;
}


/* ============================================
   4. Hero Section
   ============================================ */
.tt-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
}

.tt-hero__content {
    max-width: 700px;
}

.tt-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.tt-hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.tt-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* ============================================
   5. Page Header
   ============================================ */
.tt-page-header {
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    position: relative;
    color: var(--white);
}

.tt-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7));
}

.tt-page-header .container {
    position: relative;
    z-index: 1;
}

.tt-page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tt-breadcrumb {
    font-size: 0.95rem;
    opacity: 0.9;
}

.tt-breadcrumb a {
    color: var(--white);
}

.tt-breadcrumb a:hover {
    text-decoration: underline;
}


/* ============================================
   6. Sections
   ============================================ */
.tt-section {
    padding: 80px 0;
}

.tt-section--grey {
    background: var(--grey-lightest);
}

.tt-section--dark {
    background: var(--dark);
    color: var(--white);
}

.tt-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.tt-section-header h2 {
    margin-bottom: 1rem;
}

.tt-section-header p {
    font-size: 1.1rem;
    color: var(--grey);
}

.tt-section-header--light h2,
.tt-section-header--light p {
    color: var(--white);
}

.tt-section-header--light p {
    opacity: 0.9;
}

.tt-section-intro {
    max-width: 800px;
    margin-bottom: 50px;
}

.tt-section-intro h2 {
    margin-bottom: 1rem;
}

.tt-section-footer {
    text-align: center;
    margin-top: 40px;
}

.tt-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--grey-dark);
}


/* ============================================
   7. Trust Bar
   ============================================ */
.tt-trust-bar {
    background: var(--primary);
    padding: 25px 0;
}

.tt-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tt-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    text-align: center;
}

.tt-trust-icon {
    font-size: 1.5rem;
}

.tt-trust-text {
    font-weight: 600;
}


/* ============================================
   8. Service Cards & Grid
   ============================================ */
.tt-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tt-service-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}

.tt-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tt-service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.tt-service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tt-service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.tt-service-card p {
    color: var(--grey);
    font-size: 0.95rem;
}

/* Service List Layout */
.tt-services-list h2 {
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--grey-lighter);
}

.tt-services-list h2:first-child {
    margin-top: 0;
}

.tt-services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.tt-service-box {
    display: block;
    background: var(--white);
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius);
    padding: 25px;
    text-decoration: none;
    transition: var(--transition);
}

.tt-service-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.tt-service-box img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.tt-service-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.tt-service-box p {
    color: var(--grey);
    font-size: 0.9rem;
    margin: 0;
}


/* ============================================
   9. Features Grid
   ============================================ */
.tt-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tt-feature {
    text-align: center;
    padding: 30px;
}

.tt-feature__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.tt-feature h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.tt-feature p {
    color: rgba(255,255,255,0.85);
    margin: 0;
}


/* ============================================
   10. Projects Grid
   ============================================ */
.tt-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tt-project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.tt-project-card__image {
    height: 220px;
    overflow: hidden;
}

.tt-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tt-project-card:hover .tt-project-card__image img {
    transform: scale(1.05);
}

.tt-project-card__content {
    padding: 20px;
}

.tt-project-card__content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tt-project-card__content p {
    color: var(--grey);
    margin: 0;
    font-size: 0.9rem;
}

/* Projects Gallery */
.tt-projects-gallery {
    display: grid;
    gap: 40px;
}

.tt-project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tt-project-item:nth-child(even) {
    direction: rtl;
}

.tt-project-item:nth-child(even) > * {
    direction: ltr;
}

.tt-project-item__image {
    height: 300px;
}

.tt-project-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-project-item__content {
    padding: 30px;
}

.tt-project-item__content h3 {
    margin-bottom: 0.5rem;
}

.tt-project-location {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem !important;
}


/* ============================================
   11. Problem Section
   ============================================ */
.tt-problem-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.tt-problem-section h2 {
    margin-bottom: 1rem;
}

.tt-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.tt-problem-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.tt-problem-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.tt-problem-item p {
    margin: 0;
    color: var(--grey);
}

.tt-problem-cta {
    margin-top: 30px;
}

.tt-problem-cta p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}


/* ============================================
   12. Areas Grid
   ============================================ */
.tt-areas-content {
    text-align: center;
}

.tt-areas-content > p {
    max-width: 700px;
    margin: 0 auto 40px;
}

.tt-areas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: left;
}

.tt-areas-column h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.tt-areas-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-areas-column li {
    padding: 5px 0;
    color: var(--grey-dark);
}


/* ============================================
   13. CTA Section
   ============================================ */
.tt-cta-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

.tt-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.tt-cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tt-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.tt-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* CTA Box (in content) */
.tt-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 40px;
}

.tt-cta-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.tt-cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}


/* ============================================
   14. Content Layout
   ============================================ */
.tt-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.tt-content-main {
    min-width: 0;
}

/* Article */
.tt-article__image {
    width: 1200px;
    height: 650px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.tt-article__intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--grey-dark);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--grey-lighter);
}

.tt-article__content h2 {
    margin-top: 40px;
    margin-bottom: 1rem;
    color: var(--dark);
}

.tt-article__content h2:first-child {
    margin-top: 0;
}

.tt-article__content h3 {
    margin-top: 30px;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.tt-article__content p {
    margin-bottom: 1rem;
}

/* Lists in content */
.tt-list02 {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.tt-list02 li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.tt-list02 li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.tt-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-check-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-lighter);
    color: var(--grey-dark);
}

.tt-check-list li:last-child {
    border-bottom: none;
}


/* ============================================
   15. Sidebar
   ============================================ */
.tt-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.tt-sidebar__widget {
    background: var(--white);
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.tt-sidebar__widget:last-child {
    margin-bottom: 0;
}

.tt-sidebar__widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.tt-sidebar__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-sidebar__nav li {
    border-bottom: 1px solid var(--grey-lighter);
}

.tt-sidebar__nav li:last-child {
    border-bottom: none;
}

.tt-sidebar__nav a {
    display: block;
    padding: 10px 0;
    color: var(--grey-dark);
    font-size: 0.95rem;
}

.tt-sidebar__nav a:hover,
.tt-sidebar__nav li.active a {
    color: var(--primary);
}

.tt-sidebar__widget--cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    border: none;
}

.tt-sidebar__widget--cta h3 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
}

.tt-sidebar__widget--cta p {
    margin-bottom: 1rem;
    opacity: 0.95;
}


/* ============================================
   16. FAQ Section
   ============================================ */
.tt-faq-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--grey-lighter);
}

.tt-faq-section h2 {
    margin-bottom: 25px;
}

.tt-faq-item {
    background: var(--grey-lightest);
    border-radius: var(--radius);
    padding: 20px 25px;
    margin-bottom: 15px;
}

.tt-faq-question {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.tt-faq-answer {
    color: var(--grey-dark);
}

.tt-faq-answer p {
    margin: 0;
}

/* FAQ Page */
.tt-faq-intro {
    max-width: 700px;
    margin-bottom: 40px;
}

.tt-faq-list {
    max-width: 900px;
}

.tt-faq-cta {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--grey-lighter);
    text-align: center;
}

.tt-faq-cta h2 {
    margin-bottom: 1rem;
}

.tt-faq-cta p {
    margin-bottom: 1.5rem;
}

.tt-faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}


/* ============================================
   17. Contact Page
   ============================================ */
.tt-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.tt-contact-info h2 {
    margin-bottom: 1rem;
}

.tt-contact-details {
    margin-top: 30px;
}

.tt-contact-detail {
    margin-bottom: 25px;
}

.tt-contact-detail h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tt-contact-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.tt-small {
    font-size: 0.85rem;
    color: var(--grey);
    margin-top: 5px;
}

/* Contact Form */
.tt-contact-form-wrapper {
    background: var(--grey-lightest);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.tt-contact-form-wrapper h2 {
    margin-bottom: 0.5rem;
}

.tt-contact-form-wrapper > p {
    margin-bottom: 25px;
    color: var(--grey);
}

.tt-form-group {
    margin-bottom: 20px;
}

.tt-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.tt-form-group input,
.tt-form-group select,
.tt-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.tt-form-group input:focus,
.tt-form-group select:focus,
.tt-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}


/* ============================================
   18. About Page
   ============================================ */
.tt-about-content {
    max-width: 800px;
}

.tt-about-intro {
    margin-bottom: 40px;
}

.tt-about-intro h2 {
    margin-bottom: 1rem;
}

.tt-about-section {
    margin-bottom: 40px;
}

.tt-about-section h2 {
    margin-bottom: 1rem;
}

.tt-about-section h3 {
    margin-top: 25px;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.tt-about-cta {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--grey-lighter);
}

.tt-about-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 25px;
}

.tt-contact-item {
    background: var(--grey-lightest);
    padding: 20px;
    border-radius: var(--radius);
}

.tt-contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark);
}


/* ============================================
   19. Footer
   ============================================ */
.tt-footer {
    background: var(--dark);
    color: var(--white);
}

.tt-footer-main {
    padding: 60px 0 40px;
}

.tt-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.tt-footer__title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary);
}

.tt-footer-col p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.tt-footer-contact {
    margin-top: 20px;
}

.tt-footer-contact p {
    margin-bottom: 15px;
}

.tt-footer-contact a {
    color: var(--white);
}

.tt-footer-contact a:hover {
    color: var(--secondary);
}

.tt-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-footer-nav li {
    margin-bottom: 10px;
}

.tt-footer-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.tt-footer-nav a:hover {
    color: var(--secondary);
}

.tt-footer-hours {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tt-footer-hours h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tt-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.tt-footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.9rem;
}


/* ============================================
   20. Back to Top
   ============================================ */
.tt-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.tt-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.tt-back-to-top:hover {
    background: var(--secondary);
    color: var(--white);
}


/* ============================================
   21. Responsive
   ============================================ */
@media (max-width: 1024px) {
    .tt-nav {
        display: none;
    }
    
    .tt-menu-toggle {
        display: flex;
    }
    
    .tt-row {
        grid-template-columns: 1fr;
    }
    
    .tt-sidebar {
        position: static;
    }
    
    .tt-services-grid,
    .tt-features-grid,
    .tt-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tt-services-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tt-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tt-areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tt-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tt-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .tt-project-item {
        grid-template-columns: 1fr;
    }
    
    .tt-project-item:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .tt-header-top__left {
        display: none;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .tt-hero {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .tt-hero h1 {
        font-size: 2.25rem;
    }
    
    .tt-section {
        padding: 60px 0;
    }
    
    .tt-services-grid,
    .tt-features-grid,
    .tt-projects-grid,
    .tt-services-row,
    .tt-problem-grid {
        grid-template-columns: 1fr;
    }
    
    .tt-trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .tt-trust-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .tt-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tt-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .tt-about-contact {
        grid-template-columns: 1fr;
    }
    
    .tt-article__image {
        height: 250px;
    }
    
    .tt-project-item__image {
        height: 200px;
    }
    
    .tt-contact-form-wrapper {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .tt-hero h1 {
        font-size: 1.75rem;
    }
    
    .tt-hero__buttons {
        flex-direction: column;
    }
    
    .tt-hero__buttons .tt-btn {
        width: 100%;
    }
    
    .tt-trust-grid {
        grid-template-columns: 1fr;
    }
    
    .tt-areas-grid {
        grid-template-columns: 1fr;
    }
    
    .tt-cta-buttons {
        flex-direction: column;
    }
    
    .tt-cta-buttons .tt-btn {
        width: 100%;
    }
    
    .tt-faq-cta-buttons {
        flex-direction: column;
    }
    
    .tt-faq-cta-buttons .tt-btn {
        width: 100%;
    }
}


/* ============================================
   Intro / Meet the Team (homepage, after hero)
   ============================================ */
.tt-intro {
    padding: 70px 0;
    background: var(--white);
}

.tt-intro__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tt-intro__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tt-intro__image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: var(--secondary);
}

.tt-intro__image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.tt-intro__eyebrow {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.tt-intro__content h2 {
    margin-bottom: 1rem;
}

.tt-intro__list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.tt-intro__list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 0.75rem;
    color: var(--grey-dark);
}

.tt-intro__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 1024px) {
    .tt-intro__grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .tt-intro {
        padding: 50px 0;
    }
    .tt-intro__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* About page team photo */
.tt-about-photo {
    margin: 0 0 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.tt-about-photo img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.tt-about-photo figcaption {
    padding: 14px 20px;
    font-size: 0.95rem;
    color: var(--grey);
    border-top: 4px solid var(--secondary);
}

/* Homepage hero: even overlay on small screens (text spans full width) */
@media (max-width: 768px) {
    .tt-hero {
        background-image: linear-gradient(rgba(10,20,30,0.72), rgba(10,20,30,0.72)), url('../images/hero-jb-team.jpg') !important;
        background-position: center 30% !important;
    }
}

/* ============================================
   Before / After comparison slider
   ============================================ */
.tt-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tt-ba {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tt-ba--article {
    margin-bottom: 30px;
}

.tt-ba__frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    user-select: none;
    --pos: 50%;
}

.tt-ba--article .tt-ba__frame {
    aspect-ratio: 16 / 10;
}

.tt-ba__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.tt-ba__img--before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.tt-ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 4px;
    background: var(--white);
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
    pointer-events: none;
}

.tt-ba__handle::after {
    content: '‹ ›';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.4rem;
    line-height: 1;
    padding-left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
}

.tt-ba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.tt-ba__label {
    position: absolute;
    top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(26,26,46,0.75);
    pointer-events: none;
}

.tt-ba__label--before { left: 14px; }
.tt-ba__label--after  { right: 14px; background: var(--primary); }

.tt-ba__caption {
    padding: 20px 24px 24px;
}

.tt-ba__caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.tt-ba__caption p {
    margin: 0;
    color: var(--grey);
    font-size: 0.95rem;
}

.tt-ba-section .tt-section-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .tt-ba-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* before/after: robust drag + height fallback */
.tt-ba__frame { touch-action: pan-y; cursor: ew-resize; }
.tt-ba__frame::before { content: ""; display: block; padding-top: 75%; }
@supports (aspect-ratio: 4 / 3) { .tt-ba__frame::before { display: none; } }
.tt-ba__range { pointer-events: none; }
.tt-ba__range:focus-visible { opacity: 1; pointer-events: auto; height: 24px; top: auto; bottom: 8px; }

/* logo: icon + brand text */
.tt-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: 28px; }
.tt-logo__img { width: 56px; height: 56px; }
.tt-logo__text { font-family: 'Mulish', 'Inter', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--primary); line-height: 1.1; white-space: nowrap; }
@media (max-width: 480px) { .tt-logo__text { font-size: 1.2rem; } .tt-logo__img { width: 44px; height: 44px; } }

/* direct contact panel (no form) */
.tt-contact-direct__actions{display:grid;gap:12px;margin:20px 0 28px}
.tt-contact-direct h3{margin:8px 0 12px}
.tt-contact-direct .tt-check-list li{margin-bottom:8px}
.tt-map iframe{width:100%;height:380px;border:0;border-radius:8px;margin-top:12px}

:where(img){height:auto;max-width:100%}

.tt-footer-grid.tt-footer-grid--3{grid-template-columns:2fr 1fr 1fr}
@media (max-width:900px){.tt-footer-grid.tt-footer-grid--3{grid-template-columns:1fr}}
.tt-sidebar__all a{font-weight:700}

.tt-local-intro__inner{max-width:860px}
.tt-local-intro__inner p{font-size:1.05rem;line-height:1.75}
.tt-local-intro__links{font-weight:600}

/* mobile header: keep logo, call button and menu toggle within the viewport */
@media (max-width: 600px){
  .tt-header-main__inner{gap:10px}
  .tt-header-main__right{gap:8px;flex-shrink:0}
  .tt-header-main__right .tt-btn__text{display:none}
  .tt-header-main__right .tt-btn{padding:10px 12px}
  .tt-logo{min-width:0}
  .tt-logo__text{font-size:1.05rem;white-space:normal;line-height:1.15}
  .tt-logo__img{width:40px;height:40px}
  .tt-contact-direct__actions .tt-btn{white-space:normal;overflow-wrap:anywhere}
}
