/* LARRYTECH B2B Website — Global Styles */
:root {
  --navy-950: #051220;
  --navy-900: #0a1929;
  --navy-800: #0f2a42;
  --navy-700: #143d61;
  --navy-600: #1b5282;
  --gray-950: #0b0f14;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --accent: #d97706;
  --accent-hover: #b45309;
  --success: #15803d;
  --error: #b91c1c;
  --focus-ring: #93c5fd;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: 200ms ease-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 720px;
}

.section-head {
  margin-bottom: 3rem;
}

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

.text-white .section-title,
.text-white .section-subtitle {
  color: var(--white);
}

.text-white .section-subtitle {
  color: var(--gray-300);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

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

.btn-secondary {
  background-color: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
}

.btn-secondary:hover {
  background-color: var(--navy-600);
  border-color: var(--navy-600);
}

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--navy-600));
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--white);
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.desktop-nav .btn {
  margin-left: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.dropdown:hover .dropdown-toggle svg,
.dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--gray-200);
  border-radius: var(--radius);
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--white);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 73px;
  left: 0;
  right: 0;
  background-color: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--gray-200);
  font-weight: 500;
  border-radius: var(--radius);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.mobile-nav .submenu {
  padding-left: 1rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav .submenu a {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-color: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 18, 32, 0.92) 0%, rgba(5, 18, 32, 0.75) 50%, rgba(5, 18, 32, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gray-300);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Section backgrounds */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

.section-dark {
  background-color: var(--navy-900);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: var(--gray-300);
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.service-icon {
  width: 56px;
  height: 56px;
  background-color: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Image cards (cases / products) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-grid.lg {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.image-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.image-card .media {
  aspect-ratio: 4 / 3;
  background-color: var(--gray-200);
  overflow: hidden;
}

.image-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.image-card:hover .media img {
  transform: scale(1.04);
}

.image-card .body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.image-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.image-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  flex: 1;
}

.image-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy-700);
  background-color: var(--gray-100);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.75rem;
  align-self: flex-start;
}

/* Capability list */
.capability-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.capability-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.capability-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.capability-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.capability-item p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Why choose us */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

.benefit-item .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: var(--navy-800);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.benefit-item .icon svg {
  width: 28px;
  height: 28px;
}

.benefit-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--gray-300);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  padding: 3.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
}

.faq-question:hover {
  color: var(--navy-700);
}

.faq-question svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.faq-answer-inner p + p {
  margin-top: 0.75rem;
}

/* Forms */
.form {
  max-width: 800px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form-label .required {
  color: var(--error);
  margin-left: 0.15rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--gray-900);
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* File upload */
.file-drop {
  position: relative;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  background-color: var(--gray-50);
  transition: border-color var(--transition), background-color var(--transition);
}

.file-drop.dragover {
  border-color: var(--navy-600);
  background-color: rgba(20, 61, 97, 0.04);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  color: var(--gray-500);
}

.file-drop p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.file-drop small {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.file-list-item button {
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 0.8rem;
  padding: 0.25rem;
}

.file-list-item button:hover {
  color: var(--error);
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-top: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #dcfce7;
  color: var(--success);
  border: 1px solid #86efac;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: var(--error);
  border: 1px solid #fca5a5;
}

/* Certificates */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.certificate-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.certificate-card .thumb {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: grid;
  place-items: center;
  color: var(--gray-400);
}

.certificate-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.certificate-card .caption {
  padding: 1rem;
  text-align: center;
}

.certificate-card .caption h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.certificate-card .caption p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Product page banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 4rem 0;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-banner p {
  color: var(--gray-300);
  font-size: 1.1rem;
  max-width: 720px;
}

.moq-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--gray-100);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: var(--gray-800);
  font-weight: 600;
  margin: 2rem 0;
}

.moq-notice svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  background-color: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 0.15rem;
}

.contact-item p {
  font-size: 1rem;
  color: var(--white);
}

/* Footer */
.site-footer {
  background-color: var(--navy-950);
  color: var(--gray-400);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive */
@media (min-width: 900px) {
  .desktop-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.6fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .capability-item,
  .benefit-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
}
