/* 
* Testudo Hauling & Contracting Website CSS
* This file contains all styles for the Testudo website
* Roman-inspired colors and design elements are used throughout
*/

/* ---------- Base Styles ---------- */
:root {
    /* Roman-inspired color palette */
    --primary: #8B0000;       /* Deep Roman Red */
    --secondary: #DAA520;     /* Roman Gold */
    --accent: #4B6F89;        /* Roman Blue-Gray */
    --light: #F5F3E9;         /* Off-white/Papyrus */
    --dark: #352E28;          /* Dark Brown */
    --white: #ffffff;
    --gray: #f4f4f4;
    --dark-gray: #333333;
    --primary-dark: #6B0000;  /* Darker variant of primary for hover states */
    
    /* Font families */
    --heading-font: 'Cinzel', serif;       /* Roman-inspired font for headings */
    --body-font: 'Raleway', sans-serif;    /* Clean, modern font for body text */
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Container for all sections */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section styling */
section {
    padding: 80px 0;
}

/* Common section title styling */
.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    font-weight: 500;
}

.why-choose-us .section-title {
    color: var(--white);
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    margin: 15px auto 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

ul, ol {
    list-style-type: none;
}

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

/* Button styles */
.cta-button, .submit-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 1.1rem;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover, .submit-button:hover {
    background-color: transparent;
    color: var(--primary);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 1.1rem;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-button:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ---------- Header Styles ---------- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px; /* ✅ Set fixed height */
    display: flex;
    align-items: center; /* ✅ Center contents vertically */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

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

.logo-with-title img {
    height: 75px; /* or 65px max */
    width: auto;
    object-fit: contain;
}

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

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 2.1rem;
    font-weight: 400;
    padding-left: 10px;
    color: var(--primary);
}

.logo-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.715rem;
    font-weight: 400;
    color: var(--primary);
    margin-top: 2px;
    padding-left: 13px;
}

.nav-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 0 20px;
    white-space: nowrap;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--dark);
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    overflow: hidden;
    height: 80vh;
    max-height: 800px;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: -50px; /* ✅ Start higher up */
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: blur(8px) brightness(0.3);
    z-index: -2;
    transform: translateY(0) scale(1.02); /* ✅ ONLY slight zoom out */
    transition: transform 0.1s ease-out;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem; /* smaller than before */
    max-width: 800px;
    margin: 0 auto 20px;
    font-weight: normal;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem; /* also smaller */
    max-width: 700px;
    margin: 0 auto 20px;
    font-weight: normal;
    line-height: 1.4;
}

.hero-content p {
    font-family: 'railway';
    font-size: 1.2rem; /* keep this readable */
    margin-bottom: 30px;
}

/* ---------- Services Section ---------- */
.services {
    background-color: var(--white);
}

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


@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 on medium screens */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 on small screens */
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 on phones */
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background-color: var(--light);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
      
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    width: 100%;
    padding-top: 10px; /* ✅ slight breathing room */
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px; /* ✅ more breathing room */
    height: auto;
    min-height: 60px; /* ✅ Reserve clean space for title */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* ✅ allow wrapping if needed */
}

.service-content p {
    font-size: 1rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Fix service-card hover color */
.service-card:hover,
.service-card:hover h3,
.service-card:hover p {
    color: var(--primary); /* Stay deep red on hover */
}

/* ---------- Why Choose Us Section ---------- */
.why-choose-us {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    padding: 100px 0;
    background-attachment: fixed; /* ✅ important for parallax on simple backgrounds */
}

.why-bg {
    position: absolute;
    top: 250px; /* ✅ start image higher */
    left: 0;
    width: 100%;
    height: 120%; /* ✅ keep taller background */
    object-fit: cover;
    filter: blur(2px) brightness(0.4);
    z-index: -2;
    transform: translateY(0) scale(1.1); /* ✅ start scaled out */
    transition: transform 0.1s ease-out;
}

.why-choose-us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 111, 137, 0.9);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ---------- Portfolio Section ---------- */
.portfolio {
    background-color: var(--light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 5px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.8); /* Semi-transparent primary color */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background-color: var(--white);
}

.testimonial {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    padding: 20px 40px;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: 0;
}

.testimonial-text::after {
    bottom: -40px;
    right: 0;
}

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

/* Testimonial slider dots - moved from JS */
.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-family: var(--heading-font);
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-social h3 {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Page Title Section (for inner pages) ---------- */
.page-title {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/page-title-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.page-title h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
}

/* ---------- About Page Specific Styles ---------- */
/* 
.company-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
*/

/* Temporary centered layout until we have an image */
.company-story {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 50px;
    align-items: center;
}

.mission {
    background-color: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission .section-title {
    color: var(--white);
}

.mission p {
    font-size: 1.3rem;
    font-style: italic;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.team-member {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.member-photo {
    height: 100%;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 30px;
}

.member-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.member-credentials {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.member-credentials p {
    margin-bottom: 10px;
}

/* ---------- Contact Page Specific Styles ---------- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.info-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-connect {
    margin-top: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Form validation styles - moved from JS */
.form-success {
    text-align: center;
    color: green;
    padding: 20px;
    font-size: 1.2rem;
    background-color: #f0fff0;
    border-radius: 5px;
    margin: 20px 0;
}

.success-message {
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.95rem;
  }

input.error, textarea.error {
    border-color: var(--primary);
    background-color: rgba(139, 0, 0, 0.05);
}

.map-section {
    background-color: var(--gray);
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Scroll to top button - moved from JS */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 992px) {
    .company-story {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .team-member {
        grid-template-columns: 1fr;
    }
    
    .member-photo {
        height: 300px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 0 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 30px;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Testimonial slider styles */
.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
}

/* Form styles */
.form-success {
    text-align: center;
    color: green;
    padding: 20px;
    font-size: 1.2rem;
    background-color: #f0fff0;
    border-radius: 5px;
    margin: 20px 0;
}

input.error, 
textarea.error {
    border-color: var(--primary);
    background-color: rgba(139, 0, 0, 0.05);
}

/* Scroll to top button styles */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}