/*
Theme Name: LawfyCo
Theme URI: https://lawfyco.com/
Author: Lawfy & Co
Author URI: https://lawfyco.com/
Description: A professional, elegant, and fully customizable WordPress theme for Lawfy & Co law firm. Dark luxurious design with gold accents, dynamic team management, consultation forms, and full compliance with legal advertising guidelines. Matches and upgrades the original single-page landing at lawfyco.com.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lawfyco
Tags: law-firm, legal, dark-theme, gold-accent, professional, responsive, custom-post-types, one-page
*/

/* Additional custom styles for LawfyCo theme */
:root {
  --gold: #c9a04f;
  --gold-dark: #a67c2d;
  --gold-light: #d4b06a;
  --dark-bg: #070907;
  --card-bg: #141914;
  --text-primary: #f8f7f4;
  --text-secondary: #c4c9cf;
  --type-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --type-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --scrollbar-track: #0e110e;
  --scrollbar-thumb: #3a3226;
  --scrollbar-thumb-hover: #c9a04f;
  --scrollbar-thumb-active: #d4b06a;
  --scrollbar-size: 10px;
  --scrollbar-radius: 9999px;
}

body,
.lawfyco-body {
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgb(201 160 79 / 0.035), transparent 55%),
    var(--dark-bg);
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--type-body);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.012em;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .logo-font {
  font-family: var(--type-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* Elegant logo styling */
.logo-font {
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Brand logos */
.lawfyco-footer__brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.lawfyco-footer__brand:hover {
  opacity: 0.88;
}

.lawfyco-logo-picture {
  display: inline-flex;
  line-height: 0;
}

.lawfyco-footer__logo {
  display: block;
  height: auto;
  max-height: 2.5rem;
  max-width: 11rem;
  min-height: 1.5rem;
  width: auto;
}

.lawfyco-modal__logo {
  display: block;
  height: auto;
  max-height: 2.25rem;
  max-width: 10rem;
  min-height: 1.25rem;
  width: auto;
}

/* Gold accent buttons */
.gold-btn {
  background: linear-gradient(145deg, #e0c080 0%, #d4b06a 18%, var(--gold) 52%, var(--gold-dark) 100%);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.2) inset,
    0 20px 44px -18px rgb(201 160 79 / 0.58);
  color: #0a0c0a;
  font-weight: 700;
  letter-spacing: 0.1em;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
  transition:
    transform 0.45s var(--ease-premium),
    box-shadow 0.45s var(--ease-premium),
    background-color 0.35s ease;
}

.gold-btn:hover {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.26) inset,
    0 28px 56px -16px rgb(201 160 79 / 0.68),
    0 0 28px -12px rgb(201 160 79 / 0.32);
  color: #0a0c0a;
  transform: translateY(-3px);
}

.gold-outline-btn {
  border: 1px solid rgb(201 160 79 / 0.55);
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition:
    transform 0.4s var(--ease-premium),
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.4s var(--ease-premium);
}

.gold-outline-btn:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 16px 36px -20px rgb(201 160 79 / 0.45);
  color: #0a0c0a;
  transform: translateY(-2px);
}

/* Section headings */
.section-heading {
  color: var(--gold);
  font-family: var(--type-display);
  font-size: clamp(2.125rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.04;
}

/* Practice area cards */
.practice-card {
  background-color: var(--card-bg);
  border: 1px solid #2a2f2a;
  transition: all 0.3s ease;
}

.practice-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Team member cards */
.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

/* Modal styling */
.modal {
  animation: modalPop 0.2s ease-out forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Theme scrollbars — dark track, gold thumb */
html,
body,
.lawfyco-scrollbar {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.lawfyco-scrollbar::-webkit-scrollbar {
  height: var(--scrollbar-size);
  width: var(--scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.lawfyco-scrollbar::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-left: 1px solid rgb(255 255 255 / 0.04);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.lawfyco-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgb(201 160 79 / 0.55) 0%, var(--scrollbar-thumb) 100%);
  border: 2px solid var(--scrollbar-track);
  border-radius: var(--scrollbar-radius);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.lawfyco-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover) 0%, var(--gold-dark) 100%);
  box-shadow: 0 0 12px -2px rgb(201 160 79 / 0.45);
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
.lawfyco-scrollbar::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--scrollbar-thumb-active) 0%, var(--scrollbar-thumb-hover) 100%);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.lawfyco-scrollbar::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

/* Custom cursor hint for interactive elements (optional enhancement) */
.interactive {
  cursor: pointer;
}

/* Footer */
.lawfyco-site-footer {
  background: linear-gradient(180deg, #0a0c0a 0%, #070907 100%) !important;
  border-top-color: rgb(201 160 79 / 0.12) !important;
  box-shadow: inset 0 1px 0 rgb(201 160 79 / 0.06), 0 -20px 48px -24px rgb(0 0 0 / 0.65);
  position: relative;
}

.lawfyco-site-footer::before {
  background: linear-gradient(90deg, transparent 8%, rgb(201 160 79 / 0.32) 50%, transparent 92%);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.lawfyco-site-footer__inner {
  position: relative;
  z-index: 1;
}

.lawfyco-site-footer__row--primary {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.lawfyco-site-footer__brand-col {
  max-width: 36rem;
}

.lawfyco-site-footer__links-col {
  justify-self: end;
  max-width: 18rem;
  width: 100%;
}

.lawfyco-site-footer__row--offices {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.lawfyco-site-footer__offices-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.lawfyco-site-footer__offices-title {
  color: #c9a04f;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

.lawfyco-site-footer__offices-link {
  color: #d4b06a;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lawfyco-site-footer__offices-link:hover {
  color: #fff;
}

.lawfyco-footer-offices--grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

/* Footer office address blocks */
.lawfyco-footer-office-card {
  background:
    linear-gradient(165deg, rgb(28 34 28 / 0.92) 0%, rgb(16 20 16 / 0.98) 48%, rgb(10 12 10 / 1) 100%);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1rem;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.05) inset,
    0 -1px 0 rgb(0 0 0 / 0.25) inset,
    0 16px 36px -24px rgb(0 0 0 / 0.85);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  isolation: isolate;
  min-height: 9.5rem;
  overflow: hidden;
  padding: 1.1rem 1.15rem 1rem;
  position: relative;
  text-decoration: none;
  transition:
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lawfyco-footer-office-card__accent {
  background: linear-gradient(90deg, #d4b06a, #c9a04f 45%, transparent 100%);
  box-shadow: 0 0 14px -2px rgb(201 160 79 / 0.45);
  height: 2px;
  left: 1rem;
  opacity: 0.75;
  position: absolute;
  right: 1rem;
  top: 0;
  transition: opacity 0.35s ease;
}

.lawfyco-footer-office-card:hover {
  border-color: rgb(201 160 79 / 0.38);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.08) inset,
    0 0 0 1px rgb(201 160 79 / 0.1),
    0 22px 44px -22px rgb(0 0 0 / 0.9),
    0 0 36px -16px rgb(201 160 79 / 0.22);
  transform: translateY(-3px);
}

.lawfyco-footer-office-card:hover .lawfyco-footer-office-card__accent {
  opacity: 1;
}

.lawfyco-footer-office-card:hover .lawfyco-footer-office-card__more {
  color: #fff;
  gap: 0.4rem;
}

.lawfyco-footer-office-card:focus-visible {
  outline: 2px solid rgb(201 160 79 / 0.55);
  outline-offset: 2px;
}

.lawfyco-footer-office-card__top {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.lawfyco-footer-office-card__icon {
  align-items: center;
  background: linear-gradient(145deg, rgb(201 160 79 / 0.18), rgb(201 160 79 / 0.06));
  border: 1px solid rgb(201 160 79 / 0.28);
  border-radius: 0.45rem;
  color: #d4b06a;
  display: inline-flex;
  flex-shrink: 0;
  height: 1.625rem;
  justify-content: center;
  width: 1.625rem;
}

.lawfyco-footer-office-card__label {
  color: #d4b06a;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lawfyco-footer-office-card__city {
  color: #fff;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lawfyco-footer-office-card__street {
  color: rgb(200 206 214 / 0.88);
  display: -webkit-box;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.55;
  margin-top: 0.15rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.lawfyco-footer-office-card__locality {
  color: rgb(156 163 175 / 0.95);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.lawfyco-footer-office-card__more {
  align-items: center;
  color: #d4b06a;
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 600;
  gap: 0.3rem;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 0.65rem;
  text-transform: uppercase;
  transition: color 0.3s ease, gap 0.3s ease;
}

.lawfyco-footer-office-card.is-head {
  border-color: rgb(201 160 79 / 0.22);
}

.lawfyco-footer-office-card.is-head .lawfyco-footer-office-card__icon {
  background: linear-gradient(145deg, rgb(201 160 79 / 0.28), rgb(201 160 79 / 0.1));
  border-color: rgb(201 160 79 / 0.42);
  box-shadow: 0 0 16px -6px rgb(201 160 79 / 0.45);
}

.lawfyco-site-footer__bar {
  border-top-color: rgb(255 255 255 / 0.08) !important;
}

.lawfyco-site-footer .lawfyco-footer-widget {
  margin: 0;
}

.lawfyco-site-footer .lawfyco-footer__menu li {
  margin: 0;
}

.lawfyco-site-footer .lawfyco-footer__menu li + li {
  margin-top: 0.625rem;
}

/* Footer links */
.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold);
}

@media (max-width: 960px) {
  .lawfyco-footer-offices--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lawfyco-site-footer__row--primary {
    grid-template-columns: 1fr;
  }

  .lawfyco-site-footer__links-col {
    justify-self: start;
    max-width: none;
  }

  .lawfyco-footer-offices--grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage shell — ensures dark theme even if Tailwind CDN is slow */
.lawfyco-homepage {
  background-color: transparent;
  color: var(--text-primary);
}

.lawfyco-home-content h2,
.lawfyco-home-content .section-heading {
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.lawfyco-home-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* LawfyCo Hero block pattern */
.lawfyco-hero .lawfyco-hero__title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.lawfyco-hero .lawfyco-hero__image img {
  aspect-ratio: 16 / 10;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
  display: block;
  height: auto;
  object-fit: cover;
  outline: 1px solid rgb(255 255 255 / 0.1);
  width: 100%;
}

.lawfyco-hero .wp-block-button.gold-btn .wp-block-button__link {
  background-color: var(--gold);
  color: #0a0c0a;
}

.lawfyco-hero .wp-block-button.gold-btn .wp-block-button__link:hover {
  background-color: var(--gold-dark);
  color: #0a0c0a;
}

.lawfyco-hero .wp-block-button.lawfyco-hero__btn-outline .wp-block-button__link {
  background-color: transparent;
  border: 1px solid rgb(255 255 255 / 0.3);
  color: #ffffff;
}

.lawfyco-hero .wp-block-button.lawfyco-hero__btn-outline .wp-block-button__link:hover {
  background-color: rgb(255 255 255 / 0.05);
  color: #ffffff;
}

.lawfyco-hero .lawfyco-hero__badge {
  display: inline-block;
  width: fit-content;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-heading {
    font-size: 1.875rem;
  }

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

  .lawfyco-hero__grid {
    flex-direction: column;
  }
}