/* ============================================
   SLR Accounting & Tax Services - Stylesheet
   Brand Guidelines: Aptos typography, brand palette
   ============================================ */

/* --- CSS Variables (from Brand Guidelines) --- */
:root {
  --navy: #0E2841;
  --blue: #156082;
  --light-blue: #0F9ED5;
  --sky: #467886;
  --green: #4EA72E;
  --dark-green: #196B24;
  --accent: #0F4761;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --light-gray: #E8E8E8;
  --gray: #595959;
  --dark-gray: #404040;
  --text: #272727;
  --shadow: 0 2px 8px rgba(14, 40, 65, 0.1);
  --shadow-lg: 0 8px 24px rgba(14, 40, 65, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--white);
}

/* --- Top Bar --- */
.top-bar {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--white);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--sky);
}

.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- Header / Navigation --- */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 165px;
  width: auto;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  color: var(--dark-gray);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
  background: var(--off-white);
}

.nav-menu .btn-nav {
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-left: 0.5rem;
}

.nav-menu .btn-nav:hover {
  background: var(--dark-green);
  color: var(--white);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: 240px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  border-radius: 0;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--off-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--dark-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, rgba(14, 40, 65, 0.85) 0%, rgba(21, 96, 130, 0.8) 100%),
              url('../images/Hero Background.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Section Styles --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-services {
  background: #eaeff5;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
}

.section-label {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--green);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--blue);
}

.service-card h3 a {
  color: var(--navy);
}

.service-card h3 a:hover {
  color: var(--blue);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card .card-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card .card-link:hover {
  color: var(--dark-green);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--white);
  padding: 3rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item .trust-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--blue);
}

.trust-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-content .section-label {
  text-align: left;
}

.about-preview-image {
  background: linear-gradient(135deg, var(--off-white), var(--light-gray));
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-preview-image .credential-badge {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.about-preview-image .credential-badge h3 {
  color: var(--navy);
  font-size: 1.2rem;
}

.about-preview-image .credential-badge p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Service Detail Page --- */
.service-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.service-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.service-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 650px;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.5rem;
}

.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.service-main h2 {
  margin-top: 2rem;
}

.service-main ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-main ul li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: var(--dark-gray);
}

.service-main ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.service-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.sidebar-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.sidebar-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-card ul li:last-child {
  border-bottom: none;
}

.sidebar-card ul li a {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.sidebar-card ul li a:hover {
  color: var(--blue);
}

.sidebar-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.credentials-list {
  margin: 1.5rem 0;
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--dark-gray);
}

.credentials-list li:last-child {
  border-bottom: none;
}

.credential-icon {
  color: var(--green);
  font-weight: bold;
  font-size: 1.1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* --- Testimonials --- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin: 0;
  text-align: center;
  position: relative;
  border-top: 4px solid var(--green);
}

.testimonial-quote-icon {
  color: var(--blue);
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.testimonial-quote {
  margin: 0 0 1.5rem;
}

.testimonial-quote p {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--dark-gray);
  font-style: italic;
  margin: 0;
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.testimonial-attribution strong {
  color: var(--navy);
  font-weight: 700;
}

.testimonial-attribution span {
  color: var(--gray);
  font-size: 0.875rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-card .icon {
  font-size: 1.5rem;
  color: var(--blue);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  font-size: 0.95rem;
  margin: 0;
}

.contact-info-card a {
  color: var(--blue);
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form h2 {
  margin-bottom: 1.5rem;
}

.contact-image {
  width: 100%;
  height: 100%;
  min-height: 500px;
  max-height: 700px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 104, 163, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .required {
  color: #dc2626;
}

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

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

.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.75rem;
}

/* Map */
.map-section {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-about .logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-about .logo img {
  height: 135px;
  background: white;
  padding: 4px;
  border-radius: 4px;
}

.footer-about .logo img.footer-cert {
  height: 110px;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact li .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--white);
}

.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;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--green);
  color: var(--white);
}

/* --- Privacy Policy --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 6rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--light-gray);
  margin-bottom: 0.5rem;
}

.error-page h2 {
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero h1 { font-size: 2.25rem; }
  .about-preview,
  .about-content,
  .service-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .nav-menu .btn-nav {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  .section { padding: 3rem 0; }
  h2 { font-size: 1.6rem; }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .trust-items { grid-template-columns: 1fr 1fr; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
