/* Flynn Civil — Professional Civil Construction Site */
:root {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --bg-card: #1e293b;
  --surface: #f8fafc;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-muted: #475569;
  --accent: #1a9b4a;
  --accent-hover: #15803d;
  --accent-soft: rgba(26, 155, 74, 0.15);
  --border: rgba(148, 163, 184, 0.15);
  --success: #10b981;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Oswald", "Inter", sans-serif;
  --header-h: 80px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(15, 23, 42, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

/* Soft plate so black logo text stays readable on dark header */
.header .logo-img {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 4px 12px;
}

.logo-img.logo-img-sm {
  height: 48px;
}

.footer .logo-img {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 4px 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.logo-text span {
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta { display: none; }

@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 0.85rem 1rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 155, 74, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(59, 130, 246, 0.06), transparent),
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header.light .section-title,
.section-header.light .section-desc {
  color: var(--text);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services */
.services {
  background: var(--surface);
  color: var(--text-dark);
}

.services .section-eyebrow { color: var(--accent-hover); }
.services .section-title { color: var(--text-dark); }
.services .section-desc { color: var(--text-dark-muted); }

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

.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  border-color: #86efac;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.55;
}

/* Projects */
.projects {
  background: var(--bg-elevated);
}

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.project-visual {
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--bg);
  border-left: 4px solid var(--accent);
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.project-visual h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-visual p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About */
.about {
  background: var(--surface);
  color: var(--text-dark);
}

.about .section-eyebrow { color: var(--accent-hover); }
.about .section-title { color: var(--text-dark); }

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.about-content p {
  color: var(--text-dark-muted);
  margin-bottom: 1rem;
}

.about-list {
  margin-top: 1.5rem;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-dark);
  font-weight: 500;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
}

.highlight-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.highlight-card span {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
}

/* Safety */
.safety {
  background: var(--bg);
}

.safety-banner {
  display: grid;
  gap: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

@media (min-width: 800px) {
  .safety-banner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.safety-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.safety-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.safety-point .num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2rem;
}

.safety-point strong {
  display: block;
  margin-bottom: 0.15rem;
}

.safety-point p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, #1a9b4a 0%, #15803d 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  max-width: 480px;
  margin: 0 auto 1.75rem;
  opacity: 0.9;
}

.cta-box .btn-primary {
  background: #fff;
  color: #15803d;
}

.cta-box .btn-primary:hover {
  background: #0f172a;
  color: #fff;
}

/* Contact */
.contact {
  background: var(--surface);
  color: var(--text-dark);
}

.contact .section-eyebrow { color: var(--accent-hover); }
.contact .section-title { color: var(--text-dark); }
.contact .section-desc { color: var(--text-dark-muted); }

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

.contact-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 500px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-note.success { color: var(--success); }
.form-note.error { color: #ef4444; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.info-block h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.35rem;
}

.info-block p {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
}

.info-block a {
  color: var(--text-dark);
  font-weight: 600;
}

.info-block a:hover {
  color: var(--accent-hover);
}

/* Footer */
.footer {
  background: #020617;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 260px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.45rem;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom .domain {
  color: var(--accent);
  font-weight: 500;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
  }
  .footer-bottom {
    grid-column: 1 / -1;
  }
}
