/* =============================================
   SharkFin Studios — Static Site Stylesheet
   v1.1.0 | sharkfinstudios.com
   Fonts: Montserrat (headings/nav), Hind (body)
   Color: white background, #222 text, #1fd100 hero accent only
============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind', sans-serif;
  font-size: 16px;
  color: #222222;
  background: #fff;
  line-height: 1.7;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
}

.btn-dark {
  background: #222;
  color: #fff;
}
.btn-dark:hover { background: #444; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  color: #222;
  border: 1px solid #222;
}
.btn-outline-dark:hover { background: #222; color: #fff; }

/* ---------- NAVIGATION ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

#navbar.scrolled { border-bottom-color: #333; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 40px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  background-color: #111;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Mobile: switch to cover so image fills hero without black bars.
   Breakpoint raised to 900px to match all other responsive breakpoints and
   cover tablets + phones in landscape mode (640px was too narrow). */
@media (max-width: 900px) {
  #hero {
    /* Use svh (small viewport height) on iOS Safari — 100vh incorrectly
       includes the address bar and causes extra black space top/bottom. */
    min-height: 100svh;
    min-height: -webkit-fill-available;
  }
  .hero-bg {
    background-size: cover;
    background-position: center top;
  }
}

/* Overlay: uniform fade so text is readable over the full image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 55%, rgba(0,0,0,0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 120px 80px 80px;
  max-width: 560px;
}

.hero-hello {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: #1fd100;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  color: #1fd100;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 8px;
  font-family: 'Hind', sans-serif;
}

.hero-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  font-family: 'Hind', sans-serif;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ---------- HERO LOWER TEXT (below photo) ---------- */
#hero-lower {
  background: #fff;
  padding: 56px 32px;
  text-align: center;
}

#hero-lower h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  line-height: 1.4;
}

/* ---------- PORTFOLIO GRID ---------- */
#portfolio {
  padding: 80px 0 96px;
  background: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
  opacity: 1;
}

.portfolio-card:hover img {
  transform: scale(1.05);
  opacity: 0.88;
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.35s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
}

.portfolio-card-overlay h3 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.portfolio-card-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  margin-top: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s 0.05s, transform 0.3s 0.05s;
}

.portfolio-card:hover .portfolio-card-overlay h3,
.portfolio-card:hover .portfolio-card-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- TESTIMONIALS ---------- */
#testimonials {
  padding: 80px 0 96px;
  background: #fafafa;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.testimonial-card {
  padding: 40px 48px;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.testimonial-card:nth-child(even) { border-right: none; }
.testimonial-card:nth-child(3),
.testimonial-card:nth-child(4) { border-bottom: none; }

.testimonial-text {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: #777;
  flex-shrink: 0;
}

.testimonial-author h4 {
  color: #222;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- CTA BAND ---------- */
#cta-band {
  background: #222;
  padding: 72px 32px;
  text-align: center;
}

#cta-band h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

#cta-band p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.btn-white {
  background: #fff;
  color: #222;
  padding: 13px 36px;
}
.btn-white:hover { background: #eee; }

/* ---------- ABOUT PAGE ---------- */
#about-hero {
  background: #222;
  padding: 148px 0 72px;
  text-align: center;
}

#about-hero h1 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

#about-hero .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

#about-content {
  padding: 88px 0 96px;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 72px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 90px;
}

.about-photo img {
  width: 100%;
  border-radius: 2px;
}

.about-title-row {
  margin-bottom: 32px;
}

.about-title-row .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}

.about-title-row h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 6px;
}

.about-title-row .subtitle {
  font-style: italic;
  color: #777;
  font-size: 0.95rem;
}

.about-bio p {
  color: #444;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-signature {
  margin-top: 40px;
}

.about-signature img {
  height: 52px;
  width: auto;
  opacity: 0.55;
}

/* ---------- CONTACT PAGE ---------- */
#contact-hero {
  background: #222;
  padding: 148px 0 72px;
  text-align: center;
}

#contact-hero h1 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

#contact-hero .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

#contact-content {
  padding: 80px 0 96px;
  background: #fff;
}

.contact-form-wrap {
  max-width: 660px;
  margin: 0 auto;
}

.contact-form-wrap h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #222;
  text-align: center;
  margin-bottom: 8px;
}

.contact-form-wrap .form-lead {
  text-align: center;
  color: #888;
  font-size: 0.93rem;
  margin-bottom: 40px;
}

/* Alert messages */
.form-alert {
  padding: 14px 20px;
  border-radius: 2px;
  margin-bottom: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.form-alert.success {
  background: #f0faf0;
  border: 1px solid #bde0bd;
  color: #2a6e2a;
}

.form-alert.error {
  background: #fdf2f2;
  border: 1px solid #e0bdbd;
  color: #7a2a2a;
}

/* Contact Info block (social links) */
.contact-info-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid #ebebeb;
}

.social-link-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777;
  transition: color 0.2s;
}

.social-link-text:hover { color: #222; }

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Hind', sans-serif;
  font-size: 0.97rem;
  color: #222;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #aaa;
  background: #fff;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; text-align: center; padding: 14px; font-size: 0.78rem; letter-spacing: 0.16em; }

.form-note {
  text-align: center;
  color: #aaa;
  font-size: 0.82rem;
  margin-top: 12px;
}

/* ---------- FOOTER ---------- */
#footer {
  background: #111;
  padding: 28px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img { height: 36px; width: auto; }

.footer-copy {
  font-size: 0.78rem;
  color: #aaa;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.06em;
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  transition: color 0.2s;
}

.footer-social a:hover { color: #fff; }

/* ---------- SCROLL REVEAL ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { border-right: none; }
  .testimonial-card:nth-child(3) { border-bottom: 1px solid #ebebeb; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: static; max-width: 320px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-content { padding: 120px 40px 60px; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    padding: 48px 40px;
    gap: 28px;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .nav-links.open a { font-size: 0.9rem; color: #222; }
  #hero { justify-content: center; }
  .hero-content { text-align: center; padding: 100px 24px 60px; }
  .hero-cta { justify-content: center; }
  .testimonial-card { padding: 28px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
}
