/* ============================================
   HANDY RANDY THIB, LLC - Styles
   Fonts: Russo One (display/logo) + Nunito Sans (body)
   Palette: Navy #1B2A4A, Orange #F57C00, Safety Yellow #FFB300,
            White #FFFFFF, Light Gray #F4F6F9, Dark #0F1923
   ============================================ */

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

:root {
  --navy: #1B2A4A;
  --navy-dark: #0F1923;
  --navy-light: #2a3f66;
  --orange: #F57C00;
  --orange-dark: #E06500;
  --orange-light: #FF9800;
  --yellow: #FFB300;
  --white: #FFFFFF;
  --gray-50: #F4F6F9;
  --gray-100: #E8EDF4;
  --gray-200: #D1D9E6;
  --gray-300: #B0BDCF;
  --gray-400: #8A9AB5;
  --gray-500: #6B7F9E;
  --gray-600: #4E6180;
  --gray-700: #374A64;
  --gray-800: #253549;
  --text-primary: #1B2A4A;
  --text-secondary: #4E6180;
  --text-muted: #8A9AB5;

  --font-display: 'Russo One', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(27,42,74,0.08);
  --shadow-md: 0 4px 12px rgba(27,42,74,0.1);
  --shadow-lg: 0 8px 30px rgba(27,42,74,0.12);
  --shadow-xl: 0 16px 48px rgba(27,42,74,0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--orange-dark);
}

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

ul {
  list-style: none;
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background-color: var(--orange);
  color: var(--white);
}

/* ---------- Utility Classes ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: normal;
  color: var(--orange);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.required {
  color: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,124,0,0.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}

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

.btn--white:hover {
  background-color: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.3);
  color: var(--navy);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.nav--scrolled {
  height: 64px;
  border-bottom-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 38px;
  height: 38px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

.nav__logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--navy);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  flex-shrink: 0;
}

.nav__cta-mobile {
  display: none;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F4F6F9 0%, #e0e8f0 40%, #d1dce8 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245,124,0,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,42,74,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(245,124,0,0.1);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(245,124,0,0.2);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: var(--orange);
  display: inline-block;
}

.hero__description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

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

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Stats bar */
.hero__stats {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: -2rem;
}

.hero__stat {
  text-align: center;
  flex: 1;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  display: inline;
}

.hero__stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--orange);
}

.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

.hero__stat-divider {
  width: 1px;
  height: 48px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
  padding: 7rem 1.5rem 5rem;
  background: var(--white);
}

.about__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

.about__image-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

.about__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.about__lead {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  border-left: 3px solid var(--orange);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about__body {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Services ---------- */
.services {
  padding: 5rem 1.5rem;
  background: var(--gray-50);
}

.services__container {
  max-width: 1200px;
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services__header .section-subtitle {
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

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

.service-card--highlight {
  border-color: var(--orange);
  background: linear-gradient(135deg, #FFF8F0 0%, var(--white) 100%);
}

.service-card__popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,124,0,0.1);
  color: var(--orange);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--orange);
  color: var(--white);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-card__list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.6;
}

/* ---------- Why Choose Us ---------- */
.why-us {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.why-us__container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-us__header {
  text-align: center;
  margin-bottom: 3rem;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.why-card:hover {
  background: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange);
  opacity: 0.3;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.why-card:hover .why-card__number {
  opacity: 0.7;
}

.why-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.why-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.cta-banner__bg::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='none' fill-rule='evenodd'%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/g%3E%3C/svg%3E");
}

.cta-banner__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Service Area ---------- */
.service-area {
  padding: 5rem 1.5rem;
  background: var(--gray-50);
}

.service-area__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-area__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.area-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  transition: all var(--transition);
  cursor: default;
}

.area-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(245,124,0,0.05);
}

.area-tag--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.area-tag--primary:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.service-area__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-area__map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.service-area__map-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.testimonials__container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.testimonial-card__author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact {
  padding: 5rem 1.5rem;
  background: var(--gray-50);
}

.contact__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,124,0,0.1);
  color: var(--orange);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact__detail strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.contact__detail p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact__detail a {
  color: var(--text-secondary);
}

.contact__detail a:hover {
  color: var(--orange);
}

/* Contact Form */
.contact__form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.contact__form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

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

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

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

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245,124,0,0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A9AB5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.3rem;
  font-weight: 600;
}

.form-group.error .form-input {
  border-color: #dc2626;
}

.form-group.error .form-error {
  display: block;
}

/* Submit button loading state */
.btn__loading {
  display: none;
  animation: spin 1s linear infinite;
}

.btn--loading .btn__text {
  display: none;
}

.btn--loading .btn__loading {
  display: inline-flex;
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 1rem 0 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact__form.success .form-success {
  display: block;
}

.contact__form.success .form-group,
.contact__form.success .form-row,
.contact__form.success .contact__form-title,
.contact__form.success .btn {
  display: none;
}

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

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
}

.footer__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.footer__logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__contact-links li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

.footer__contact-links svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer__bottom p + p {
  margin-top: 0.25rem;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

/* ---------- Scroll Reveal Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SVG draw animation */
@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.svg-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawStroke 2s ease-out forwards;
  animation-delay: var(--draw-delay, 0s);
}

/* Floating tools animation */
@keyframes floatTool {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.float-tool {
  animation: floatTool 3s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero__description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__illustration {
    max-width: 320px;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .about__container {
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid .testimonial-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .service-area__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--white);
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1000;
    align-items: flex-start;
  }

  .nav__links[aria-hidden="false"] {
    transform: translateX(0);
  }

  .nav__link {
    padding: 0.75rem 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__cta-mobile {
    display: inline-flex;
    margin-top: 1rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 2rem;
  }

  .hero__container {
    padding: 2rem 1.5rem 1.5rem;
  }

  .hero__illustration {
    max-width: 260px;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  .hero__stat-divider {
    width: 60px;
    height: 1px;
  }

  .about {
    padding: 4rem 1.5rem 3rem;
  }

  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__image-placeholder {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .services {
    padding: 3rem 1.5rem;
  }

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

  .why-us {
    padding: 3rem 1.5rem;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .service-area {
    padding: 3rem 1.5rem;
  }

  .testimonials {
    padding: 3rem 1.5rem;
  }

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

  .testimonials__grid .testimonial-card:nth-child(3) {
    max-width: 100%;
  }

  .contact {
    padding: 3rem 1.5rem;
  }

  .contact__form-wrapper {
    padding: 1.5rem;
  }

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

  .footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .svg-draw {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .float-tool {
    animation: none;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .nav,
  .hero__actions,
  .cta-banner,
  .back-to-top,
  .contact__form-wrapper,
  .hero__visual,
  .nav__hamburger {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .section-title,
  .hero__title {
    color: #000;
  }
}
