/* ==========================================================================
   Minimalist Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

:root {
  /* Colors */
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f5; /* For off-white sections */
  --gray-text: #333333;
  --gray-form-bg: #1a1a1a;
  --gray-form-border: #333333;

  /* Typography */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--white);
  color: var(--black);
  line-height: 1.5;
}

/* Specific page backgrounds */
body.dark-mode {
  background-color: var(--black);
  color: var(--white);
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  padding: 0 40px; /* generous padding */
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  padding: 30px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  transition: box-shadow 0.3s ease;
}

body.dark-mode .header {
  background-color: var(--black);
}

.header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode .header.scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 400;
}

.nav__link {
  font-size: 0.9rem;
}

/* ==========================================================================
   Home Page Specifics
   ========================================================================== */

.home-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-hero.loaded {
  opacity: 1;
  transform: translateY(0);
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10.7174% 51.2032%;
  display: block;
}

.home-hero__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  text-align: center;
  width: 100%;
}

.home-content {
  background-color: var(--gray-light);
  padding: 80px 0;
}

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

@media (min-width: 768px) {
  .home-content__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.home-content__heading {
  font-size: 2.375rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.home-content__text p {
  margin-bottom: 16px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.home-content__text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Page Specifics
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  padding: 80px 20px 120px;
}

@media (min-width: 768px) {
  .contact-layout {
    padding: 80px 40px 120px;
    grid-template-columns: 4fr 5fr;
    gap: 100px;
  }
}

.contact-text__heading {
  font-size: 2.375rem;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: -5px; /* Visual tweak to align with small label */
}

.contact-text__desc p {
  margin-bottom: 16px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #cccccc;
}

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

.form-group.half-width {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.form-label span.req {
  color: #888888;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--gray-form-bg);
  border: none;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-bottom-color 0.2s ease, background-color 0.2s ease;
}

.form-control:hover {
  background-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  outline: none;
  background-color: transparent;
  border-bottom-color: var(--white);
}

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

/* Checkboxes */
.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 12px;
  cursor: pointer;
  color: #cccccc;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #555555;
  background-color: transparent;
  margin-right: 12px;
  position: relative;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 12px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--gray-light);
  color: var(--black);
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #e0e0e0;
}

.form-message {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  padding: 40px 0;
}

.form-message a {
  color: var(--white);
  text-decoration: underline;
}

.form-message--error {
  color: #cccccc; /* matches muted text treatment used for .contact-text__desc p */
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 60px 0;
  background-color: var(--white); /* Always white based on screenshots */
  color: var(--black);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__company {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 8px;
}

.footer__locations {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--gray-text);
}

.footer__email {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
