/* ============================================
   Precision Patents — Global Stylesheet
   ============================================ */

/* —— Google Fonts —— */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* —— CSS Variables —— */
:root {
  --navy: #1f2a44;
  --gray: #6b7280;
  --light-gray: #f8f9fa;
  --border-gray: #e5e7eb;
  --white: #ffffff;
  --font-primary: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --section-padding: 120px;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* —— Typography —— */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 65ch;
}

/* —— Layout Utilities —— */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.1rem;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--navy);
}

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gray);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--navy);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* —— Mobile Menu Toggle —— */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}


.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

.hero h1 {
  margin-bottom: 32px;
  color: var(--navy);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* —— Hero Canvas Animation —— */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Logo sizing fix for wide logo */
.logo img {
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  padding: 48px 40px;
  border: 1px solid var(--border-gray);
  background-color: var(--white);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 42, 68, 0.08);
}

.service-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: block;
}

.service-card h3 {
  margin-bottom: 16px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   ABOUT / CONTENT SECTIONS
   ============================================ */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-image {
  position: relative;
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.content-text h2 {
  margin-bottom: 32px;
}

.content-text p {
  margin-bottom: 20px;
}

/* ============================================
   STAFF / TEAM
   ============================================ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.staff-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.staff-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: var(--light-gray);
}

.staff-info h3 {
  margin-bottom: 4px;
  color: var(--navy);
}

.staff-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  display: block;
}

.staff-info p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.staff-credentials {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-gray);
}

.staff-credentials li {
  list-style: none;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.staff-credentials li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--navy);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-detail {
  margin-bottom: 32px;
}

.contact-detail label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 8px;
}

.contact-detail a,
.contact-detail span {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
}

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

/* —— Form —— */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 1px solid var(--border-gray);
  background-color: var(--white);
  color: var(--navy);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

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

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success { color: #059669; }
.form-status.error { color: #dc2626; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero::before {
    display: none;
  }

  .content-split,
  .content-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 48px;
  }

  .content-image img {
    height: 400px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .container {
    padding: 0 24px;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 40px;
    gap: 32px;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

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

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

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

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

  .staff-card {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-light { background-color: var(--light-gray); }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
