/* ==========================================================================
   JM Holding — Unified Stylesheet
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --color-primary: #c8a456;
  --color-primary-dark: #b08e3a;
  --color-dark: #111118;
  --color-darker: #0a0a0f;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-light: #f8f8f8;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 120px;
  --transition: 0.3s ease;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 16px 0 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-logo img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-primary);
}

/* Header Social */
.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-social a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.header-social a:hover { color: var(--color-primary); }
.header-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 16px;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.lang-current:hover { background: rgba(255,255,255,0.15); }
.lang-current svg { width: 10px; height: 10px; transition: transform var(--transition); }
.lang-switcher.open .lang-current svg { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-darker);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  min-width: 160px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown a {
  display: block;
  padding: 8px 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--color-primary); }
.lang-dropdown a.active { color: var(--color-primary); font-weight: 600; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 24px 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,26,0.85) 0%, rgba(26,26,46,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-subtitle {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: 24px;
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* Standard page hero (shorter but still prominent) */
.hero-page {
  min-height: 55vh;
  padding-bottom: 80px;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 80px 0;
}
.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark .divider { background: var(--color-primary); }

.section-light {
  background: var(--color-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section-header .divider {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FOCUS & KEY SECTORS (Home)
   ========================================================================== */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.focus-text .phone-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 16px;
}
.focus-text .phone-label svg { width: 16px; height: 16px; fill: var(--color-primary); }
.focus-text .phone-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 4px;
}
.focus-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Key Sectors */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sector-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sector-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sector-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.sector-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sector-icon svg { width: 24px; height: 24px; fill: var(--color-white); }
.sector-item h5 { margin: 0; color: var(--color-dark); }

/* ==========================================================================
   EXCELLENCE SECTION (Testimonials on Home)
   ========================================================================== */
.excellence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.excellence-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.excellence-card:hover { transform: translateY(-4px); }
.excellence-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.excellence-card-content {
  padding: 24px;
  background: var(--color-white);
}
.excellence-card .quote-icon {
  color: var(--color-primary);
  margin-bottom: 12px;
}
.excellence-card .quote-icon svg { width: 24px; height: 24px; fill: var(--color-primary); }
.excellence-card blockquote {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.excellence-card .author { font-weight: 600; color: var(--color-dark); }
.excellence-card .role { font-size: 0.85rem; color: var(--color-primary); }

/* ==========================================================================
   PROJECTS GRID
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
}
.project-overlay h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* ==========================================================================
   STATS / COUNTERS
   ========================================================================== */
.stats-section {
  background: var(--color-dark);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,26,0.88) 0%, rgba(26,26,46,0.75) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* ==========================================================================
   ABOUT PAGE — Founder & Team
   ========================================================================== */
.founder-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  align-items: center;
}
.founder-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.team-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-4px); }
.team-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.team-card-body {
  padding: 20px;
}
.team-card h4 { margin-bottom: 8px; }
.team-card p { font-size: 0.9rem; color: var(--color-text-light); margin: 0; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--color-text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200,164,86,0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; }

.form-status {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.form-status.error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

/* Contact Info */
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; fill: var(--color-white); }
.contact-info-item h5 { margin-bottom: 4px; }
.contact-info-item p { margin: 0; color: var(--color-text-light); font-size: 0.9rem; }

.contact-social { display: flex; gap: 12px; margin-top: 16px; }
.contact-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.contact-social a:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.contact-social svg { width: 18px; height: 18px; fill: var(--color-white); }

.map-embed {
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ==========================================================================
   BLOG (Coming Soon Placeholder)
   ========================================================================== */
.coming-soon {
  text-align: center;
  padding: 80px 24px;
}
.coming-soon h2 { margin-bottom: 16px; }
.coming-soon p { color: var(--color-text-light); max-width: 500px; margin: 0 auto; }

/* ==========================================================================
   PROJECTS PAGE — Detailed Cards
   ========================================================================== */
.projects-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.project-detail-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.project-detail-card:hover { transform: translateY(-4px); }
.project-detail-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.project-detail-card-body {
  padding: 24px;
}
.project-detail-card .number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}
.project-detail-card h3 { margin-top: 8px; font-size: 1.2rem; }
.project-detail-card p { font-size: 0.9rem; color: var(--color-text-light); margin-top: 12px; line-height: 1.6; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-darker);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo img {
  max-width: 400px;
  width: 100%;
  margin-bottom: 24px;
}
.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-primary); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--color-primary); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--color-primary-dark); }
.scroll-top svg { width: 20px; height: 20px; fill: var(--color-white); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .excellence-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .founder-grid { grid-template-columns: 250px 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,15,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; padding: 12px 24px; }

  .header-social { display: none; }

  .hero { min-height: 60vh; }
  .hero-page { min-height: 35vh; }

  .focus-grid,
  .sectors-grid,
  .contact-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid { grid-template-columns: 1fr; }
  .projects-detail-grid { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .excellence-card img { height: 250px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  h1 { font-size: 1.8rem; }
  .hero { padding-top: calc(var(--header-height) + 24px); padding-bottom: 48px; }
}
