/* Tvinger ren font på all vanlig brødtekst og lister */
body, p, span, a, li {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Tvinger elegant font på absolutt alle overskrifter */
h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", Cambria, "Times New Roman", Times, serif !important;
}
/* CSS - Shared Stylesheet for Taylor Law Partners */
:root {
  --bg: #F5F2EB;       /* Elegant warm paper/cream background */
  --card: #FCFAF6;     /* Clean bright off-white for cards */
  --ink: #1B1A18;      /* Deep ink black for high-contrast typography */
  --navy: #132E35;     /* Professional deep slate navy/teal for authority */
  --gold: #C29B53;     /* Sophisticated muted gold for premium accents */
  --crimson: #8C2D19;  /* Muted crimson red for alerts, tags or highlights */
  --muted: #736E60;    /* Soft charcoal-grey for body secondary text */
  --line: rgba(27,26,24,0.12);
  --radius: 8px;       /* Sharper, more professional border radius for legal practice */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--gold); color: #fff; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(245, 242, 235, 0.9);
  border-bottom: 1px solid var(--line);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .seal {
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--navy);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active {
  font-weight: 700;
}
.nav-links a.active::after {
  width: 100%;
  background: var(--gold);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2E7D32;
  box-shadow: 0 0 0 rgba(46,125,50,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,125,50,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(46,125,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,125,50,0); }
}

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 64px;
  position: relative;
}
.hero .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
}
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 950px;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}
.hero p.lede {
  font-size: 1.15rem;
  color: #4A4740;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- BANNER / MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  margin-top: 64px;
  background: var(--card);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: scroll 30s linear infinite;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span { display: flex; align-items: center; gap: 48px; }
.marquee-track b { color: var(--navy); font-style: normal; font-weight: 700; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTION HEADS ---------- */
section { padding: 80px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- WORK / EXPERTISE CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(27,26,24,0.08);
}
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(194, 155, 83, 0.12);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
  color: var(--navy);
}
.card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 22px;
}
.card .thumb {
  height: 150px;
  border-radius: 6px;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.card .thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(19, 46, 53, 0.15);
}
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.card .meta a { text-decoration: none; color: var(--navy); font-weight: 700; }
.card .meta a:hover { color: var(--gold); }

/* ---------- ABOUT LAYOUT ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.img-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--card);
}
.img-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3B3A34;
  margin-bottom: 20px;
}
.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat b {
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  display: block;
  color: var(--navy);
}
.stat span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- SERVICES / COMMITMENT ---------- */
.services-box {
  background: var(--navy);
  color: var(--bg);
  border-radius: 12px;
  padding: 72px 48px;
}
.services-box .section-head h2 { color: var(--bg); }
.services-box .section-head p { color: #B8B4A6; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service {
  padding-top: 24px;
  border-top: 1px solid rgba(245, 242, 235, 0.15);
}
.service .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 18px;
  display: block;
}
.service h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.service p {
  color: #D3CFBF;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- TESTIMONIAL ---------- */
.testimonial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.testimonial blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--navy);
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- CONTACT BOX & FORM ---------- */
.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 60px 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  margin: 0 0 20px;
}
.contact-info p {
  color: var(--muted);
  margin-bottom: 32px;
}
.contact-details {
  list-style: none;
  padding: 0; margin: 0;
}
.contact-details li {
  margin-bottom: 20px;
  font-size: 1rem;
}
.contact-details strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-form form {
  display: grid;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input, .form-group textarea {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  border-radius: 4px;
  font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--navy);
  background: #fff;
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -10px;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 40px 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.socials { display: flex; gap: 20px; }
.socials a { font-weight: 600; color: var(--ink); }
.socials a:hover { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px){
  .card-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; text-align: center; }
  .stat-row { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px){
  .nav-links, .pill { display: none; }
  section { padding: 50px 0; }
  .services-box, .contact-box { padding: 40px 20px; }
}
