/* ============================================
   MAGNOLIA TECHNICAL GROUP — style.css
   ============================================ */

:root {
  --green-deep:  #0f3927;
  --green-dark:  #0a2b1c;
  --green-mid:   #174b36;
  --green-light: #1e6348;
  --gold:        #c9a84c;
  --gold-light:  #f0dfa0;
  --cream:       #f5f3ec;
  --cream-dark:  #ede9de;
  --white:       #ffffff;
  --text-dark:   #12221a;
  --text-mid:    #3a5247;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-card: 0 4px 24px rgba(15,57,39,0.10), 0 1px 4px rgba(15,57,39,0.06);
  --shadow-lift: 0 16px 48px rgba(15,57,39,0.18), 0 2px 8px rgba(15,57,39,0.08);
  --radius-card: 18px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ============================================
   HERO
   ============================================ */
.hero {
  width: 100%;
  min-height: 720px;
  background:
    radial-gradient(circle at 50% 10%, rgba(201,168,76,0.10) 0%, transparent 34%),
    linear-gradient(160deg, rgba(10,42,28,0.97) 0%, rgba(20,72,50,0.94) 58%, rgba(15,57,39,0.98) 100%),
    url("images/hero.jpg") center / cover no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 28px 6% 110px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 84px;
  background: var(--cream);
  clip-path: ellipse(58% 100% at 50% 100%);
  z-index: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 10;
}

.site-nav a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  transform: translateY(-1px);
}

.site-nav a.nav-cta {
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 800;
}

.site-nav a.nav-cta:hover {
  background: #d9bc6a;
  color: var(--green-deep);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
  width: 100%;
  position: relative;
  z-index: 3;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-card {
  width: 560px;
  max-width: 86%;
  background: var(--white);
  padding: 22px 28px;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
  margin-bottom: 32px;
}

.hero-logo {
  width: 100%;
  height: auto;
}

.eyebrow {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 860px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -1.2px;
  color: var(--white);
  margin-bottom: 24px;
}

.subtitle {
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
  margin-bottom: 14px;
}

.service-area {
  margin-bottom: 34px;
  color: rgba(255,255,255,0.66);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

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

.primary-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.primary-button:hover {
  background: #d9bc6a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}

.primary-button.large {
  font-size: 17px;
  padding: 17px 40px;
}

.phone-link {
  display: inline-block;
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.phone-link:hover {
  background: rgba(255,255,255,0.12);
}

/* ============================================
   SHARED
   ============================================ */
.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-label.light { color: var(--gold-light); opacity: 0.82; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading-row h2,
.common-section h2,
.why-section h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  color: var(--green-deep);
  font-weight: 400;
  line-height: 1.12;
}

.section-heading-row p {
  max-width: 380px;
  color: var(--text-mid);
  font-size: 16px;
  font-weight: 300;
}

/* ============================================
   SERVICES
   ============================================ */
.services-section {
  padding: 95px 6% 80px;
  background: var(--cream);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  padding: 30px 26px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,57,39,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--gold));
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:hover::before { opacity: 1; }

.featured-card {
  background: linear-gradient(180deg, var(--white) 0%, #fbfaf5 100%);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-mid);
}

.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 16px; font-weight: 800; color: var(--green-deep); margin-bottom: 8px; line-height: 1.3; }
.card p { font-size: 14px; line-height: 1.68; color: var(--text-mid); }

/* ============================================
   COMMON JOBS
   ============================================ */
.common-section {
  padding: 70px 6%;
  background: var(--white);
  border-top: 1px solid rgba(15,57,39,0.08);
  border-bottom: 1px solid rgba(15,57,39,0.08);
}

.common-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.common-section p {
  color: var(--text-mid);
  font-size: 17px;
  font-weight: 300;
  margin-top: 18px;
  max-width: 520px;
}

.job-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.job-list div {
  background: var(--cream);
  border: 1px solid rgba(15,57,39,0.08);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 700;
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  padding: 86px 6%;
  background: var(--cream-dark);
  border-bottom: 1px solid rgba(15,57,39,0.08);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 62px);
  color: var(--green-deep);
  font-weight: 400;
  line-height: 1.04;
  margin-bottom: 22px;
}

.about-text h2 em { font-style: italic; color: var(--green-light); }

.about-text p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-mid);
  margin-bottom: 18px;
  max-width: 650px;
}

.secondary-button {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--green-mid);
  background: transparent;
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.secondary-button:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.about-card {
  background: var(--green-deep);
  color: var(--white);
  padding: 38px;
  border-radius: 26px;
  box-shadow: var(--shadow-lift);
}

.about-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.about-card-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: rgba(201,168,76,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.about-card-top strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
.about-card > p { font-size: 14px; color: rgba(255,255,255,0.64); margin-bottom: 24px; line-height: 1.6; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.about-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.84);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
  padding: 78px 6%;
  background: var(--cream);
}

.why-section h2 {
  margin-bottom: 36px;
}

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

.why-item {
  background: var(--white);
  border: 1px solid rgba(15,57,39,0.07);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.why-item h3 {
  color: var(--green-deep);
  font-size: 17px;
  margin-bottom: 10px;
}

.why-item p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  padding: 100px 6%;
  background: var(--green-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.contact-section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 62px);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.08;
}

.contact-intro {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.66);
  line-height: 1.6;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row div {
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.contact-form {
  width: 100%;
  max-width: 680px;
  margin: 42px auto 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.96);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(18,34,26,0.46);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.22);
}

.contact-form select { cursor: pointer; }

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.form-submit {
  border: none;
  cursor: pointer;
  align-self: center;
  margin-top: 6px;
}

.contact-options {
  margin-top: 24px;
  font-size: 15px;
  color: rgba(255,255,255,0.64);
  line-height: 1.8;
}

.contact-options a {
  color: var(--gold-light);
  font-weight: 800;
  text-decoration: none;
}

.contact-options a:hover { text-decoration: underline; }

.contact-tagline {
  margin-top: 34px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.34);
}

/* ============================================
   FOOTER
   ============================================ */
footer { background: #091f14; padding: 26px 6%; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.42);
}

footer span,
footer a {
  font-size: 13px;
  color: rgba(255,255,255,0.36);
  text-decoration: none;
}

footer a:hover { color: var(--gold-light); }

.footer-location {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.24) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
  .section-heading-row,
  .common-inner,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row p {
    margin-top: 16px;
  }

  .about-inner {
    gap: 42px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 18px 5% 92px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-nav a {
    white-space: nowrap;
    padding: 8px 13px;
    font-size: 13px;
  }

  .hero-content {
    padding-top: 36px;
  }

  .logo-card {
    max-width: 92%;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .phone-link {
    width: 100%;
    max-width: 340px;
    text-align: center;
  }

  .services-section,
  .about-section,
  .why-section,
  .contact-section,
  .common-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .cards,
  .job-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
    border-radius: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer-location { display: none; }
}
