/* ═══════════════════════════════════════════════════
   TORC Construction & Remodeling — style.css
   ═══════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --blue:        #1a4fa0;
  --blue-dark:   #0f3070;
  --blue-mid:    #2563c4;
  --blue-light:  #e8f0fb;
  --accent:      #f5a623;
  --accent-dark: #d4891a;
  --white:       #ffffff;
  --gray:        #f4f6fb;
  --gray-mid:    #dde8f8;
  --text:        #1a2340;
  --text-muted:  #5a6a8a;
  --shadow-sm:   0 2px 12px rgba(26,79,160,0.07);
  --shadow-md:   0 6px 24px rgba(26,79,160,0.12);
  --shadow-lg:   0 16px 48px rgba(26,79,160,0.16);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   22px;
  --transition:  0.25s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── BASE ─── */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* ─── UTILITIES ─── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section { padding: 70px 0; }
.section-gray { background: var(--gray); }
.section-blue { background: var(--blue-dark); }

.section-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-label--light {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

.section-title {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  color: var(--text);
  margin-bottom: 12px;
}

.section-title span { color: var(--blue); }
.section-title--light { color: #fff; }
.section-title--light span { color: var(--accent); }

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.75;
}

.section-sub--light { color: rgba(255,255,255,0.72); }

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 30px;
  padding: 13px 28px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.97rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 18px rgba(245,166,35,0.32);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.42);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAV ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26,79,160,0.09);
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: none;
  gap: 28px;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  display: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  gap: 5px;
}

.hamburger {
  width: 38px; height: 38px;
  background: var(--gray);
  border: none;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background var(--transition);
}

.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  z-index: 199;
  padding: 20px 5vw 28px;
  box-shadow: 0 10px 30px rgba(26,79,160,0.12);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  padding: 13px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-mid);
  transition: color var(--transition);
}

.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }

.mobile-menu .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 55%, #3a7bd5 100%);
  overflow: hidden;
  padding: 100px 0 70px;
}

.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.04'%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-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: float 7s ease-in-out infinite;
}

.hero-shape-1 { width: 260px; height: 260px; top: -80px; right: -60px; }
.hero-shape-2 { width: 160px; height: 160px; bottom: 80px; right: 40px; animation-delay: 2s; }
.hero-shape-3 { width: 90px;  height: 90px;  top: 40%; left: -20px;  animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4rem);
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.87);
  line-height: 1.75;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s forwards;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
  opacity: 0;
  animation: fadeUp 0.7s 1s forwards;
}

.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 110px;
}

.hero-stat strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--blue-dark);
  padding: 14px 0;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 30px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.82);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.trust-item .ti { font-size: 1rem; }

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
  transition: background var(--transition);
}

.service-card:hover .service-icon { background: var(--blue); }

.service-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

/* ─── WHY US ─── */
.why-grid {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.why-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.why-icon {
  min-width: 46px; height: 46px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.why-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.88);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1);
}

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,48,112,0.72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius-lg);
  padding: 50px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cta-banner::before { width: 200px; height: 200px; top: -60px; right: -40px; }
.cta-banner::after  { width: 120px; height: 120px; bottom: -30px; left: -20px; }

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  gap: 40px;
  margin-top: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: box-shadow var(--transition);
}

.contact-item:hover { box-shadow: var(--shadow-sm); }

.contact-icon {
  min-width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-item a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  transition: color var(--transition);
}

.contact-item a:hover { color: var(--blue-dark); }

/* ─── CONTACT FORM ─── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.form-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row { display: grid; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gray);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: #fff;
}

.form-group textarea { height: 110px; resize: vertical; }

.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  margin-top: 10px;
}

.form-msg.success { background: #e6f9ee; color: #1a7a3c; display: block; }
.form-msg.error   { background: #fdecea; color: #c0392b; display: block; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  justify-content: center;
}

.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 999;
  background: rgba(15,48,112,0.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; animation: fadeIn 0.25s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 26px 30px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: slideUp 0.3s;
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--gray);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition);
}

.modal-close:hover { background: var(--gray-mid); }

.modal h3 { font-size: 1.5rem; color: var(--blue-dark); margin-bottom: 5px; }
.modal > p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 22px; }

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0 10px;
}

.form-success .check { font-size: 3.2rem; margin-bottom: 12px; }
.form-success h4 { font-size: 1.3rem; color: var(--blue-dark); margin-bottom: 6px; }
.form-success p  { font-size: 0.9rem; color: var(--text-muted); }

/* ─── FOOTER ─── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
  max-width: 280px;
}

.footer h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}

.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-contact li {
  display: flex; gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  align-items: flex-start;
}

.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.80);
}

/* ─── RESPONSIVE ─── */
@media (min-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .nav-phone  { display: flex; }
  .hamburger  { display: none; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid      { grid-template-columns: repeat(3, 1fr); }
  .contact-grid  { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .form-row.two  { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}