/* =========================================================
   Photography Portfolio Template — Design tokens & base
   Identity locked to original Satti Photos look
   ========================================================= */

:root {
  --font: "Lato", Arial, Helvetica, sans-serif;
  --text: #777777;
  --title: #242424;
  --link: #333333;
  --primary: #e23434;
  --primary-alt: #f23737;
  --submit: #fe0000;
  --white: #ffffff;
  --black: #000000;
  --footer-bg: #000000;
  --header-bg: rgba(0, 0, 0, 0.6);
  --header-bottom-bg: rgba(34, 34, 34, 0.78);
  --border-muted: #686868;
  --footer-line: #424242;
  --container: 1222px;
  --header-h: 104px;
  --header-bottom-h: 90px;
  --header-sticky-h: 73px;
  --banner-h: 250px;
  --video-h: 200px;
  --radius: 0;
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--title);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

.container {
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__spin {
  width: 50px;
  height: 50px;
  border: 2px solid #bbb;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 2s cubic-bezier(0.63, 0.09, 0.26, 0.96) infinite;
}

@keyframes spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.8) rotate(360deg); }
  100% { transform: scale(1) rotate(720deg); }
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 390;
  color: #fff;
}

.site-header.is-sticky {
  position: fixed;
  animation: headerIn 0.35s ease;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.site-header.is-sticky .header-top {
  height: var(--header-sticky-h);
}

.site-header.is-sticky .header-nav-row {
  height: 50px;
}

.site-header--solid {
  position: relative;
  background: #111;
}

@keyframes headerIn {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

.header-top {
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(129, 129, 129, 0.2);
  display: flex;
  align-items: center;
  transition: height var(--transition);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.logo img {
  max-width: 315px;
  width: auto;
  height: auto;
  padding: 5px 0;
}

.logo--mobile {
  display: none;
}

.logo--mobile img {
  max-width: 200px;
}

.nav-toggle {
  display: none;
  position: absolute;
  left: 0;
  background: none;
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: var(--transition);
}

.header-nav-row {
  height: var(--header-bottom-h);
  background: var(--header-bottom-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height var(--transition);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.25rem;
}

.site-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  display: inline-block;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.95);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav a {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .header-nav-row {
    display: none;
  }
  .header-top {
    height: 92px;
  }
  .logo--desktop {
    display: none;
  }
  .logo--mobile,
  .nav-toggle {
    display: block;
  }
  .header-top__inner {
    justify-content: center;
  }
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  width: 100%;
  height: min(800px, 100vh);
  background: #111;
  overflow: hidden;
}

.hero .swiper,
.hero .swiper-wrapper,
.hero .swiper-slide {
  height: 100%;
}

.hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.hero .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary);
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
  color: #fff;
}

@media (max-width: 778px) {
  .hero { height: 600px; }
}

@media (max-width: 480px) {
  .hero { height: 500px; }
}

/* ---------- Social follow ---------- */
.follow-me {
  text-align: center;
  padding: 50px 15px;
}

.follow-me__label {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: var(--transition);
}

.social-row a:hover,
.social-row a:focus-visible {
  border-color: var(--brand, var(--primary));
  color: #fff;
  background: var(--brand, var(--primary));
  transform: translateY(-2px);
}

.social-row a[data-platform="snapchat"]:hover,
.social-row a[data-platform="snapchat"]:focus-visible {
  color: #000;
}

.social-row a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-row--light a {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.social-row--light a:hover,
.social-row--light a:focus-visible {
  border-color: var(--brand, #fff);
  color: #fff;
  background: var(--brand, #fff);
}

/* Black brands would vanish on the dark footer */
.social-row--light a:is([data-platform="x"], [data-platform="threads"], [data-platform="tiktok"], [data-platform="unsplash"], [data-platform="medium"], [data-platform="github"]):hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.social-row--sm a {
  width: 34px;
  height: 34px;
}

.social-row--sm a svg {
  width: 14px;
  height: 14px;
}

/* ---------- Portfolio banners ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 55px;
}

.banner-card {
  position: relative;
  height: var(--banner-h);
  overflow: hidden;
  display: block;
  color: #fff;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--transition);
}

.banner-card:hover img {
  transform: scale(1.08);
}

.banner-card:hover::after {
  background: rgba(0, 0, 0, 0.5);
}

.banner-card__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  pointer-events: none;
}

@media (min-width: 992px) {
  .banner-card--center {
    grid-column: 2;
  }
}

@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 45px;
  }
}

@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    margin-bottom: 35px;
  }
  .banner-card__title {
    font-size: 22px;
  }
}

/* ---------- Section titles ---------- */
.section-head {
  text-align: center;
  padding: 2rem 15px 1.5rem;
  border-top: 1px solid var(--border-muted);
}

.section-head img {
  margin: 0 auto 0.75rem;
  width: 40px;
  height: 40px;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--title);
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
}

@media (max-width: 1024px) {
  .section-head h2 {
    font-size: 22px;
  }
}

/* ---------- Videos ---------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 15px 30px;
  max-width: calc(var(--container) + 30px);
  margin: 0 auto;
}

.video-card {
  position: relative;
  height: var(--video-h);
  overflow: hidden;
  background: #111;
  display: block;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background var(--transition);
}

.video-card__play::before {
  content: "";
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.video-card:hover .video-card__play {
  background: rgba(0, 0, 0, 0.4);
}

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

/* ---------- Galleries ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery-grid--portrait {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.gallery-grid--portrait a {
  aspect-ratio: 2 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

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

/* ---------- Page title (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 6rem 1rem 3rem;
}

.page-hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.breadcrumbs a {
  color: #fff;
}

.breadcrumbs span {
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* ---------- About ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
}

.about-block__title {
  font-size: 46px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-block__text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-block__text p {
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--primary-alt);
}

@media (max-width: 767px) {
  .about-block {
    grid-template-columns: 1fr;
  }
  .about-block__title {
    font-size: 28px;
  }
}

/* ---------- Footer / Contact ---------- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.contact-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 24px;
}

.contact-block__title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.contact-block__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: rgba(255, 255, 255, 0.6);
}

.contact-block__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.contact-block .form-msg {
  margin: 0 0 1.25rem;
  border-radius: 6px;
}

.contact-block .form-msg--error {
  background: #c0392b;
}

.contact-social {
  border-top: 1px solid var(--footer-line);
  border-bottom: 1px solid var(--footer-line);
  padding: 18px 0;
  margin-bottom: 28px;
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-box {
  text-align: center;
  color: #fff;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), background var(--transition);
}

.info-box:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.info-box__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.info-box__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.info-box h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.info-box a,
.info-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 0;
  word-break: break-word;
  transition: color var(--transition);
}

.info-box p + p {
  margin-top: 0.35rem;
}

.info-box a:hover {
  color: #fff;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: left;
}

.contact-form textarea,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition), background var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

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

.contact-form button {
  width: 100%;
  padding: 15px;
  background: var(--submit) !important;
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: filter var(--transition);
}

.contact-form button:hover {
  filter: brightness(1.08);
}

.form-msg {
  display: none;
  padding: 10px;
  text-align: center;
  color: #fff;
  background: #459647;
  margin-top: 0.5rem;
}

.form-msg.is-visible {
  display: block;
}

.footer-bar {
  border-top: 1px solid var(--footer-line);
  margin-top: 2.5rem;
  padding: 1.25rem 15px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bar a {
  color: #fff;
}

.footer-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 48px;
  }
  .contact-block__title {
    font-size: 22px;
  }
  .info-boxes,
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Portfolio single ---------- */
.portfolio-page {
  padding: 2.5rem 0 3rem;
}

.portfolio-page .gallery-grid {
  margin-top: 1.5rem;
}

/* ---------- Floating UI ---------- */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-fab__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

.whatsapp-fab__btn:hover {
  transform: scale(1.06);
  color: #fff;
}

.whatsapp-fab__btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.whatsapp-fab__label {
  background: #25d366;
  color: #fff;
  padding: 0 16px;
  line-height: 1.6;
  font-size: 15px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-fab:hover .whatsapp-fab__label {
  opacity: 1;
  transform: none;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.is-in {
  opacity: 1;
  transform: none;
}
