/* =========================
   Base Styles
========================= */

:root {
    --color-primary: #071d14;
    --color-primary-light: #123f2b;
    --color-accent: #e6bd19;
    --color-accent-dark: #b68e00;
    --color-teal: #003638;
    --color-background: #edf5ee;
    --color-light: #e1eee3;
    --color-lighter: #f4f8f2;
    --color-text: #17261e;
    --color-muted: #53675b;
    --color-border: #c9d9cc;
    --color-white: #ffffff;

    --font-heading: "Optima", sans-serif;
    --font-body: "Optima", sans-serif;

    --shadow-soft: 0 8px 25px rgba(7, 29, 20, 0.12);
    --shadow-medium: 0 12px 35px rgba(7, 29, 20, 0.2);

    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 14px;

    --container-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 40px, var(--container-width));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

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

.section-accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
    color: var(--color-white);
}

.section-accent h1,
.section-accent h2,
.section-accent h3,
.section-accent p {
    color: var(--color-white);
}

.section-accent .eyebrow,
.section-accent .text-link {
    color: var(--color-accent);
}

.centered {
    text-align: center;
}

/* =========================
   Typography
========================= */

h1,
h2,
h3 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

.eyebrow {
    color: var(--color-accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 45px;
    max-width: 680px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
}

.section-heading > p:last-child {
    color: var(--color-muted);
}

/* =========================
   Header
========================= */

.site-header {
    background: var(--color-primary);
    border-bottom: 1px solid rgba(230, 189, 25, 0.35);
    position: relative;
    z-index: 20;
}

.header-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 82px;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.logo-placeholder {
    align-items: center;
    background: var(--color-accent);
    color: var(--color-primary);
    display: flex;
    font-size: 1.15rem;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.company-name {
    color: var(--color-white);
    font-size: 1.15rem;
    font-weight: 700;
}

.main-navigation {
    align-items: center;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--color-accent);
}

.nav-quote-button {
    background: var(--color-accent);
    color: var(--color-primary) !important;
    padding: 12px 18px;
    border-radius: 6px;
}

.nav-quote-button:hover {
    background: var(--color-white);
}

.menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    padding: 8px;
}

.menu-toggle span {
    background: var(--color-white);
    display: block;
    height: 2px;
    margin: 5px 0;
    width: 26px;
}

/* =========================
   Buttons and Links
========================= */

.button {
    border: 2px solid transparent;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 14px 23px;
    transition: all 0.2s ease;
}

.button-primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.button-primary:hover {
    background: var(--color-accent-dark);
    color: var(--color-primary);
}

.button-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

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

.button-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

.text-link {
    color: var(--color-accent-dark);
    display: inline-block;
    font-weight: 700;
    margin-top: 8px;
}

.text-link span {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.centered-button {
    margin-top: 42px;
    text-align: center;
}

/* =========================
   Hero
========================= */

.hero-section {
    color: var(--color-white);
    min-height: 680px;
    overflow: hidden;
    position: relative;
}

.hero-image,
.hero-overlay {
    inset: 0;
    position: absolute;
}

.hero-image {
    z-index: 0;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(7, 29, 20, 0.94),
        rgba(7, 29, 20, 0.72),
        rgba(0, 54, 56, 0.28)
    );
    z-index: 1;
}

.hero-content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 680px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--color-white);
    max-width: 700px;
}

.hero-text {
    font-size: 1.1rem;
    margin: 20px 0 30px;
    max-width: 600px;
}

.hero-content .eyebrow {
    color: var(--color-accent);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================
   Images and Placeholders
========================= */

.section-image,
.project-image,
.carousel-slide {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.section-image img {
    height: 430px;
}

.image-placeholder-note {
    background: rgba(7, 29, 20, 0.88);
    bottom: 0;
    color: var(--color-white);
    font-size: 0.78rem;
    left: 0;
    padding: 7px 12px;
    position: absolute;
}

/* =========================
   Introduction
========================= */

.two-column-layout {
    align-items: center;
    display: grid;
    gap: 70px;
    grid-template-columns: 1fr 1fr;
}

.section-content {
    max-width: 540px;
}

.section-content p {
    color: var(--color-muted);
}

/* =========================
   Services
========================= */

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

.service-card {
    background: var(--color-lighter);
    border: 1px solid var(--color-border);
    padding: 30px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: rgba(230, 189, 25, 0.7);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.service-icon {
    color: var(--color-accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* =========================
   Projects
========================= */

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

.project-card {
    background: var(--color-lighter);
    box-shadow: var(--shadow-soft);
}

.project-image img {
    height: 260px;
}

.project-card-video {
    background: var(--color-primary);
    display: block;
    height: 260px;
    object-fit: cover;
    width: 100%;
}

.project-card-content {
    padding: 25px;
}

.project-category {
    color: var(--color-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-card-content p:not(.project-category) {
    color: var(--color-muted);
}

/* =========================
   Project Video Gallery
========================= */

.project-video-showcase {
    background: var(--color-primary);
    padding: 34px 0;
}

.project-video-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-video {
    aspect-ratio: 16 / 9;
    background: #04130d;
    border: 1px solid rgba(230, 189, 25, 0.35);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    display: block;
    object-fit: cover;
    width: 100%;
}

/* =========================
   Why Us
========================= */

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

.reason {
    border-top: 2px solid var(--color-accent);
    padding-top: 20px;
}

.reason-number {
    color: var(--color-accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.reason p {
    color: var(--color-muted);
}

/* =========================
   Carousel
========================= */

.carousel {
    margin: 0 auto;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    position: relative;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    height: 530px;
}

.carousel-caption {
    background: rgba(7, 29, 20, 0.9);
    bottom: 0;
    color: var(--color-white);
    left: 0;
    padding: 12px 18px;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 3px;   
}

.carousel-button {
    align-items: center;
    background: var(--color-white);
    border: 0;
    border-radius: 50%;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
}

.carousel-button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.carousel-prev {
    left: 18px;
}

.carousel-next {
    right: 18px;
}

.carousel-dots {
    bottom: 18px;
    display: flex;
    gap: 8px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.carousel-dot {
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    width: 10px;
}

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

/* =========================
   Testimonials
========================= */

.testimonial-card {
    background: var(--color-lighter);
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
    max-width: 820px;
    padding: 45px;
    text-align: center;
}

.quote-mark {
    color: var(--color-accent);
    font-size: 4rem;
    line-height: 0.8;
}

.testimonial-card blockquote {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-style: italic;
    margin: 20px auto;
    max-width: 680px;
}

.testimonial-author {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

/* =========================
   Contact CTA
========================= */

.contact-cta {
    background: linear-gradient(110deg, var(--color-primary), var(--color-teal));
    color: var(--color-white);
}

.contact-cta-content {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.contact-cta h2,
.contact-cta p {
    color: var(--color-white);
}

.contact-cta .eyebrow {
    color: var(--color-accent);
}

/* =========================
   Footer
========================= */

.site-footer {
    background: #04130d;
    color: #e7efe9;
    padding-top: 65px;
}

.footer-grid {
    display: grid;
    gap: 35px;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    padding-bottom: 50px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    margin-bottom: 18px;
}

.site-footer h3 {
    color: var(--color-white);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.site-footer p {
    color: #bdcbc1;
    font-size: 0.9rem;
}

.site-footer a {
    color: #e7efe9;
}

.site-footer a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    padding-bottom: 22px;
    padding-top: 22px;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* =========================
   Interior Page Styles
========================= */

.page-hero {
    background: linear-gradient(120deg, var(--color-primary), var(--color-teal));
    color: var(--color-white);
    padding: 90px 0;
}

.page-hero h1 {
    color: var(--color-white);
    max-width: 760px;
}

.page-hero p:last-child {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    margin-top: 20px;
    max-width: 650px;
}

.narrow-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.values-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, 1fr);
}

.value-card {
    background: var(--color-lighter);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 28px 24px;
}

.value-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* =========================
   Testimonial Carousel
========================= */

.testimonial-carousel {
    margin: 0 auto;
    max-width: 820px;
    position: relative;
}

.testimonial-slide {
    background: var(--color-lighter);
    box-shadow: var(--shadow-soft);
    display: none;
    min-height: 270px;
    padding: 45px;
    text-align: center;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide blockquote {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-style: italic;
    margin: 20px auto;
    max-width: 680px;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.testimonial-dot {
    background: #b9cbbd;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    width: 10px;
}

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

.site-header .site-logo {
    display: block;
    width: 256px;
    height: 140px;
    object-fit: contain;
}

/* Force identical header sizing on every page */
.site-header {
    height: 170px;
    min-height: 170px;
    background: #071d14;
    border-bottom: 1px solid #e6bd19;
}

.site-header .header-container {
    height: 170px;
    min-height: 170px;
    padding-top: 0;
    padding-bottom: 0;
}

.site-header .site-logo {
    width: 256px;
    height: 140px;
    max-width: 256px;
    object-fit: contain;
}

/* Gold header text */
.site-header .company-name,
.site-header .main-navigation a {
    color: #e6bd19;
}

.site-header .main-navigation a:hover,
.site-header .main-navigation a.active {
    color: #ffffff;
}

/* Keep quote button gold with dark text */
.site-header .main-navigation .nav-quote-button {
    color: #071d14;
    background: #e6bd19;
}

/* Company name beside the logo */
.site-header .company-name {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Home, About Us and Our Projects */
.site-header .main-navigation a {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Request a Quote button */
.site-header .main-navigation .nav-quote-button {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Wider header with smaller side margins */
.site-header .header-container {
    width: calc(100% - 48px);
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Space between logo and company name */
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* More space between navigation items */
.site-header .main-navigation {
    display: flex;
    align-items: center;
    gap: 42px;
    margin-left: 50px;
}

/* More room inside the quote button */
.site-header .nav-quote-button {
    padding: 18px 30px;
    white-space: nowrap;
}

/* Make every video and image in the gallery the same size */
.project-video-grid .project-video,
.project-video-grid .project-gallery-image {
    display: block;
    width: 100%;
    height: 260px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Remove iframe borders if Cloudflare Stream is used */
.project-video-grid iframe.project-video {
    border: 0;
}