/* =============================================
   ROLTNA ENGINEERING — Shared Stylesheet
   ============================================= */

/* Google Fonts are loaded in HTML */

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

:root {
  /* Brand Colors */
  --primary:                #F26522;
  --primary-fixed:          #FEE5D5;
  --primary-fixed-dim:      #FFBA8A;
  --primary-container:      #D4520C;
  --on-primary:             #ffffff;
  --on-primary-fixed:       #3D1200;
  --on-primary-fixed-variant: #9C3800;
  --on-primary-container:   #fff8f5;

  --secondary:              #495f82;
  --secondary-fixed:        #d5e3ff;
  --secondary-fixed-dim:    #b1c8ef;
  --secondary-container:    #bfd5fe;
  --on-secondary:           #ffffff;
  --on-secondary-fixed:     #011c3b;
  --on-secondary-fixed-variant: #314768;
  --on-secondary-container: #465c7f;

  --tertiary:               #5c5c5c;
  --tertiary-fixed:         #e4e2e2;
  --tertiary-fixed-dim:     #c7c6c6;
  --tertiary-container:     #747474;
  --on-tertiary:            #ffffff;
  --on-tertiary-fixed:      #1b1c1c;
  --on-tertiary-fixed-variant: #464747;
  --on-tertiary-container:  #fefcfc;

  --background:             #f9f9f9;
  --on-background:          #1a1c1c;
  --surface:                #f9f9f9;
  --surface-bright:         #f9f9f9;
  --surface-dim:            #dadada;
  --surface-variant:        #e2e2e2;
  --surface-container-lowest: #ffffff;
  --surface-container-low:  #f3f3f3;
  --surface-container:      #eeeeee;
  --surface-container-high: #e8e8e8;
  --surface-container-highest: #e2e2e2;
  --on-surface:             #1a1c1c;
  --on-surface-variant:     #4a4a4a;
  --surface-tint:           #F26522;

  --outline:                #8a8a8a;
  --outline-variant:        #e0dede;
  --inverse-surface:        #2f3131;
  --inverse-on-surface:     #f1f1f1;
  --inverse-primary:        #FFBA8A;

  --error:                  #ba1a1a;
  --error-container:        #ffdad6;
  --on-error:               #ffffff;
  --on-error-container:     #93000a;

  /* Typography */
  --font-display:  'Archivo Narrow', sans-serif;
  --font-body:     'Work Sans', sans-serif;

  /* Spacing */
  --gutter:        24px;
  --margin:        32px;
  --container-max: 1280px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-background);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background-color: var(--primary);
  color: var(--on-primary);
}

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.text-headline-xl {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-headline-lg {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}
.text-headline-md {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.text-label-bold {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}
.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
.text-body-md {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
}

/* =============================================
   COMPONENTS: NAVIGATION
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 2px solid var(--outline);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--margin);
  max-width: var(--container-max);
  margin: 0 auto;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--on-surface);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color var(--transition-fast);
}
.navbar-brand:hover { color: var(--primary); }

.nav-logo { height: 72px; width: auto; display: block; object-fit: contain; }

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

.navbar-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  padding: 8px 12px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
}
.navbar-nav a:hover {
  color: var(--primary);
  background-color: var(--surface-container-high);
}
.navbar-nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.navbar-nav a:active { transform: scale(0.95); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.95); }

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  padding: 12px 24px;
}
.btn-primary:hover {
  background-color: var(--surface);
  color: var(--primary);
}

.btn-outline-white {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
  padding: 16px 32px;
}
.btn-outline-white:hover {
  background-color: #fff;
  color: var(--on-secondary-fixed);
}

.btn-ghost-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: transparent;
  padding: 8px 0;
  font-size: 13px;
}
.btn-ghost-primary:hover { color: var(--primary-container); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
  padding: 8px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: 16px var(--margin);
  gap: 4px;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--outline-variant);
  transition: color var(--transition-fast);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--primary); }

.mobile-nav .btn-primary { margin-top: 8px; justify-content: center; }

@media (max-width: 767px) {
  .navbar-nav, .nav-cta-desktop { display: none !important; }
  .nav-toggle { display: block; }
}

/* =============================================
   COMPONENTS: FOOTER
   ============================================= */
.site-footer {
  background-color: var(--secondary);
  border-top: 4px solid var(--primary);
  color: var(--on-secondary);
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  padding: 64px var(--margin);
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; padding: 48px 16px; }
}

.footer-brand-name { background: #fff; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; padding: 12px 16px; }

.footer-logo { height: 80px; width: auto; display: block; object-fit: contain; }

.footer-tagline {
  color: var(--secondary-fixed-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-fixed);
  margin-bottom: 16px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--secondary-fixed-dim);
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact-list .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary-fixed-dim);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--secondary-fixed-dim);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-size: 14px;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--primary-fixed); }

.footer-cta-box {
  background: rgba(164, 56, 0, 0.12);
  border-left: 3px solid var(--primary);
  padding: 24px;
}

.footer-cta-box h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-fixed);
  line-height: 1.2;
  margin-bottom: 10px;
}

.footer-cta-box p {
  color: var(--secondary-fixed-dim);
  font-size: 14px;
  line-height: 1.5;
}

.footer-copyright {
  border-top: 1px solid rgba(73, 95, 130, 0.3);
}

.footer-copyright-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--secondary-fixed-dim);
  font-size: 13px;
}

/* =============================================
   COMPONENTS: SECTION HEADER BADGE
   ============================================= */
.section-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-left: 4px solid var(--on-secondary-fixed);
  margin-bottom: 24px;
}

.section-badge h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-up  { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-in     { animation: fadeIn 0.7s ease forwards; }
.animate-slide-left  { animation: slideInLeft 0.6s ease forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Intersection Observer classes */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   SCROLL-TO-TOP BUTTON
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
  z-index: 200;
  box-shadow: 0 4px 16px rgba(164,56,0,0.35);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); }

/* =============================================
   Material Symbols defaults
   ============================================= */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  vertical-align: middle;
}

/* ── CTA BANNER ── */
.about-cta {
  background: var(--primary);
  padding: 64px var(--margin);
  position: relative; overflow: hidden;
}
.about-cta-bg {
  position: absolute; right: -20px; top: -20px;
  font-family: var(--font-display); font-size: 160px; font-weight: 700;
  color: rgba(255,255,255,0.06); text-transform: uppercase;
  line-height: 1; user-select: none; pointer-events: none;
}
.about-cta-inner {
  max-width: var(--container-max); margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.about-cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px,4vw,36px); font-weight: 700; color: #fff; line-height: 1.2;
}
.about-cta-sub {
  font-size: 16px; color: rgba(255,255,255,0.8);
  margin-top: 8px; max-width: 480px; line-height: 1.65;
}
.about-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--on-secondary-fixed); color: #fff;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 18px 36px; white-space: nowrap;
  border: 2px solid var(--on-secondary-fixed);
  transition: background-color var(--transition-base), transform var(--transition-fast);
  flex-shrink: 0;
}
.about-cta-btn:hover { background: rgba(1,28,59,0.7); }
.about-cta-btn:active { transform: scale(0.96); }
.about-cta-btn .material-symbols-outlined { font-size: 20px; }
