/* ===== FONTS (self-hosted from assets/fonts/, SIL OFL 1.1 — see fonts/OFL.txt; nothing is loaded from Google) ===== */
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* restyle: dark frame (top bar, header, footer), light content, blue accent */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6eb;
  --text: #1b1e24;
  --muted: #6b7280;
  --accent: #2f7bf6;
  --accent-light: #eaf1fe;
  --accent-bright: #5b9bff;
  --dark: #0e1014;
  --dark-top: #08090c;
  --on-dark: #b7bfcc;
  --head-h: 64px;
  --radius: 6px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ===== ACCESSIBILITY ===== */
.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;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 2rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ===== KEYFRAMES ===== */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(3deg); }
  66%       { transform: translateY(8px) rotate(-2deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
  /* the company-site photo background is gone with the company site; the store hero (store.css .store-hero) paints its own */
  background: var(--text);
}

/* Dark overlay so text stays readable */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.62);
  pointer-events: none;
}

/* Subtle grid lines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Floating pictograms layer */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-float {
  position: absolute;
  color: #fff;
}

.hero-float svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: heroEntrance 0.9s ease both;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #fff;
  color: #0d0d0f;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* btn inside sections (light bg) */
section:not(#hero) .btn {
  background: var(--accent);
  color: #fff;
}

section:not(#hero) .btn:hover {
  background: var(--text);
}

.btn:hover {
  opacity: 0.8;
}

/* ===== ABOUT ===== */
#about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.about-grid p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--accent-light);
  border-radius: var(--radius);
}

.stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== SERVICES ===== */
#services {
  background: var(--bg);
}

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

.card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #bbb;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--text);
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.12);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== TECHNOLOGIES ===== */
#technologies {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.tech-item:hover {
  background: var(--accent-light);
}

.tech-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
  color: var(--text);
  transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon {
  transform: scale(1.15);
}

.tech-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.tech-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== HUMAN-CENTRIC LIGHTING ===== */
#hcl {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hcl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hcl-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.hcl-arc {
  width: 100%;
  display: block;
}

.hcl-arc-labels {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.25rem 0;
}

.hcl-arc-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hcl-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.hcl-cct {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hcl-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hcl-feature {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.hcl-feature:hover {
  border-color: #bbb;
}

.hcl-feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.hcl-feature:hover .hcl-feature-icon {
  transform: scale(1.12);
}

.hcl-feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hcl-feature p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== PROJECTS ===== */
#projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: #bbb;
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--accent-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.projects-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ===== PROJECT CATEGORY TABS ===== */
.cat-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.cat-tab {
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

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

.cat-tab.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent-bright);
}

.cat-panel--hidden {
  display: none;
}

.cat-empty {
  padding: 3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== PROJECTS (real photos) ===== */
.project {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.project:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-header {
  margin-bottom: 1.5rem;
}

.project-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.4rem 0 0.6rem;
}

.project-header p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 640px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
}

.project-gallery--small {
  grid-template-columns: 1fr 1fr;
}

.project-gallery > picture {
  display: block;
  width: 100%;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-thumbs picture {
  display: block;
  width: 100%;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: opacity 0.2s;
  cursor: pointer;
}

.gallery-main {
  cursor: pointer;
}

.gallery-thumbs img:hover {
  opacity: 0.85;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
  cursor: pointer;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ===== CONTACT ===== */
section#o365-contact { /* the o365-rooms contact section (the site footer is #site-contact) */
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

.contact-info p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-info p:first-child {
  font-weight: 600;
}

.contact-address {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.6;
}

.contact-link {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-map {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #aaa;
}

.contact-form textarea {
  resize: vertical;
}

/* ===== RESPONSIVE ===== */
/* ===== TABLET (≤ 900px) ===== */
@media (max-width: 900px) {
  .hcl-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hcl-features {
    grid-template-columns: 1fr 1fr;
  }

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

  .project-gallery {
    grid-template-columns: 1fr;
  }

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

  .project-gallery--small {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
  /* Sections */
  section {
    padding: 4rem 1.25rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Services */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Tech grid */
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* HCL */
  .hcl-features {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .cat-tabs {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cat-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .project-gallery,
  .project-gallery--small {
    grid-template-columns: 1fr;
  }

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

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-map iframe {
    height: 240px;
  }
}

/* ===== SMALL PHONES (≤ 480px) ===== */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 3rem;
  }

  .hero-label {
    font-size: 0.72rem;
  }

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

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

  h2 {
    font-size: 1.6rem;
  }
}
