/* ==========================================================================
   Edlund Smide AB — stylesheet
   ========================================================================== */

:root {
  --bg-dark: #16171a;
  --bg-dark-2: #1f2023;
  --bg-light: #f7f6f4;
  --text-dark: #1a1a1a;
  --text-light: #f3f1ee;
  --text-muted: #a9a9ad;
  --accent: #e07a29;
  --accent-dark: #c2621b;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --max-width: 1180px;
  --radius: 4px;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
}

.brand-badge {
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1.15;
}

.brand-word {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .brand-badge { width: 38px; height: 38px; }
  .brand-word { font-size: 0.92rem; }
  .brand-tagline { font-size: 0.5rem; }
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 16px 18px;
    gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 12, 0.35) 0%,
    rgba(10, 10, 12, 0.55) 55%,
    rgba(10, 10, 12, 0.92) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px 64px;
  width: 100%;
}

.hero-inner p.lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--text-light);
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 70px 0 56px;
}

.page-header p.lead {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.08rem;
  margin-bottom: 0;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.bg-dark {
  background: var(--bg-dark-2);
  color: var(--text-light);
}

.bg-dark .eyebrow { color: var(--accent); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

.grid-2 img,
.figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 2em;
}

.service-card {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 22px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-card .num {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 2.4em;
}

@media (max-width: 600px) {
  .work-gallery { grid-template-columns: 1fr; }
}

.work-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.work-gallery img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

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

.contact-card {
  background: var(--bg-dark-2);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-card dt {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1.4em;
}

.contact-card dt:first-of-type { margin-top: 0; }

.contact-card dd {
  margin: 0.3em 0 0;
  font-size: 1.12rem;
}

.contact-card dd a {
  text-decoration: none;
  color: var(--text-light);
}

.contact-card dd a:hover { color: var(--accent); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 360px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}

.cta-band h2 { color: #fff; }

.cta-band .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 52px 0 28px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer-grid h4 {
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.9em;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  padding: 4px 0;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-brand {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}
