/* ========================================
   Techwise Labs - CNC Diamond Tools
   Mobile-first responsive styles
   ======================================== */

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

:root {
  --navy: #1a365d;
  --navy-light: #2a4a7f;
  --navy-dark: #0f2440;
  --gold: #d69e2e;
  --gold-light: #ecc94b;
  --gold-dark: #b7791f;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 10px 20px;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

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

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

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* --- Section Titles --- */
.section__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.header__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.header__nav {
  display: none;
  gap: 32px;
}

.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.header__link:hover {
  color: var(--navy);
}

.header__cta {
  display: none;
  align-items: center;
  gap: 16px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.header__nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px 20px;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.header__nav.open .header__link {
  font-size: 1.125rem;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214, 158, 46, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 72px 0;
  background: var(--gray-50);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.about__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.about__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--gold);
}

.about__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.about__card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   Products
   ======================================== */
.products {
  padding: 72px 0;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: 16px;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: 24px;
}

.product-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.product-card__specs {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 72px 0;
  background: var(--gray-50);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  transition: border-color 0.2s;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form__group textarea {
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form__note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
}

/* Contact info */
.contact__info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  color: var(--white);
}

.contact__info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact__detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact__detail svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.contact__detail strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact__detail a,
.contact__detail p {
  font-size: 0.9375rem;
  color: var(--white);
  line-height: 1.5;
}

.contact__detail a:hover {
  color: var(--gold-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding-top: 48px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__brand p {
  font-size: 0.875rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer__brand .header__logo-text {
  color: var(--white);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--gray-700);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
}

/* ========================================
   Responsive - 480px+
   ======================================== */
@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
  }

  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ========================================
   Responsive - 768px+
   ======================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .section__title {
    font-size: 2rem;
  }

  .hero {
    padding: 100px 0;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .about {
    padding: 96px 0;
  }

  .products {
    padding: 96px 0;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    padding: 96px 0;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__form {
    padding: 40px 32px;
  }

  .contact__info-card {
    padding: 40px 32px;
  }

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ========================================
   Responsive - 1024px+
   ======================================== */
@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: flex;
  }

  .header__hamburger {
    display: none;
  }

  .hero {
    padding: 120px 0;
  }

  .hero__title {
    font-size: 3.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
