/* ----------------------------------------------------
   Noblestone Attorneys — Main Stylesheet
   ---------------------------------------------------- */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Antic+Didone&display=swap');

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: inherit;
}

/* Root Variables */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #0b61d1;
  --accent-2: #0b3d91;
  --muted: #6b7280;
  --radius: 12px;
  --max-width: 1200px;
  --glass: rgba(255,255,255,0.6);

  --font-base: "Antic Didone", serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
}

/* Base Body */
html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-base) !important;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: var(--bg);
  color: #0b2540;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.3;
  color: #0b2540;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent);
}

/* Lists */
ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
li {
  margin-bottom: 0.5rem;
}

/* Buttons */
button, .btn {
  font-family: var(--font-base);
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}
button:hover, .btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(11,61,145,0.12);
  color: var(--accent-2);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px;
  background: #000;
  color: #fff;
  z-index: 1000;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.9));
  border-bottom: 1px solid #eef2f8;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.75rem 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 52px;
  height: auto;
}
.brand-text .firm-name {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}
.brand-text .tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.main-nav a {
  color: var(--accent-2);
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}
.main-nav a.active {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
}

/* Mobile Toggle */
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-2);
  margin: 4px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 3rem 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.hero-copy h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.metrics {
  display: flex;
  gap: 18px;
  list-style: none;
  margin-top: 12px;
}
.metrics li {
  background: #f3f6ff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--accent-2);
}

/* Cards & Grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(12,34,80,0.05);
  border: 1px solid #eef2f8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(12,34,80,0.1);
}
.card h3 {
  margin: 12px 0 6px;
}
.card .card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-2);
  font-weight: 600;
}

/* Team */
.team-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.avatar {
  text-align: center;
  max-width: 180px;
  flex: 1 1 150px;
}
.avatar a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.avatar img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.avatar img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.attorney-name {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Featured & Insights */
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: center;
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Posts */
.post {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px;
  border: 1px solid #f3f6fb;
}
.post img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* Contact Quick */
.contact-quick-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  border-radius: var(--radius);
  border: 1px solid #eef6ff;
}

/* Footer */
.site-footer {
  margin-top: 36px;
  padding: 36px 0 18px;
  background: #fff;
  border-top: 1px solid #eef2f8;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 18px;
}
.logo-small {
  width: 110px;
}
.footer-col h4 {
  margin-bottom: 8px;
}
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.newsletter input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #eef2f8;
}
.btn-block {
  width: 100%;
}

/* Small Utilities */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section { margin-top: 28px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: all .6s cubic-bezier(.2,.9,.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------
   Footer Styles (Refined)
   ---------------------------------------------------- */

.site-footer {
  background: #0b2540; /* deep navy */
  color: #f6f8fb;
  padding: 4rem 1.5rem 2.5rem;
  font-family: var(--font-base);
}

.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col li,
.footer-col address {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none; /* no underline */
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-weight: 500;
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px; /* subtle slide effect */
}

/* Logo in footer */
.logo-small {
  max-width: 160px;
  margin-bottom: 1.25rem;
}

/* Newsletter */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.newsletter input[type="email"] {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.newsletter input[type="email"]::placeholder {
  color: #999;
  font-style: italic;
}

.newsletter .btn {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.newsletter .btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

/* Legal strip */
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.legal .muted {
  color: rgba(255, 255, 255, 0.6);
}

.legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.legal a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .legal {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}


/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .featured-inner { grid-template-columns: 1fr; }
  .main-nav ul { display: none; }
  .hamburger { display: block; }
  .container { padding: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero-copy h1 { font-size: 1.8rem; }
  .metrics { flex-direction: column; align-items: flex-start; }
}
