/* ===========================
   PRECISION CAD STUDIO
   Clean, professional stylesheet
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --mid: #444444;
  --grey: #888888;
  --border: #2a2a2a;
  --border-light: #e5e5e5;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --accent: #c8a96e;
  --accent-dark: #a8873e;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --radius: 4px;
  --radius-lg: 8px;

  --section-pad: 100px;
}

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

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

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

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline:hover { background: var(--dark); color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--full { width: 100%; }

/* LABEL */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.label--light { color: var(--accent); }

/* SECTION */
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section__header h2 { margin-bottom: 16px; }
.section__header p { color: var(--grey); font-size: 17px; }
.section--dark .section__header p { color: rgba(255,255,255,0.6); }
.section__cta { text-align: center; margin-top: 48px; }

/* TYPOGRAPHY */
h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
}
h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* CHECK LIST */
.check-list { margin: 16px 0; }
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--mid);
}
.check-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.section--dark .check-list li { color: rgba(255,255,255,0.7); }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.nav__mobile a {
  color: rgba(255,255,255,0.8);
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.nav__mobile.active { display: flex; }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%),
              url('../images/hero-bg.png') center/cover no-repeat;
  z-index: -1;
}

.hero__content {
  color: var(--white);
  max-width: 780px;
  position: relative;
  z-index: 1;
}
.hero__content .label { color: var(--accent); }
.hero__content h1 { margin: 12px 0 24px; color: var(--white); }
.hero__content > p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===========================
   ABOUT
   =========================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__image {
  background: #f0f0f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
}
.about__text .label { display: block; }
.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--mid); margin-bottom: 16px; font-size: 16px; }
.about__text .btn { margin-top: 8px; }

/* ===========================
   SERVICES
   =========================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--dark-2);
  padding: 48px 40px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--dark-3); }
.service-card__icon {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-card h3 { color: var(--white); margin-bottom: 12px; }
.service-card p { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7; }

/* ===========================
   PRICING
   =========================== */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.pricing__grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}
.pricing-card__tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.pricing-card--featured .pricing-card__tier {
  color: var(--accent);
}
.pricing-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.pricing-card--featured {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.pricing-card--featured h3 { color: var(--white); }
.pricing-card--featured p { color: rgba(255,255,255,0.7); }
.pricing-card--featured .check-list li { color: rgba(255,255,255,0.7); }
.pricing-card__header { margin-bottom: 16px; }
.pricing-card__header h3 { margin-bottom: 6px; }
.pricing-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.pricing-card p { font-size: 15px; margin-bottom: 20px; color: var(--mid); }
.pricing-card .btn { margin-top: 24px; }
.pricing__note {
  text-align: center;
  margin-top: 40px;
  color: var(--grey);
  font-size: 15px;
}

/* ===========================
   PORTFOLIO
   =========================== */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio__item {
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform 0.3s, opacity 0.3s;
  padding: 8px;
}
.portfolio__item img:hover { transform: scale(1.03); opacity: 0.9; }
.portfolio__note {
  text-align: center;
  margin-top: 32px;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}

/* ===========================
   CONTACT
   =========================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact__info .label { display: block; }
.contact__info h2 { margin-bottom: 20px; }
.contact__info > p { color: var(--mid); font-size: 16px; margin-bottom: 40px; }
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__detail { display: flex; flex-direction: column; gap: 4px; }
.contact__detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__detail a:hover { text-decoration: underline; }
.contact__detail span, .contact__detail a { font-size: 16px; color: var(--dark); }

/* FORM */
.contact__form { background: var(--off-white); padding: 40px; border-radius: var(--radius-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 20px; }
.form__group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--mid);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--accent); }
.form__group textarea { resize: vertical; min-height: 100px; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer__inner { display: flex; flex-direction: column; gap: 40px; }
.footer__logo {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__inner > div:first-child p { font-size: 14px; line-height: 1.7; max-width: 360px; }
.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__links a { font-size: 13px; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footer__bottom a:hover { color: var(--white); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__image img { height: 380px; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { min-height: 90vh; }

  .pricing__grid,
  .pricing__grid--3 { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .contact__form { padding: 24px; }
  h1 { letter-spacing: -1px; }
  h2 { letter-spacing: -0.5px; }
}
