@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --jmg-red: #C41E3A;
  --jmg-red-dark: #A01729;
  --jmg-red-light: #D63851;
  --jmg-charcoal: #1C1C1C;
  --jmg-dark: #000000;
  --jmg-gray: #F4F4F2;
  --jmg-mid: #888;
  --jmg-border: #E0E0DC;
  --jmg-white: #FFFFFF;
  --nav-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--jmg-white);
  color: var(--jmg-charcoal);
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--jmg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  border-bottom: 3px solid var(--jmg-red);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 46px;
  height: 46px;
  background: var(--jmg-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: white;
  letter-spacing: 0.5px;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.nav-logo-sub {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: white; }

.nav-cta {
  background: var(--jmg-red) !important;
  color: white !important;
  padding: 10px 22px;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--jmg-red-light) !important; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; display: flex; align-items: center; height: var(--nav-height); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  background: var(--jmg-dark);
  border-top: 3px solid var(--jmg-red);
  min-width: 230px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 11px 22px;
  font-size: 13px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: #fff; background: rgba(196,30,58,0.30); }

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,30,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,30,58,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-bg-accent {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(196,30,58,0.03) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--jmg-red-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--jmg-red);
}

.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: normal;
  color: var(--jmg-red-light);
}

.hero-body {
  font-size: 17px;
  color: #333;
  font-weight: 400;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--jmg-red);
  color: white;
  padding: 14px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--jmg-red-light); }

.btn-outline {
  border: 2px solid #000000;
  color: #000000;
  padding: 14px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hero-stat {
  padding: 32px 24px;
  background: #F9F9F9;
  text-align: center;
  border: 1px solid #E0E0E0;
}

.hero-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #000000;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-num span {
  color: var(--jmg-red-light);
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

.hero-lic {
  margin-top: 24px;
  padding: 14px 20px;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FAFAFA;
}

.hero-lic-dot {
  width: 8px;
  height: 8px;
  background: var(--jmg-red);
  flex-shrink: 0;
}

.hero-lic-text {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.5px;
}

/* ── SECTIONS ── */
section {
  scroll-margin-top: var(--nav-height);
}

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

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--jmg-red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--jmg-red);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--jmg-charcoal);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: #666;
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

/* ── SERVICES ── */
#services {
  background: var(--jmg-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  background: var(--jmg-border);
}

.service-card {
  background: white;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--jmg-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--jmg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--jmg-red-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--jmg-charcoal);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* ── SERVICE WORK ── */
#service-work {
  background: var(--jmg-dark);
  color: white;
}

#service-work .section-title { color: white; }
#service-work .section-subtitle { color: #aaa; }

.service-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
  background: rgba(255,255,255,0.06);
}

.sw-item {
  background: rgba(255,255,255,0.03);
  padding: 36px 32px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.sw-item:hover {
  border-left-color: var(--jmg-red);
  background: rgba(255,255,255,0.06);
}

.sw-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: rgba(139,26,26,0.3);
  line-height: 1;
  margin-bottom: 12px;
}

.sw-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.sw-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.65;
}

.service-work-cta {
  margin-top: 56px;
  padding: 40px 48px;
  background: rgba(139,26,26,0.12);
  border: 1px solid rgba(139,26,26,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.service-work-cta-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.5px;
}

.service-work-cta-sub {
  font-size: 14px;
  color: #888;
  margin-top: 6px;
}

/* ── PORTFOLIO ── */
#portfolio .section-inner { padding-bottom: 60px; }

.portfolio-filter {
  display: flex;
  gap: 4px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--jmg-border);
  color: #888;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--jmg-red);
  border-color: var(--jmg-red);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 24px;
  background: var(--jmg-border);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--jmg-charcoal);
  cursor: pointer;
}

.portfolio-item-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

.portfolio-item:hover .portfolio-item-bg { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay-content {}

.portfolio-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--jmg-red-light);
  margin-bottom: 6px;
}

.portfolio-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.5px;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1a1a1a;
}

.portfolio-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: #444;
  fill: none;
  stroke-width: 1.5;
}

.portfolio-placeholder-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
}

.portfolio-note {
  margin-top: 32px;
  padding: 20px 28px;
  background: var(--jmg-gray);
  border-left: 3px solid var(--jmg-red);
  font-size: 14px;
  color: #666;
}

/* ── ABOUT ── */
#about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.about-body {
  font-size: 16px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 24px;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--jmg-border);
  margin-top: 40px;
}

.about-cred {
  background: var(--jmg-gray);
  padding: 20px 24px;
}

.about-cred-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.about-cred-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--jmg-charcoal);
}

.about-visual {
  position: relative;
}

.about-visual-main {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--jmg-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 50%;
  background: var(--jmg-red);
  opacity: 0.15;
}

.about-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.about-photo-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: #555;
  fill: none;
  stroke-width: 1.5;
}

.about-photo-placeholder p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}

/* ── CONTACT ── */
#contact {
  background: var(--jmg-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-top: 60px;
}

.contact-info-item {
  margin-bottom: 32px;
}

.contact-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--jmg-red);
  margin-bottom: 6px;
}

.contact-info-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--jmg-charcoal);
}

.contact-info-value a {
  color: inherit;
  text-decoration: none;
}

.contact-info-value a:hover { color: var(--jmg-red); }

.contact-license {
  margin-top: 40px;
  padding: 20px 24px;
  background: white;
  border-left: 3px solid var(--jmg-red);
}

.contact-license p {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.contact-form {
  background: white;
  padding: 48px;
}

.contact-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--jmg-charcoal);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jmg-border);
  background: var(--jmg-gray);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--jmg-charcoal);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--jmg-red);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--jmg-red);
  color: white;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.form-submit:hover { background: var(--jmg-red-light); }

/* ── FOOTER ── */
footer {
  background: var(--jmg-dark);
  border-top: 3px solid var(--jmg-red);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: white; }

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

.footer-bottom p {
  font-size: 12px;
  color: #444;
}

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }

  /* dropdown collapses to an indented always-visible list inside the mobile menu */
  .nav-dropdown { height: auto; display: block; }
  .nav-dropdown-menu {
    display: block; position: static; box-shadow: none;
    border-top: none; min-width: 0; padding: 10px 0 0 16px;
  }
  .nav-dropdown-menu a { padding: 8px 0; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--jmg-dark);
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .hero-content { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .section-inner { padding: 60px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-work-grid { grid-template-columns: 1fr; }
  .service-work-cta { flex-direction: column; align-items: flex-start; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
