/* ============================================================
   Trim & Tråd – Syateljé i Nynäshamn
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: #f6f1e9;
  color: #1e2a29;
  -webkit-font-smoothing: antialiased;
}

a { color: #0b6d6c; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #0f9a99; }

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

::selection { background: #b8e6e2; }

.page { overflow-x: hidden; }

.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Shared elements ---------- */

h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 400; }

h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.02;
  color: #16211f;
}

.stitch { display: block; margin-bottom: 16px; }
.stitch-center { margin: 0 auto 16px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0b6d6c;
  font-weight: 700;
  margin-bottom: 14px;
}
.sec-head .eyebrow { margin-bottom: 12px; }
.eyebrow-light { color: #7fd6d1; }

.btn {
  display: inline-flex;
  align-items: center;
  background: #0f9a99;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.btn:hover { background: #0b6d6c; color: #fff; }

.btn-nav { gap: 8px; padding: 11px 20px; font-size: 14.5px; }
.btn-hero { gap: 10px; padding: 16px 30px; font-size: 17px; }
.btn-contact { gap: 12px; padding: 17px 30px; font-size: 19px; margin-top: 30px; }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16211f;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #0f9a99;
  padding-bottom: 3px;
}
.link-sm { font-size: 15.5px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.sec-head-center {
  text-align: center;
  margin-bottom: 46px;
}

/* ---------- Scroll-in animation ---------- */

.anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.22, .61, .36, 1), transform 0.9s cubic-bezier(.22, .61, .36, 1);
}
.anim.anim-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1 !important; transform: none !important; }
}

@keyframes typeInLeft {
  from { clip-path: inset(0 100% -0.22em 0); }
  to { clip-path: inset(0 -2% -0.22em 0); }
}

.type-in {
  display: inline-block;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  clip-path: inset(0 100% -0.22em 0);
  animation: typeInLeft 0.95s steps(9, end) 0.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .type-in { clip-path: none; animation: none; }
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 233, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2d8c6;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand { display: flex; align-items: center; gap: 12px; color: #1e2a29; }
.nav-brand:hover { color: #1e2a29; }

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ddd0ba;
}

.nav-name {
  font-family: 'Instrument Serif', serif;
  font-size: 27px;
  letter-spacing: 0.3px;
}

.nav-right { display: flex; align-items: center; gap: 30px; }

.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: #1e2a29; }
.nav-links a:hover { color: #0f9a99; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #16211f;
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 2px solid #0f9a99;
  padding-bottom: 3px;
  white-space: nowrap;
}
.nav-mail:hover { color: #0f9a99; }

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

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 104px) 28px clamp(120px, 13vw, 200px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-text { text-align: left; }

.hero-text h1 {
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.97;
  letter-spacing: -0.5px;
  color: #16211f;
}

.hero-text h1 em { font-style: italic; color: #0f9a99; }

.hero-text p {
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  max-width: 480px;
  color: #3a4645;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-img { position: relative; }

.hero-img-backdrop {
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: #0f9a99;
  border-radius: 200px 200px 12px 12px;
}

.hero-img-frame {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 200px 200px 12px 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #dfd6c6;
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 200px 200px 12px 12px;
}

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

.services {
  background: #ece3d4;
  border-top: 1px solid #ddd0ba;
  border-bottom: 1px solid #ddd0ba;
}

.services .container { padding: clamp(56px, 7vw, 92px) 28px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.svc-card {
  background: #f6f1e9;
  border: 1px solid #ddd0ba;
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 176px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.svc-card:hover {
  border-color: #0f9a99;
  transform: translateY(-3px);
}

.svc-no {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #d8ebe9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: #0b6d6c;
}

.svc-card h3 { font-size: 25px; line-height: 1.1; color: #16211f; }

.svc-card p { font-size: 15px; line-height: 1.55; color: #55605f; }

/* ---------- About ---------- */

.about {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 104px) 28px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-img { position: relative; }

.about-img-frame {
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 2px dashed #0f9a99;
  border-radius: 12px;
}

.about-img-photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  background: #dfd6c6;
}

.about-img-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { font-size: clamp(32px, 4.5vw, 50px); line-height: 1.04; }

.about-text p {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.68;
  color: #3a4645;
}

.about-text p + p { margin-top: 18px; }

.about-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  background: #ece3d4;
  border: 1px solid #ddd0ba;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #16211f;
}

/* ---------- Gallery ---------- */

.work {
  background: #16211f;
  color: #f6f1e9;
}

.work .container { padding: clamp(56px, 7vw, 96px) 28px; }

.work h2 { color: #f6f1e9; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  background: #22302e;
}

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

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

.g-feature { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }

.work-note {
  text-align: center;
  margin-top: 30px;
  font-size: 14.5px;
  color: #a9b4b2;
}

.work-note a {
  color: #7fd6d1;
  border-bottom: 1px solid #7fd6d1;
}
.work-note a:hover { color: #b8e6e2; }

/* ---------- Testimonials ---------- */

.reviews {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 28px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.review-card {
  background: #f6f1e9;
  border: 1px solid #ddd0ba;
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars { color: #0f9a99; font-size: 16px; letter-spacing: 2px; }

.review-card blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.34;
  color: #16211f;
  text-wrap: pretty;
}

.review-card figcaption { margin-top: auto; font-size: 14px; color: #6a7473; }

.review-card figcaption strong { color: #16211f; font-weight: 600; }

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

.contact-section {
  background: #ece3d4;
  border-top: 1px solid #ddd0ba;
}

.contact {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
}

.contact-text h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.0; }

.contact-text p {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: #3a4645;
  max-width: 430px;
}

.contact-socials { margin-top: 26px; display: flex; gap: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6f1e9;
  border: 1px solid #ddd0ba;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: #16211f;
  transition: border-color 0.25s ease;
}
.pill:hover { border-color: #0f9a99; color: #16211f; }

.contact-card {
  background: #f6f1e9;
  border: 1px solid #ddd0ba;
  border-radius: 18px;
  padding: 32px 30px;
}

.contact-card h3 { font-size: 26px; color: #16211f; margin-bottom: 6px; }

.contact-address {
  font-size: 16px;
  color: #0b6d6c;
  border-bottom: 1px solid #bcd8d5;
}

.contact-divider {
  margin: 24px 0;
  height: 1px;
  border-top: 2px dashed #cbb99a;
}

.contact-card h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0b6d6c;
  font-weight: 700;
  margin-bottom: 14px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #ece3d4;
  font-size: 15.5px;
}

.hours-day { color: #3a4645; }
.hours-time { color: #16211f; font-weight: 600; }

.contact-notice {
  margin-top: 16px;
  background: #d8ebe9;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #0b5a59;
}

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

.site-footer {
  background: #16211f;
  color: #c3cbca;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #2a3836;
}

.footer-name { display: flex; flex-direction: column; line-height: 1.15; }

.footer-title {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: #f6f1e9;
}

.footer-sub {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7fd6d1;
  font-weight: 600;
}

.footer-links { display: flex; gap: 24px; font-size: 14.5px; }
.footer-links a { color: #c3cbca; }
.footer-links a:hover { color: #7fd6d1; }

.footer-copy {
  font-size: 13px;
  color: #6d7877;
  width: 100%;
  border-top: 1px solid #2a3836;
  padding-top: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav { padding-left: 16px; padding-right: 16px; gap: 12px; }
  .nav-name { font-size: 22px; }
  .nav-links { display: none; }
  .nav-mail { padding: 9px 13px; }

  .hero, .about, .contact { grid-template-columns: 1fr; }

  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero-img { display: none; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 68px; line-height: 0.95; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }

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

  .sec-head { flex-direction: column; align-items: center; text-align: center; }
  .sec-head .stitch { margin-left: auto; margin-right: auto; }

  .about .about-img { order: 2; }
  .about-img { max-width: 300px; margin: 0 auto 24px; }
  .about-text { text-align: center; }
  .about-text .stitch { margin-left: auto; margin-right: auto; }
  .about-text p { margin-left: auto; margin-right: auto; }
  .about-tags { justify-content: center; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-feature, .g-wide { grid-column: span 1; grid-row: span 1; }

  .contact { text-align: center; gap: 28px; }
  .contact-text h2 br { display: none; }
  .contact-text .stitch { margin-left: auto; margin-right: auto; }
  .contact-text p { margin-left: auto; margin-right: auto; }
  .contact-socials { justify-content: center; }

  .footer-inner { text-align: center; justify-content: center; }
}
