/* Good Driver Malaysia - www.gooddriver.my */
:root {
  --color-bg: #0a0a0b;
  --color-surface: #141416;
  --color-border: #2a2a2e;
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --container: min(1200px, 100% - 2rem);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: baseline;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo:hover {
  color: var(--color-text);
}

.logo-domain {
  color: var(--color-accent);
  margin-left: 2px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.6) 0%, var(--color-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-accent);
  margin: 0 0 2rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.about-text {
  max-width: 640px;
  color: var(--color-text-muted);
  margin: 0 0 3rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.feature-icon {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 1.25rem 1.25rem 0.5rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Gallery */
.gallery {
  padding: 4rem 0;
}

.gallery .section-title {
  margin-bottom: 2rem;
}

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery-item {
    aspect-ratio: 16/10;
  }
}

/* Contact */
.contact {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.company-name {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.address {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.contact-phone {
  margin: 0;
}

.contact-phone a {
  color: var(--color-accent);
  font-weight: 500;
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.map-caption {
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

.map-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-inner {
  text-align: center;
  color: var(--color-text-muted);
}

.map-note {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  background: var(--color-bg);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo-text,
.footer-brand .logo-domain {
  font-size: 1.125rem;
  font-weight: 600;
}

.tagline {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0.5rem 0 0;
}

.footer-legal {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.footer-legal p {
  margin: 0 0 0.5rem;
}

.footer-legal a {
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-address {
  max-width: 420px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
