/* ============================================================
   Maryanne Calvetto, Esq. — Law Firm Website Styles
   ============================================================ */

:root {
  --primary:       #2c4a6e;
  --primary-dark:  #1e3552;
  --primary-light: #3d6491;
  --accent:        #c8a96e;
  --accent-dark:   #a88a4f;
  --bg:            #f9f7f4;
  --bg-alt:        #eef1f6;
  --text:          #333333;
  --text-light:    #666666;
  --white:         #ffffff;
  --border:        #ddd;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Open Sans', sans-serif;
  --radius:        8px;
  --transition:    all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section      { padding: 5rem 0; }
.section-alt  { background: var(--bg-alt); }

.section-title    { text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1.1rem; margin-bottom: 3rem; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Navigation ── */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
}

.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.nav-brand-tagline {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.nav-links .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: none;
}
.nav-links .btn:hover { border-bottom: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
}
.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  display: block;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; font-weight: 700; }
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero h1    { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p     { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.page-hero-accent { width: 60px; height: 3px; background: var(--accent); margin: 1rem auto; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: var(--transition);
  border-top: 3px solid transparent;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-top-color: var(--accent);
}
.card-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.card p  { color: var(--text-light); font-size: 0.95rem; }

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: start; }

/* ── Why Choose Us features ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}
.feature-text h4 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--primary); font-family: var(--font-body); }
.feature-text p  { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ── Quote ── */
.quote-section {
  background: var(--primary);
  padding: 5rem 0;
  text-align: center;
}
.quote-mark {
  font-size: 5rem;
  color: var(--accent);
  font-family: var(--font-heading);
  line-height: 0.6;
  display: block;
  margin-bottom: 1.5rem;
}
.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--white);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
.quote-author {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2  { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p   { color: rgba(255,255,255,0.9); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btn {
  background: var(--white);
  color: var(--accent-dark);
  border-color: var(--white);
}
.cta-banner .btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Practice Areas ── */
.practice-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.practice-area-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
  border-left: 4px solid var(--accent);
}
.practice-area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.practice-area-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; margin-top: 0.2rem; }
.practice-area-card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.practice-area-card p  { color: var(--text-light); font-size: 0.93rem; margin: 0; }

/* ── About ── */
.about-bio { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }

.about-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.credential-badge strong { color: var(--primary); }

/* ── Contact Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }

.contact-info-block { display: flex; flex-direction: column; gap: 1.75rem; }

.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-text h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.contact-info-text p,
.contact-info-text a { font-size: 0.95rem; color: var(--text); }
.contact-info-text a:hover { color: var(--primary); }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.form-title    { margin-bottom: 0.5rem; }
.form-subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-group label .required { color: #e05252; margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(44,74,110,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn.form-submit { width: 100%; padding: 1rem; font-size: 1rem; }

.form-notice {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: center;
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.form-success h4 { color: #2e7d32; margin-bottom: 0.5rem; font-size: 1.3rem; }
.form-success p  { color: #388e3c; font-size: 0.95rem; margin: 0; }

/* ── Footer ── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.footer-brand-tagline {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  max-width: 600px;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3            { grid-template-columns: repeat(2, 1fr); }
  .grid-2            { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .about-bio         { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .practice-area-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .grid-3     { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    gap: 1rem;
  }
  .nav-links.open  { display: flex; }
  .nav-toggle      { display: flex; }

  .hero            { padding: 4rem 0 3.5rem; }
  .hero-buttons    { flex-direction: column; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; text-align: center; }
}
