/* ========================================
   Prem Enterprises — Minimal Editorial Design
   Light theme · Inter · No gradients
   ======================================== */

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #a8a29e;
  --info-text: #f5f5f4;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --accent: #292524;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1300px;
}

[data-theme="dark"] {
    --bg: #100f0e;
    --surface: #141413;
    --text: #fafaf9;
    --text-2: #d6d3d1;
    --text-3: #ab9f97;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --accent: #f5f5f4;
    --info-text: #f5f5f4;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 72px; overflow-x: hidden; }
::selection {background-color: var(--accent); color: var(--bg)}
::-webkit-scrollbar {display: none;}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { 
  cursor: pointer; 
  border: none; 
  background: none; 
  font-family: inherit; 
  font-size: inherit;
}

/* ========== PAGE FRAME ========== */
.page-frame {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Corner squares */
.corner-sq {
  position: absolute;
  width: 7px; height: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  z-index: 20;
}
.corner-sq.top-left { top: -4px; left: -4px; }
.corner-sq.top-right { top: -4px; right: -4px; }
.corner-sq.bottom-left { bottom: -4px; left: -4px; }
.corner-sq.bottom-right { bottom: -4px; right: -4px; }

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  border-top: 1px solid var(--border);
  position: relative;
}

/* ========== HEADER ========== */
.site-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  backdrop-filter: blur(12px);
  z-index: 100;
  position: sticky;
  top: 0;
}
.logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-link {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  text-decoration: none;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.2s ease;
}
.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--text);
  text-decoration: none;
}
.nav-link.active::after {
  width: 100%;
}
.header-cta {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-right: 24px;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-left: auto;
  margin-right: 16px;
  color: var(--text-2);
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.sun-icon { display: none; }
.moon-icon { display: block; }

.nav-toggle {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  display: block;
}
.nav-toggle.active span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:last-child { transform: rotate(-45deg) translate(4px, -4px); }

/* ========== HERO ========== */
.hero {
  padding: 80px 32px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  max-width: 520px;
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
}
.hero-image {
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 8;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 37%;
  opacity: 0.85;
}
.hero-image-fade {
  position: absolute;
  inset: 0;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ========== STATEMENT ========== */
.statement {
  padding: 80px 32px;
  background: var(--surface);
}
.statement-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.statement-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.statement-text {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ========== SECTIONS ========== */
.section-padded { padding: 72px 52px; }
.section-intro { margin-bottom: 48px; }
.section-heading {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
}
.body-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ========== SPLIT LAYOUT ========== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-image-wrap img {
  width: 100%; height: 400px;
  object-fit: cover;
}
.about-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.about-stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.about-stat-label {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.3;
}

/* Feature list */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 20px;
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-3);
}

.feature-bullets {margin-left: 20px;}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.service-card {
  padding: 32px;
  background: var(--surface);
}
.service-ic {
  font-size: 22px;
  color: var(--text-3);
  margin-bottom: 16px;
  display: block;
}
.service-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 260px;
  cursor: pointer;
}
.project-tall { grid-row: span 2; height: auto; }
.project-wide { grid-column: span 2; }
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: var(--info-text);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.55s;
}
.project-card:hover img {transform: scale(1.025);}
.project-card:hover .project-info { opacity: 1; }
.project-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.project-info h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.project-info p {
  font-size: 12px;
  opacity: 0.7;
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider { overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}
.testimonial-quote {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  max-width: 1000px;
  margin: 28px auto 28px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.testimonial-cite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.testimonial-cite strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.testimonial-cite span {
  font-size: 15px;
  color: var(--text-3);
}
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.slider-arrow {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3);
  font-size: 16px;
  transition: all 0.2s;
}
.slider-arrow:hover {
  border-color: var(--text);
  color: var(--text);
}
.slider-dots { display: flex; gap: 6px; }
.slider-dot {
  width: 6px; height: 6px;
  background: var(--border-strong);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.slider-dot.active {
  background: var(--text);
  width: 20px;
  border-radius: 3px;
}

/* ========== CONTACT ========== */
.contact-split { align-items: start; }
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.contact-row:hover { border-color: var(--border-strong); }
.contact-ic {
  font-size: 18px;
  color: var(--text-3);
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1px;
  user-select: none;
}
.contact-val {
  font-size: 14px;
  color: var(--text);
}
.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--surface);
}
.form-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-3); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--text-3); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn-primary { width: 100%; justify-content: center; }

/* ========== FOOTER ========== */
.site-footer {
  padding: 48px 32px 24px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}
.footer-heading {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ========== WHATSAPP ========== */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  z-index: 900;
  transition: grayscale 1.2s;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1.2s var(--ease), transform 1.8s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
    z-index: 105;
    transform: none;
  }
  .nav-links.open {
    max-height: 400px;
    padding: 16px 24px;
  }
  .nav-link {
    font-size: 15px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--text); font-weight: 500; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 768px) {
  .page-frame { border: none; }
  .site-header { padding: 0 20px; }
  .hero, .section-padded, .statement { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .split-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-tall { grid-row: span 1; height: 260px; }
  .project-wide { grid-column: span 1; }
  .project-info { opacity: 1; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; }
  
  /* Additional polish */
  .divider-small { margin: 40px 0; }
  .project-info-static { padding: 24px 20px; }
  .project-list-items { font-size: 13px; }
  .group-heading { font-size: 18px; margin-bottom: 20px; }
}

/* ========== UTILITY CLASSES ========== */
.section-surface { background: var(--surface); }
.hero-page { padding-bottom: 64px; }
.text-narrow { max-width: 900px; }
.mt-16 { margin-top: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ========== CTA SECTION ========== */
.cta-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-center .hero-title { font-size: 2.5rem; }
.cta-center .hero-sub {
  margin: 24px auto 48px;
  max-width: 600px;
}

/* ========== ABOUT IMAGE VARIANTS ========== */
.about-image-wrap--tall { height: 500px; }
.about-image-wrap--full { height: 600px; }
.about-image-wrap--welding { height: 540px; width: 540px; }
.about-image-wrap--tall img,
.about-image-wrap--full img,
.about-image-wrap--welding img { height: 100%; object-fit: cover; }
.about-image-wrap--full img { object-position: center 50%; opacity: 0.85; }

/* ========== VISION PAGE ========== */
.vision-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ========== SERVICE IMAGE VARIANTS ========== */
.service-img--cleaning { object-position: center 20%; }

/* ========== CONTACT PAGE ========== */
.social-links-minimal { margin-top: 48px; }
.social-links-minimal .contact-label { margin-bottom: 16px; }
.social-links-row { display: flex; gap: 24px; }
.social-link { color: var(--text-3); font-size: 20px; }

.form-status {
  margin-top: 16px;
  font-size: 13px;
  display: none;
}

/* ========== MAP SECTION ========== */
.map-section {
  height: 400px;
  background: #eee;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .map-section { background: var(--surface); }
.bw-map {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Page Specific UI Fixes */
.divider-small {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 64px 0;
}
.project-info-static {
  padding: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--surface);
}
.project-list-items {
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
  line-height: 2;
}
.project-list-items li::before {
  content: "- ";
  margin-right: 10px;
  color: var(--text-3);
}

/* ========== BUILDER ACCORDION ========== */
.builder-accordion {
  border-bottom: 1px solid var(--border);
}
.builder-accordion:first-child {
  border-top: 1px solid var(--border);
}
.builder-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: padding 120ms;
}
.builder-header:hover {
  padding: 16px 26px 16px 16px;
  background: var(--surface);
}
.builder-header:hover .builder-count {
  color: var(--text-2);
}
.builder-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}
.builder-header:hover .builder-name {
  letter-spacing: 0;
}
.builder-count {
  font-size: 13px;
  color: var(--text-3);
  margin-left: auto;
  white-space: nowrap;
}
.accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.builder-header[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}
.builder-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.3s var(--ease);
  padding: 0 8px;
}
.builder-body.open {
  padding: 0 18px 32px;
}
.project-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
  margin-bottom: 24px;
}
.project-list li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 2;
  padding-left: 16px;
  position: relative;
}
.project-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
  transform: translateY(-50%);
}
.project-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.project-img-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.project-img-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--border);
}
.project-img-label {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .project-list { grid-template-columns: 1fr; }
  .project-images-grid { grid-template-columns: 1fr; }
  .builder-name { font-size: 16px; }
}
