/* Shark Signs LLC — Custom Styles */

/* ===== CSS Custom Properties ===== */
:root {
  --blue:       #4facfe;
  --blue-dark:  #1a6eb5;
  --navy:       #0f172a;
  --gray-dark:  #374151;
  --gray-mid:   #6b7280;
  --gray-light: #f3f4f6;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-slab:  'Roboto Slab', Georgia, serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ===== Focus Rings (Accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ===== Images ===== */
img { max-width: 100%; height: auto; display: block; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* ===== Mobile Nav ===== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
  max-height: 560px;
  transition: max-height 0.4s ease-in;
}

/* ===== Hero ===== */
.hero-bg {
  position: relative;
  background-image: linear-gradient(rgba(15,23,42,0.72), rgba(15,23,42,0.72)),
    url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg > div { position: relative; z-index: 1; }

/* ===== Services Dropdown ===== */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 220px;
  z-index: 100;
  padding: 8px 0;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--gray-dark);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--gray-light); color: var(--blue); }

/* ===== Portfolio Grid ===== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,23,42,0.8));
  color: white;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-caption { transform: translateY(0); }

/* ===== Form inputs (dark bg) ===== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #4b5563;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-input::placeholder { color: #9ca3af; }
.form-input:focus { outline: none; border-color: var(--blue); background: rgba(255,255,255,0.08); }
.form-input option { color: var(--navy); background: white; }

/* ===== Form feedback messages ===== */
#form-success, #form-error,
#contact-success, #contact-error {
  display: none;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}
#form-success, #contact-success { background: rgba(79,172,254,0.15); color: #93c5fd; border: 1px solid #4facfe; }
#form-error, #contact-error     { background: rgba(239,68,68,0.15);  color: #fca5a5; border: 1px solid #ef4444; }

/* ===== Utility ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ===== Hamburger Lines ===== */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ===== Hero Typography ===== */
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  margin-bottom: 12px;
  padding-top: 16px;
}
.hero-h1 {
  font-family: var(--font-slab);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-callus {
  margin-top: 20px;
  margin-bottom: 16px;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 6px 18px;
  letter-spacing: 0.5px;
}
.hero-phone-link {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-phone-link:hover { color: #ffffff; }

/* ===== Trust Bar ===== */
.trust-number {
  font-family: var(--font-slab);
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}
.trust-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Inner Page Typography ===== */
.page-h1 {
  font-family: var(--font-slab);
}
.page-h2 {
  font-family: var(--font-sans);
}

/* ===== Section Titles ===== */
.section-title-playfair {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  line-height: 1.1;
}

/* ===== Services Layout ===== */
.svc-row-left,
.svc-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.svc-row-left  { flex-direction: row; }
.svc-row-right { flex-direction: row; }

.svc-text-right { text-align: right; flex: 1; }
.svc-text-left  { text-align: left;  flex: 1; }

/* Mobile: all icons on left, text left-aligned */
@media (max-width: 1023px) {
  .svc-row-left   { flex-direction: row-reverse; }
  .svc-text-right { text-align: left; }
}

.svc-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 6px;
}
.svc-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.svc-icon-circle {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(228,228,228,1);
  color: rgb(85,85,85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.svc-icon-circle:hover {
  background: #4facfe;
  color: #ffffff;
}

/* ===== Fade-in Animations ===== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate-fadeInLeft  { animation: fadeInLeft  0.6s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.6s ease forwards; }

/* ===== Full Service Commercial Signage ===== */
.full-service-section {
  background: #4a90e2;
  position: relative;
  overflow: hidden;
}
.wave-top,
.wave-bottom {
  position: relative;
  line-height: 0;
  width: 100%;
}
.wave-top svg,
.wave-bottom svg {
  display: block;
  width: 100%;
  height: 60px;
}
.full-service-title {
  font-family: var(--font-slab);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  margin-bottom: 8px;
}
.full-service-step {
  text-align: center;
}
.fs-img-wrap {
  overflow: hidden;
  border-radius: 6px;
}
.fs-img {
  width: 100%;
  display: block;
  transition: transform 0.45s ease;
}
.fs-img-wrap:hover .fs-img {
  transform: scale(1.08);
}
.full-service-step-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

/* ===== Our Work — Swiper Sliders ===== */
.portfolio-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 64px;
  align-items: stretch;
}
/* Reversed rows: text is first in DOM, so column-reverse puts image on top on mobile */
.portfolio-row-reverse {
  flex-direction: column-reverse;
}
@media (min-width: 1024px) {
  /* Normal:   DOM [slider, text]  + row        = slider LEFT,  text RIGHT */
  /* Reversed: DOM [text,   slider] + row        = text   LEFT,  slider RIGHT */
  .portfolio-row         { flex-direction: row; gap: 48px; }
  .portfolio-row-reverse { flex-direction: row; gap: 48px; }
}
.portfolio-slider-wrap {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.swiper-portfolio {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.swiper-portfolio .swiper-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.swiper-portfolio .swiper-button-prev,
.swiper-portfolio .swiper-button-next {
  color: #ffffff;
  background: rgba(0,0,0,0.4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.swiper-portfolio .swiper-button-prev::after,
.swiper-portfolio .swiper-button-next::after {
  font-size: 14px;
}
.portfolio-text {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 16px 0;
}
.portfolio-category {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}
.portfolio-diamond {
  color: #4facfe;
  font-size: 14px;
  margin-bottom: 16px;
}
.portfolio-desc {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.8;
}

/* ===== Instagram Section ===== */
.instagram-section {
  background: rgba(231,243,255,1);
  position: relative;
  overflow: hidden;
}
.instagram-wave-top,
.instagram-wave-bottom {
  line-height: 0;
  width: 100%;
}
.instagram-wave-top svg,
.instagram-wave-bottom svg {
  display: block;
  width: 100%;
  height: 50px;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 640px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}
.ig-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
}
.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ig-item:hover img { transform: scale(1.05); }

.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.ig-follow-btn:hover { opacity: 0.9; }

.ig-load-more {
  display: inline-block;
  border: 2px solid #4facfe;
  color: #4facfe;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ig-load-more:hover {
  background: #4facfe;
  color: #ffffff;
}

/* ===== Masonry Grid ===== */
.masonry-grid {
  columns: 4;
  column-gap: 16px;
}
.masonry-grid .portfolio-item {
  break-inside: avoid;
  margin-bottom: 16px;
  aspect-ratio: unset;
  cursor: pointer;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.masonry-grid .portfolio-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.masonry-grid .portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: unset;
  border-radius: 8px;
}
@media (max-width: 1023px) {
  .masonry-grid { columns: 3; }
}
@media (max-width: 767px) {
  .masonry-grid { columns: 2; }
}
@media (max-width: 479px) {
  .masonry-grid { columns: 1; }
}

/* ===== Lightbox ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }
.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}
#lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
#lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.8;
  transition: opacity 0.2s;
}
#lightbox-close:hover { opacity: 1; }
#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
#lightbox-prev { left: 16px; }
#lightbox-next { right: 16px; }
#lightbox-prev:hover,
#lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-meta {
  margin-top: 12px;
  text-align: center;
}
.lightbox-caption {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}
.lightbox-counter {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
