/* =====================================================
   TDPOM
   CAD DESIGN & ENGINEERING SERVICES
   LIGHT PROFESSIONAL THEME
===================================================== */


/* =====================================================
   VARIABLES
===================================================== */

:root {

  --white: #ffffff;

  --off-white: #f6f7f5;

  --light-gray: #eef0ed;

  --gray: #d9ddd9;

  --border: #dfe3df;

  --border-dark: #cbd0cb;

  --charcoal: #171a19;

  --dark-gray: #303533;

  --muted: #68706c;

  --accent: #b7d900;

  --accent-dark: #91aa00;

}


/* =====================================================
   RESET
===================================================== */

* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}


html {

  scroll-behavior: smooth;

}


body {

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  background:
    var(--white);

  color:
    var(--charcoal);

  line-height:
    1.6;

  overflow-x:
    hidden;

}


img {

  max-width:
    100%;

}


a {

  color:
    inherit;

  text-decoration:
    none;

}


.container {

  width:
    min(1180px, 90%);

  margin:
    0 auto;

}


/* =====================================================
   HEADER
===================================================== */

.header {

  position:
    sticky;

  top:
    0;

  z-index:
    1000;

  background:
    rgba(255, 255, 255, 0.95);

  backdrop-filter:
    blur(15px);

  border-bottom:
    1px solid var(--border);

}


.nav {

  min-height:
    78px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    30px;

}


/* =====================================================
   LOGO
===================================================== */

.logo {

  font-size:
    27px;

  font-weight:
    900;

  letter-spacing:
    -1.5px;

}


.logo span {

  color:
    var(--accent-dark);

}


/* =====================================================
   NAVIGATION
===================================================== */

.desktop-nav {

  display:
    flex;

  gap:
    32px;

}


.desktop-nav a {

  color:
    #4d5551;

  font-size:
    14px;

  font-weight:
    600;

  transition:
    color .2s ease;

}


.desktop-nav a:hover {

  color:
    var(--accent-dark);

}


.nav-button {

  border:
    1px solid var(--charcoal);

  padding:
    10px 18px;

  font-size:
    13px;

  font-weight:
    800;

  transition:
    .2s ease;

}


.nav-button:hover {

  background:
    var(--charcoal);

  color:
    white;

}


/* =====================================================
   HERO
===================================================== */

.hero {

  background:
    var(--white);

  border-bottom:
    1px solid var(--border);

}


.hero-content {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 70px 0;
}


.hero-text {

  position:
    relative;

  z-index:
    5;

}


.eyebrow {

  color:
    var(--accent-dark);

  font-size:
    11px;

  letter-spacing:
    3px;

  font-weight:
    900;

  margin-bottom:
    20px;

}


.hero h1 {

  font-size:
    clamp(52px, 7vw, 92px);

  line-height:
    .94;

  letter-spacing:
    -5px;

  font-weight:
    850;

}


.hero h1 span {

  color:
    var(--accent-dark);

}


.hero-description {

  max-width:
    590px;

  margin:
    30px 0;

  color:
    var(--muted);

  font-size:
    18px;

}


/* =====================================================
   BUTTONS
===================================================== */

.hero-buttons {

  display:
    flex;

  gap:
    14px;

  flex-wrap:
    wrap;

}


.button {

  display:
    inline-block;

  padding:
    14px 24px;

  font-size:
    14px;

  font-weight:
    800;

  transition:
    .25s ease;

}


.primary {

  background:
    var(--charcoal);

  color:
    white;

}


.primary:hover {

  background:
    var(--accent-dark);

  color:
    var(--charcoal);

}


.secondary {

  border:
    1px solid var(--border-dark);

  color:
    var(--charcoal);

}


.secondary:hover {

  border-color:
    var(--charcoal);

}


/* =====================================================
   HERO CAD GRAPHIC
===================================================== */

.hero-visual {

  display:
    flex;

  justify-content:
    center;

}


.engineering-card {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;

}


/* GRID */

.grid {

  position:
    absolute;

  inset:
    0;

  background-image:

    linear-gradient(
      #dce0dc 1px,
      transparent 1px
    ),

    linear-gradient(
      90deg,
      #dce0dc 1px,
      transparent 1px
    );

  background-size:
    30px 30px;

}


/* CAD OBJECT */

.technical-object {

  position:
    absolute;

  width:
    52%;

  height:
    38%;

  left:
    24%;

  top:
    31%;

  transform:
    perspective(500px)
    rotateX(55deg)
    rotateZ(-8deg);

}


.object-body {

  position:
    absolute;

  width:
    100%;

  height:
    100%;

  background:
    linear-gradient(
      135deg,
      #e2e6e2,
      #bfc5c0
    );

  border:
    2px solid #525955;

  box-shadow:
    inset 0 0 0 10px #d1d6d1;

}


.object-top {

  position:
    absolute;

  width:
    100%;

  height:
    100%;

  top:
    -20px;

  left:
    18px;

  background:
    #f4f6f3;

  border:
    2px solid #525955;

  transform:
    skewY(-30deg);

}


.object-hole {

  position:
    absolute;

  width:
    70px;

  height:
    70px;

  border:
    8px solid #7a817c;

  border-radius:
    50%;

  left:
    50%;

  top:
    50%;

  transform:
    translate(-50%, -50%);

  background:
    #e3e6e3;

}


.object-side {

  position:
    absolute;

  width:
    25px;

  height:
    100%;

  right:
    -25px;

  top:
    -13px;

  background:
    #aeb5b0;

  border:
    2px solid #525955;

}


/* TECHNICAL LABELS */

.technical-label {

  position:
    absolute;

  z-index:
    10;

  font-family:
    monospace;

  font-size:
    10px;

  letter-spacing:
    1px;

  color:
    #69716c;

}


.top-left {

  top:
    18px;

  left:
    18px;

}


.top-right {

  top:
    18px;

  right:
    18px;

}


.bottom-left {

  bottom:
    18px;

  left:
    18px;

}


.bottom-right {

  bottom:
    18px;

  right:
    18px;

}


/* =====================================================
   DIMENSIONS
===================================================== */

.dimension {

  position:
    absolute;

  color:
    #68706c;

  font-family:
    monospace;

  font-size:
    10px;

}


.dimension-horizontal {

  width:
    200px;

  height:
    1px;

  background:
    #68706c;

  left:
    30%;

  bottom:
    20%;

}


.dimension-horizontal span {

  position:
    absolute;

  left:
    50%;

  transform:
    translateX(-50%);

  top:
    7px;

}


.dimension-vertical {

  height:
    140px;

  width:
    1px;

  background:
    #68706c;

  right:
    20%;

  top:
    30%;

}


.dimension-vertical span {

  position:
    absolute;

  transform:
    rotate(-90deg);

  right:
    -30px;

  top:
    50%;

}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {

  padding:
    120px 0;

  border-bottom:
    1px solid var(--border);

}


h2 {

  font-size:
    clamp(42px, 5vw, 68px);

  line-height:
    1;

  letter-spacing:
    -3px;

  font-weight:
    850;

}


/* =====================================================
   ABOUT
===================================================== */

.two-column {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    100px;

}


.about-copy {

  color:
    var(--muted);

}


.large-text {

  color:
    var(--charcoal);

  font-size:
    25px;

  line-height:
    1.45;

  margin-bottom:
    25px;

}


.about-copy p:not(.large-text) {

  margin-bottom:
    20px;

}


/* =====================================================
   SERVICES
===================================================== */

.services {

  background:
    var(--off-white);

}


.section-heading {

  margin-bottom:
    60px;

}


.service-grid {

  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:
    1px;

  background:
    var(--border-dark);

  border:
    1px solid var(--border-dark);

}


.service-card {

  min-height:
    320px;

  padding:
    38px;

  background:
    white;

  transition:
    .25s ease;

}


.service-card:hover {

  background:
    #fafcf8;

  transform:
    translateY(-3px);

}


.service-highlight {

  background:
    #f2f6e6;

}


.number {

  color:
    var(--accent-dark);

  font-family:
    monospace;

  font-size:
    13px;

  font-weight:
    700;

}


.service-icon {

  margin-top:
    38px;

  font-size:
    27px;

  color:
    var(--accent-dark);

}


.service-card h3 {

  font-size:
    29px;

  margin:
    10px 0 15px;

}


.service-card p {

  color:
    var(--muted);

}


/* =====================================================
   CAPABILITIES
===================================================== */

.gallery {

  background:
    white;

}


.gallery-intro {

  max-width:
    650px;

  color:
    var(--muted);

  margin-top:
    25px;

}


.gallery-grid {

  margin-top:
    60px;

  display:
    grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap:
    18px;

}


.gallery-item {

  position:
    relative;

  min-height:
    380px;

  overflow:
    hidden;

  border:
    1px solid var(--border);

  background:
    #edf0ed;

}


.gallery-item.large {

  grid-column:
    span 2;

  min-height:
    530px;

}


.gallery-item img {

  width:
    100%;

  height:
    100%;

  min-height:
    380px;

  object-fit:
    cover;

  display:
    block;

  filter:
    grayscale(75%)
    contrast(1.05);

  transition:
    transform .6s ease,
    filter .6s ease;

}


.gallery-item.large img {

  min-height:
    530px;

}


.gallery-item:hover img {

  transform:
    scale(1.035);

  filter:
    grayscale(25%)
    contrast(1.05);

}


/* =====================================================
   GALLERY OVERLAY
===================================================== */

.gallery-overlay {

  position:
    absolute;

  inset:
    0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.84),
      rgba(0,0,0,.08) 72%
    );

  pointer-events:
    none;

}


/* =====================================================
   GALLERY CAPTION
===================================================== */

.gallery-caption {

  position:
    absolute;

  z-index:
    5;

  left:
    30px;

  bottom:
    28px;

  right:
    30px;

  color:
    white;

}


.gallery-caption span {

  color:
    var(--accent);

  font-family:
    monospace;

  font-size:
    12px;

}


.gallery-caption h3 {

  font-size:
    30px;

  line-height:
    1.2;

  margin-top:
    5px;

}


.gallery-caption p {

  color:
    #d7dad7;

  font-size:
    14px;

}


/* =====================================================
   PROCESS
===================================================== */

.process {
  background: #ffffff;
}

.process-intro {
  max-width: 690px;
}

.process-intro .eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: .2px;
  font-weight: 800;
  margin-bottom: 16px;
}

.process-intro h2 {
  color: #0d2038;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 750;
}

.process-lead {
  max-width: 650px;
  margin-top: 20px;
  color: #52657d;
  font-size: 17px;
  line-height: 1.7;
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 66px;
  border-top: 0;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #d9e0e8;
  z-index: 0;
}

.process-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 18px;
  border-bottom: 0;
  text-align: center;
  min-width: 0;
}

.process-marker {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0d2038;
  color: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(13, 32, 56, .08);
}

.process-icon {
  display: block;
  width: 25px;
  height: 25px;
}

.process-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.process-letter {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.process-content {
  padding-top: 20px;
}

.process-step {
  display: block;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 10px;
}

.process-item h3 {
  color: #0d2038;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 750;
  margin: 0 0 12px;
}

.process-item p {
  max-width: 220px;
  color: #64758a;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 auto;
}

@media (max-width: 900px) {

  .process-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-list::before {
    top: 32px;
    bottom: 32px;
    left: 31px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }

  .process-content {
    padding: 5px 0 0 22px;
  }

  .process-item p {
    max-width: 650px;
    margin: 0;
  }

}


/* =====================================================
   CONTACT
===================================================== */

.contact {

  background:
    var(--off-white);

}


.contact-box {

  padding:
    70px;

  border:
    1px solid var(--border-dark);

  background:
    white;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    50px;

}


.contact-box h2 {

  margin-bottom:
    15px;

}


.contact-box p:not(.eyebrow) {

  color:
    var(--muted);

}


/* =====================================================
   FOOTER
===================================================== */

.footer {

  padding:
    50px 0;

  background:
    #f3f5f2;

  color:
    #68706c;

}


.footer-content {

  display:
    grid;

  grid-template-columns:
    1fr auto auto;

  align-items:
    center;

  gap:
    40px;

}


.footer p {

  font-size:
    13px;

  margin-top:
    7px;

}


.footer-links {

  display:
    flex;

  gap:
    25px;

  flex-wrap:
    wrap;

}


.footer-links a {

  font-size:
    13px;

}


.footer-links a:hover {

  color:
    var(--accent-dark);

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {


  .desktop-nav {

    display:
      none;

  }


  .hero-content {

    grid-template-columns:
      1fr;

  }


  .hero-visual {

    max-width:
      600px;

    width:
      100%;

    margin:
      0 auto;

  }


  .two-column {

    grid-template-columns:
      1fr;

    gap:
      50px;

  }


  .service-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .footer-content {

    grid-template-columns:
      1fr;

  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {


  .container {

    width:
      92%;

  }


  .nav {

    min-height:
      68px;

  }


  .nav-button {

    display:
      none;

  }


  .hero-content {

    padding:
      75px 0;

  }


  .hero h1 {

    font-size:
      52px;

    letter-spacing:
      -3px;

  }


  .hero-description {

    font-size:
      16px;

  }


  .section {

    padding:
      85px 0;

  }


  h2 {

    font-size:
      44px;

    letter-spacing:
      -2px;

  }


  .service-grid {

    grid-template-columns:
      1fr;

  }


  .gallery-grid {

    grid-template-columns:
      1fr;

  }


  .gallery-item.large {

    grid-column:
      span 1;

    min-height:
      350px;

  }


  .gallery-item {

    min-height:
      350px;

  }


  .gallery-item img,
  .gallery-item.large img {

    min-height:
      350px;

  }


  .process-item {

    grid-template-columns:
      55px 1fr;

    gap:
      15px;

  }


  .process-item h3 {

    font-size:
      22px;

  }


  .contact-box {

    padding:
      45px 30px;

    flex-direction:
      column;

    align-items:
      flex-start;

  }


  .footer-links {

    gap:
      15px;

  }

}