/* =============================================================
   PrecisionMark WordPress Theme — Main Stylesheet
   Version: 1.0.0
   ============================================================= */

/* ─── CSS VARIABLES ────────────────────────────────────────── */
:root {
    --pm-black:      #0a0a0a;
    --pm-charcoal:   #1a1a1a;
    --pm-graphite:   #2d2d2d;
    --pm-gold:       #c8a96e;
    --pm-gold-light: #e2c896;
    --pm-cream:      #f5f0e8;
    --pm-white:      #ffffff;
    --pm-gray:       #8a8a8a;
    --pm-yellow:     #f5c842;
    --pm-nav-height: 80px;
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--pm-black);
    color: var(--pm-cream);
    overflow-x: hidden;
    line-height: 1.6;
}

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

a { text-decoration: none; transition: color 0.2s, opacity 0.2s; }

/* ─── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.1;
}

/* ─── LAYOUT HELPERS ───────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-black);
    background: var(--pm-gold);
    padding: 16px 36px;
    display: inline-block;
    transition: background 0.25s, transform 0.25s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--pm-gold-light);
    transform: translateY(-2px);
    color: var(--pm-black);
}

.btn-ghost {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-cream);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.btn-ghost::after { content: '→'; font-size: 1rem; }
.btn-ghost:hover { opacity: 1; color: var(--pm-cream); }

/* ─── NAVIGATION ───────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: var(--pm-nav-height);
    gap: 24px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--pm-white);
}
.logo span, .logo strong { color: var(--pm-gold); }

/* WordPress custom logo */
.custom-logo { max-height: 50px; width: auto; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}
.nav-links li a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-cream);
    padding: 0 20px;
    display: block;
    opacity: 0.8;
    height: var(--pm-nav-height);
    line-height: var(--pm-nav-height);
    border-bottom: 2px solid transparent;
}
.nav-links li a:hover,
.nav-links li.current-menu-item a {
    opacity: 1;
    color: var(--pm-gold);
    border-bottom-color: var(--pm-gold);
}

.nav-cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-black);
    background: var(--pm-gold);
    padding: 10px 24px;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--pm-gold-light); color: var(--pm-black); }

/* Mobile hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pm-cream);
    transition: all 0.3s;
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 60px 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.85) 100%),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(200,169,110,0.05) 40px, rgba(200,169,110,0.05) 41px),
        repeating-linear-gradient(180deg, transparent, transparent 40px, rgba(200,169,110,0.03) 40px, rgba(200,169,110,0.03) 41px),
        radial-gradient(ellipse 80% 60% at 60% 40%, #2a2a2a 0%, #0a0a0a 70%);
}

.road-stripe {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
    opacity: 0.15;
    overflow: hidden;
}
.road-stripe::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2000px;
    background: repeating-linear-gradient(to top, var(--pm-yellow) 0px, var(--pm-yellow) 60px, transparent 60px, transparent 100px);
    animation: stripeDrive 3s linear infinite;
}
@keyframes stripeDrive {
    from { transform: translateY(0); }
    to   { transform: translateY(160px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pm-gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--pm-gold);
    display: inline-block;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 1.0;
    color: var(--pm-white);
    margin-bottom: 32px;
}
.hero-title em {
    font-style: italic;
    color: var(--pm-gold);
}

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(245,240,232,0.7);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-stats {
    position: absolute;
    right: 60px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 2;
}
.stat { text-align: right; }
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--pm-gold);
    line-height: 1;
}
.stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-gray);
    margin-top: 4px;
}

/* ─── MARQUEE ──────────────────────────────────────────────── */
.marquee-bar {
    background: var(--pm-gold);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}
.marquee-item {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pm-black);
    padding: 0 40px;
}
.marquee-dot { color: rgba(0,0,0,0.3); padding: 0 8px; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ───────────────────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
}
.section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pm-gold);
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: var(--pm-white);
}
.section-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.section-link::after { content: '→'; }
.section-link:hover { color: var(--pm-gold-light); }

/* ─── SERVICES ─────────────────────────────────────────────── */
.services {
    padding: 120px 60px;
    background: var(--pm-charcoal);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.service-card {
    background: var(--pm-graphite);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}
.service-card:hover { background: #333; }
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--pm-gold);
    transition: width 0.4s ease;
}
.service-card:hover::before { width: 100%; }
.service-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(200,169,110,0.1);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
}
.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}
.service-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pm-white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.service-desc {
    font-size: 0.875rem;
    color: var(--pm-gray);
    line-height: 1.7;
}

/* ─── WHY US ────────────────────────────────────────────────── */
.why-us {
    padding: 120px 60px;
    background: var(--pm-black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.why-visual { position: relative; }
.why-img-block {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--pm-graphite);
    overflow: hidden;
}
.why-img { width: 100%; height: 100%; object-fit: cover; }

/* Fallback pavement art */
.pavement-art {
    width: 100%; height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.stripe-group {
    width: 100%; height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 28px;
    padding-bottom: 20px;
}
.h-stripe {
    height: 4px;
    background: var(--pm-yellow);
    opacity: 0;
    animation: stripeGrow 1.5s ease-out forwards;
}
.h-stripe:nth-child(1) { animation-delay: 0.1s; width: 70%; margin-left: 15%; }
.h-stripe:nth-child(2) { animation-delay: 0.3s; width: 90%; margin-left: 5%; }
.h-stripe:nth-child(3) { animation-delay: 0.5s; width: 60%; margin-left: 20%; }
.h-stripe:nth-child(4) { animation-delay: 0.7s; width: 80%; margin-left: 10%; }
.h-stripe:nth-child(5) { animation-delay: 0.9s; width: 50%; margin-left: 25%; }
@keyframes stripeGrow {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

.why-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    width: 140px; height: 140px;
    background: var(--pm-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
}
.why-badge-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pm-black);
    line-height: 1;
}
.why-badge-txt {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pm-black);
    margin-top: 4px;
}
.why-points {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 32px 0 48px;
}
.why-point { display: flex; gap: 20px; align-items: flex-start; }
.why-point-icon {
    width: 40px; height: 40px;
    background: rgba(200,169,110,0.1);
    border: 1px solid rgba(200,169,110,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.why-point-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pm-white);
    margin-bottom: 6px;
}
.why-point-desc { font-size: 0.875rem; color: var(--pm-gray); line-height: 1.6; }

/* ─── PROJECTS ─────────────────────────────────────────────── */
.projects {
    padding: 120px 60px;
    background: var(--pm-charcoal);
}
.projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    margin-top: 64px;
}
.project-card { position: relative; overflow: hidden; cursor: pointer; }
.project-card:first-child { grid-row: 1 / 3; }
.project-img {
    width: 100%; height: 100%;
    min-height: 220px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pm-graphite);
    transition: transform 0.5s ease;
    position: relative;
}
.project-card:first-child .project-img { min-height: 480px; }
.project-card:hover .project-img { transform: scale(1.04); }
.lot-art {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 8px;
}
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    padding: 28px;
    display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pm-gold);
    margin-bottom: 6px;
}
.project-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pm-white);
}

/* ─── TESTIMONIALS ─────────────────────────────────────────── */
.testimonials {
    padding: 120px 60px;
    background: var(--pm-black);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}
.testimonial-card {
    background: var(--pm-charcoal);
    padding: 40px;
    border-top: 3px solid var(--pm-gold);
}
.stars { color: var(--pm-gold); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 20px; }
.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--pm-cream);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-gold);
    font-weight: 600;
    font-style: normal;
}
.testimonial-role { font-size: 0.8rem; color: var(--pm-gray); margin-top: 4px; }

/* ─── CTA ──────────────────────────────────────────────────── */
.cta-section {
    padding: 120px 60px;
    background: var(--pm-graphite);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(200,169,110,0.03) 60px, rgba(200,169,110,0.03) 61px);
    pointer-events: none;
}
.cta-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pm-gold);
    margin-bottom: 20px;
}
.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 300;
    color: var(--pm-white);
    margin-bottom: 16px;
    line-height: 1.1;
}
.cta-sub { font-size: 1rem; color: var(--pm-gray); margin-bottom: 48px; font-weight: 300; }
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.contact-info {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 64px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.contact-item-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pm-gray);
}
.contact-item-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pm-white);
}
.contact-item-value a { color: var(--pm-white); }
.contact-item-value a:hover { color: var(--pm-gold); }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
    background: var(--pm-black);
    border-top: 1px solid rgba(200,169,110,0.15);
}
.footer-inner { padding: 60px 60px 40px; }
.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pm-white);
}
.footer-tagline { font-size: 0.85rem; color: var(--pm-gray); margin-top: 8px; font-weight: 300; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pm-gold);
    margin-bottom: 16px;
}
.footer-menu, .footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-menu a, .footer-links-list a {
    font-size: 0.875rem;
    color: var(--pm-gray);
    transition: color 0.2s;
}
.footer-menu a:hover, .footer-links-list a:hover { color: var(--pm-cream); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: rgba(138,138,138,0.6); }
.footer-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-gold);
    opacity: 0.6;
}

/* ─── BLOG STYLES ───────────────────────────────────────────── */
.blog-main { padding: 80px 0; }
.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--pm-white);
    margin-bottom: 48px;
    font-weight: 300;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}
.post-card { background: var(--pm-charcoal); }
.post-thumbnail img { width: 100%; height: 220px; object-fit: cover; }
.post-body { padding: 32px; }
.post-meta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-gold);
    margin-bottom: 12px;
}
.post-title { font-size: 1.5rem; margin-bottom: 12px; }
.post-title a { color: var(--pm-white); }
.post-title a:hover { color: var(--pm-gold); }
.post-excerpt { font-size: 0.875rem; color: var(--pm-gray); margin-bottom: 24px; line-height: 1.7; }
.btn-small { padding: 10px 24px; font-size: 0.8rem; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }
.fade-in:nth-child(5) { animation-delay: 0.7s; }
.fade-in:nth-child(6) { animation-delay: 0.85s; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .project-card:first-child { grid-row: auto; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 24px; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: var(--pm-nav-height); left: 0; right: 0; background: var(--pm-black); padding: 20px 0; border-top: 1px solid rgba(200,169,110,0.15); }
    .nav-links.open { display: flex; }
    .nav-links li a { height: auto; line-height: 1.4; padding: 14px 24px; }
    .nav-toggle { display: flex; }

    .hero { padding: 0 24px 80px; }
    .hero-stats { display: none; }

    .services, .testimonials { padding: 80px 24px; }
    .why-us, .projects { padding: 80px 24px; }
    .cta-section { padding: 80px 24px; }
    .footer-inner { padding: 48px 24px 32px; }

    .services-grid, .projects-grid, .testimonials-grid, .posts-grid { grid-template-columns: 1fr; }
    .why-us { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .footer-top { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
    .contact-info { flex-direction: column; gap: 24px; }
}
