/* ============================================================
   Datco Manufacturing — style.css
   Single-page, mobile-first responsive design
   Primary: #1B4F8A | Accent: #C8913A | Dark: #1C1C1C | Light: #F4F6F9
   ============================================================ */

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

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1B4F8A;
  --color-primary-dk: #153d6e;
  --color-accent: #C8913A;
  --color-accent-dk: #a97328;
  --color-dark: #1C1C1C;
  --color-mid: #4A4A4A;
  --color-light-bg: #F4F6F9;
  --color-white: #ffffff;
  --color-border: #dde2ea;

  --font-base: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .15);

  --transition: 0.25s ease;
  --max-width: 1200px;
  --section-pad: 90px 20px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
  margin-bottom: 1rem;
  color: var(--color-mid);
}

p:last-child {
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.section-subtitle {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--color-mid);
  margin-bottom: 2.5rem;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .6);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: none;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--color-primary);
  background: rgba(27, 79, 138, .06);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  padding: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

.mobile-nav .btn {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   HERO — VERTICAL SPLIT
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 92vh;
  overflow: hidden;
  padding: 0;
}

/* Left: dark navy content panel */
.hero-panel {
  background: var(--color-primary-dk);
  display: flex;
  align-items: center;
  padding: 80px 20px 70px;
  flex: 1;
}

.hero-panel-inner {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

/* Right: photo */
.hero-image {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 145, 58, .18);
  border: 1px solid rgba(200, 145, 58, .45);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-sub {
  color: rgba(255, 255, 255, .85);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Desktop: true 50/50 side-by-side vertical split */
@media (min-width: 900px) {
  .hero {
    flex-direction: row;
  }

  .hero-panel {
    flex: 0 0 50%;
    padding: 80px max(48px, calc((100vw - 1200px) / 2 + 48px));
  }

  .hero-panel-inner {
    margin: 0;
    max-width: 100%;
  }

  .hero-image {
    flex: 0 0 50%;
    min-height: 92vh;
  }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-primary);
  padding: 0;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.trust-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-text strong {
  display: block;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.trust-text span {
  color: rgba(255, 255, 255, .7);
  font-size: 0.78rem;
}

@media (min-width: 640px) {
  .trust-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-item {
    border-bottom: none;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: var(--section-pad);
}

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

/* ============================================================
   CARD GRID (services + products)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

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

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(27, 79, 138, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-mid);
  margin-bottom: 0;
}

/* ============================================================
   ABOUT — TWO COLUMN
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.two-col-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   APPLICATION TAGS (services)
   ============================================================ */
.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.app-tag {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-mid);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-light-bg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--color-white);
  padding: 2.5rem 1.25rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-mid);
  text-align: center;
  padding: 1.5rem;
}

.gallery-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.gallery-placeholder-note {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.65;
  font-style: italic;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-phone-cta {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-phone-cta p {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-phone-num {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  transition: color var(--transition);
  margin-bottom: 0.25rem;
}

.contact-phone-num:hover {
  color: var(--color-accent);
}

.contact-detail-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-detail-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.contact-detail-row:last-child {
  border-bottom: none;
}

.contact-detail-row:hover {
  background: var(--color-light-bg);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(27, 79, 138, .08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
}

.contact-detail-value a {
  color: var(--color-primary);
  transition: color var(--transition);
}

.contact-detail-value a:hover {
  color: var(--color-accent);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-white);
}

.map-embed iframe {
  width: 100%;
  height: 440px;
  display: block;
  border: 0;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-primary) 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255, 255, 255, .02) 20px, rgba(255, 255, 255, .02) 40px);
}

.cta-banner .container {
  position: relative;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, .88);
  padding: 70px 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-logo {
  background: rgb(255, 255, 255, .99);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  display: inline-block;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
}

.footer-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, .8);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, .75);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.875rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, .8);
}

.footer-contact-item .fi {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, .8);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.25rem 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger>*.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

@media (max-width: 480px) {
  :root {
    --section-pad: 60px 16px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

@media print {

  .site-header,
  .site-footer,
  .cta-banner,
  .hero {
    display: none !important;
  }

  body {
    color: #000;
  }
}