/* Land Service Company - Editorial Infrastructure */

:root {
  --crimson: #8B0000;
  --crimson-deep: #6B0000;
  --bronze: #B08D57;
  --charcoal: #1A1A1A;
  --charcoal-soft: #2D2D2D;
  --slate: #4A4A4A;
  --stone: #8B8680;
  --paper: #FAF8F5;
  --paper-warm: #F4F1EB;
  --white: #FFFFFF;
  --rule: #E8E4DD;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-width: 1320px;
  --content-width: 1100px;
  --reading-width: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--charcoal); background: var(--paper); font-weight: 400; letter-spacing: -0.005em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; color: var(--charcoal); }
h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }

.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson); font-weight: 500; display: inline-flex; align-items: center; gap: 0.8rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--crimson); }
.lead { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.4; font-weight: 400; color: var(--charcoal-soft); font-style: italic; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 7rem 0; position: relative; }
.rule-crimson { height: 1px; width: 60px; background: var(--crimson); border: none; margin: 2rem 0; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250, 248, 245, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: all 0.4s ease; }
.site-header.scrolled { border-bottom-color: var(--rule); background: rgba(250, 248, 245, 0.98); }
.site-header.hero-mode { background: transparent; }
.site-header.hero-mode .nav-link, .site-header.hero-mode .logo-text, .site-header.hero-mode .phone-number, .site-header.hero-mode .logo-text span { color: var(--white); }
.site-header.hero-mode .logo-mark { filter: brightness(0) invert(1); }
.site-header.hero-mode .phone-number { border-left-color: rgba(255, 255, 255, 0.25); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 2.5rem; max-width: var(--max-width); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 0.85rem; }
.logo-mark { width: 38px; height: 38px; transition: filter 0.3s ease; }
.logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--charcoal); line-height: 1; }
.logo-text span { display: block; font-size: 0.65rem; letter-spacing: 0.25em; margin-top: 4px; color: var(--stone); font-weight: 400; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-link { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); position: relative; padding: 0.5rem 0; transition: color 0.2s ease; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--crimson); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.site-header.hero-mode .nav-link::after { background: var(--bronze); }
.phone-number { font-family: var(--font-mono); font-size: 0.82rem; color: var(--charcoal); letter-spacing: 0.05em; padding-left: 2rem; border-left: 1px solid var(--rule); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 30px; }
.mobile-toggle span { display: block; width: 24px; height: 1.5px; background: var(--charcoal); margin: 6px auto; transition: all 0.3s; }
.site-header.hero-mode .mobile-toggle span { background: var(--white); }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; display: flex; align-items: center; color: var(--white); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-fallback { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 30%, #2d2418 70%, #4a3a25 100%); overflow: hidden; }
.hero-fallback::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 35%, rgba(176, 141, 87, 0.28) 0%, transparent 55%), radial-gradient(ellipse at 15% 75%, rgba(139, 0, 0, 0.22) 0%, transparent 55%); }
.hero-fallback::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.6; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0.25) 40%, rgba(26, 26, 26, 0.7) 100%); }
.hero-content { position: relative; z-index: 3; width: 100%; padding: 0 2.5rem; max-width: var(--max-width); margin: 0 auto; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bronze); margin-bottom: 2rem; display: inline-flex; align-items: center; gap: 1rem; opacity: 0; animation: fadeUp 1s ease 0.3s forwards; }
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--bronze); }
.hero h1 { color: var(--white); font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.025em; max-width: 14ch; margin-bottom: 2rem; opacity: 0; animation: fadeUp 1s ease 0.5s forwards; }
.hero h1 em { font-style: italic; color: var(--bronze); font-weight: 400; }
.hero-sub { font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 56ch; color: rgba(255, 255, 255, 0.92); margin-bottom: 3rem; font-weight: 300; opacity: 0; animation: fadeUp 1s ease 0.7s forwards; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s ease 0.9s forwards; }
.hero-meta { position: absolute; bottom: 2.5rem; left: 0; right: 0; z-index: 3; padding: 0 2.5rem; max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; color: rgba(255, 255, 255, 0.7); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0; animation: fadeUp 1s ease 1.1s forwards; }
.hero-meta-left { display: flex; gap: 1.2rem; align-items: center; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1.1rem 2.2rem; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; border: none; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background: var(--crimson); color: var(--white); }
.btn-primary:hover { background: var(--crimson-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139, 0, 0, 0.25); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn-arrow { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--crimson); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; padding: 0.5rem 0; border-bottom: 1px solid var(--crimson); transition: gap 0.3s ease; }
.btn-arrow:hover { gap: 1rem; }
.btn-arrow::after { content: '→'; }

/* SECTION HEADERS */
.section-header { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 5rem; align-items: end; }
.section-header-left .eyebrow { margin-bottom: 1rem; }
.section-header-left h2 { max-width: 14ch; }
.section-header-right p { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--slate); font-weight: 400; }

/* CLIENTS BAR */
.clients-bar { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 3rem 0; }
.clients-label { text-align: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone); margin-bottom: 2rem; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem 3rem; align-items: center; max-width: var(--content-width); margin: 0 auto; padding: 0 2.5rem; }
.client-logo { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; text-align: center; color: var(--stone); letter-spacing: 0.02em; transition: color 0.3s ease; }
.client-logo:hover { color: var(--charcoal); }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.service-card { background: var(--paper); padding: 3.5rem 3rem; transition: background 0.4s ease; display: flex; flex-direction: column; min-height: 320px; }
.service-card:hover { background: var(--white); }
.service-number { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--crimson); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.85rem; margin-bottom: 1.25rem; }
.service-card p { color: var(--slate); line-height: 1.65; margin-bottom: 2rem; flex: 1; }
.service-card .btn-arrow { align-self: flex-start; }

/* PROJECTS */
.projects-section { background: var(--charcoal); color: var(--white); }
.projects-section h2 { color: var(--white); }
.projects-section .section-header-right p { color: rgba(255, 255, 255, 0.75); }
.projects-section .eyebrow { color: var(--bronze); }
.projects-section .eyebrow::before { background: var(--bronze); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); }
.project-card { background: var(--charcoal); padding: 3rem 2.5rem; transition: background 0.4s ease; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.project-card:hover { background: var(--charcoal-soft); }
.project-stat { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--bronze); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.project-unit { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 2rem; }
.project-desc { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; line-height: 1.5; }

/* INDUSTRIES */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.industry-card { background: var(--paper); padding: 2.5rem 2rem; transition: all 0.3s ease; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.industry-card:hover { background: var(--white); }
.industry-icon { width: 36px; height: 36px; margin-bottom: 1.5rem; color: var(--crimson); }
.industry-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.5rem; }
.industry-desc { font-size: 0.85rem; color: var(--slate); line-height: 1.5; }

/* RIGHTS LIST */
.rights-list { display: grid; grid-template-columns: repeat(2, 1fr); max-width: var(--reading-width); margin: 0 auto; }
.right-item { padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: 1.15rem; color: var(--charcoal-soft); display: flex; align-items: center; gap: 1rem; }
.right-item::before { content: '—'; color: var(--crimson); font-weight: 600; }
.right-item:nth-child(odd) { padding-right: 2rem; }
.right-item:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--rule); }

/* STATES */
.states-section { text-align: center; }
.states-list { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 3rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.state-tag { padding: 1.25rem 2rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--charcoal); border-right: 1px solid var(--rule); font-weight: 500; }
.state-tag:last-child { border-right: none; }

/* STATS BLOCK */
.stats-block { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 4rem 0; margin: 5rem 0; }
.stat { text-align: center; border-right: 1px solid var(--rule); padding: 1rem 2rem; }
.stat:last-child { border-right: none; }
.stat-number { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; color: var(--crimson); font-weight: 500; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }

/* COMMITMENTS */
.commitments { display: grid; grid-template-columns: repeat(2, 1fr); }
.commitment { padding: 3rem; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); position: relative; }
.commitment:nth-child(2n) { border-right: none; }
.commitment:nth-last-child(-n+2) { border-bottom: none; }
.commitment-number { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--crimson); margin-bottom: 1rem; display: block; }
.commitment h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.commitment p { color: var(--slate); font-size: 0.95rem; line-height: 1.65; }

/* SERVICE DETAIL */
.service-detail { padding: 6rem 0; border-bottom: 1px solid var(--rule); }
.service-detail:last-child { border-bottom: none; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.service-detail-meta .eyebrow { margin-bottom: 1rem; }
.service-detail-meta h2 { margin-bottom: 1.5rem; }
.service-detail-body p { font-size: 1.1rem; line-height: 1.7; color: var(--charcoal-soft); margin-bottom: 2rem; }
.service-capabilities { list-style: none; margin-top: 2rem; }
.service-capabilities li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; color: var(--charcoal); display: flex; align-items: center; gap: 1rem; }
.service-capabilities li::before { content: ''; width: 20px; height: 1px; background: var(--crimson); flex-shrink: 0; }

/* PAGE HERO */
.page-hero { padding: 12rem 0 5rem; background: var(--paper-warm); border-bottom: 1px solid var(--rule); }
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5rem); max-width: 18ch; margin-bottom: 1.5rem; }
.page-hero .lead { max-width: 60ch; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6rem; align-items: start; }
.contact-info-block { margin-bottom: 2.5rem; }
.contact-info-block .eyebrow { margin-bottom: 1rem; }
.contact-info-block p, .contact-info-block a { font-family: var(--font-display); font-size: 1.35rem; color: var(--charcoal); line-height: 1.5; display: block; }
.contact-info-block a:hover { color: var(--crimson); }
.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.6rem; }
.form-field input, .form-field textarea, .form-field select { font-family: var(--font-body); font-size: 1rem; padding: 0.85rem 0; border: none; border-bottom: 1px solid var(--rule); background: transparent; color: var(--charcoal); transition: border-color 0.3s ease; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-bottom-color: var(--crimson); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; margin-top: 1rem; }

/* FOOTER */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.7); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand .logo-mark { filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.footer-brand p { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); max-width: 38ch; }
.footer-col h4 { color: var(--white); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.85rem; }
.footer-col a { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--bronze); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

/* CTA BAND */
.cta-band { background: var(--paper-warm); padding: 5rem 0; text-align: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1.5rem; }
.cta-band p { font-family: var(--font-display); font-size: 1.25rem; color: var(--slate); margin-bottom: 2.5rem; font-style: italic; }
.cta-phone { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--charcoal); margin-top: 1.5rem; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-meta { opacity: 1 !important; animation: none !important; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .section-header { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid, .commitments, .contact-grid { grid-template-columns: 1fr; }
  .commitment { border-right: none !important; }
  .projects-grid, .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-block { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat { border-right: none; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-header.hero-mode .nav-links.open .nav-link,
  .site-header.hero-mode .nav-links.open .phone-number { color: var(--charcoal); }
  .container, .container-narrow { padding: 0 1.5rem; }
  .section { padding: 4.5rem 0; }
  .nav { padding: 1rem 1.5rem; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--paper); flex-direction: column; padding: 6rem 2.5rem 2rem; gap: 2rem; transition: right 0.4s ease; align-items: flex-start; box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1); }
  .nav-links.open { right: 0; }
  .phone-number { border-left: none; padding-left: 0; padding-top: 1rem; border-top: 1px solid var(--rule); width: 100%; }
  .mobile-toggle { display: block; z-index: 200; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-meta { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .projects-grid, .industries-grid, .rights-list, .form-row { grid-template-columns: 1fr; }
  .right-item:nth-child(even) { padding-left: 0; border-left: none; }
  .stats-block { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .states-list { flex-direction: column; }
  .state-tag { border-right: none; border-bottom: 1px solid var(--rule); width: 100%; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
