/* ============================================
   PAITAN CONTRACTING CORP — Custom Stylesheet
   ============================================ */

/* --- FONTS --- */
@font-face {
  font-family: 'Now';
  src: url('../fonts/Now-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Now';
  src: url('../fonts/Now-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Now';
  src: url('../fonts/Now-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; border: none; outline: none; }

/* --- VARIABLES --- */
:root {
  --navy: #0f1629;
  --navy-light: #1a2238;
  --red: #e31b23;
  --red-hover: #c8151c;
  --white: #ffffff;
  --gray-100: #f5f6f8;
  --gray-200: #e8eaed;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #374151;
  --font-heading: 'Now', 'Arial Black', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --section-pad: 100px;
  --letter-tight: -0.03em;
}

/* --- TYPOGRAPHY --- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: var(--letter-tight);
  line-height: 1.1;
  color: var(--navy);
}
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  text-transform: inherit;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.85rem; letter-spacing: 0.15em; font-weight: 700; }

p { margin-bottom: 1rem; }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-600); }
.text-center { text-align: center; }

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-pad) 0;
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2, .section--navy h3, .section--navy h4, .section--navy h5 {
  color: var(--white);
}
.section--gray {
  background: var(--gray-100);
}
.section--red {
  background: var(--red);
  color: var(--white);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 16px 36px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover {
  background: var(--red-hover);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}
.btn--large {
  padding: 20px 48px;
  font-size: 0.95rem;
}

/* --- TAG / LABEL --- */
.tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}
.section--navy .tag { color: var(--red); }

/* --- HEADER / NAV --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s ease;
  background: transparent;
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.header__logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: var(--letter-tight);
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.3s;
  position: relative;
}
.header__nav a:hover,
.header__nav a.active {
  color: var(--red);
}
.header__cta {
  margin-left: 16px;
}
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  padding: 8px;
}
.header__menu-btn span {
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: all 0.3s;
}

/* --- HERO --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 88vh;
  background: var(--navy);
}
.hero__media {
  position: relative;
  overflow: hidden;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,22,41,0.5);
  z-index: 1;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__right {
  display: flex;
  align-items: center;
  padding: 0 80px 0 80px;
}
.hero__content {
  max-width: 500px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- STATS BAR --- */
.stats {
  background: var(--navy);
  padding: 50px 0;
  border-top: 4px solid var(--red);
  position: relative;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stats__grid > div {
  position: relative;
  padding: 10px 0;
}
.stats__grid > div:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.stats__number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stats__label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* --- SERVICES GRID --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 60px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 36px 28px;
  transition: box-shadow 0.3s ease;
  position: relative;
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(227, 27, 35, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--red);
}
.service-card h4 {
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-card__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.service-card__link:hover { gap: 14px; }
.service-card__link::after { content: '→'; }

/* --- ABOUT SPLIT --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__image {
  position: relative;
}
.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.about__image-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 140px;
  height: 140px;
  background: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.about__image-badge .number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
}
.about__image-badge .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.about__content h2 { margin-bottom: 24px; }
.about__content p { color: var(--gray-600); margin-bottom: 16px; }
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 40px;
}
.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about__feature-icon {
  width: 24px;
  height: 24px;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}
.about__feature span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

/* --- CLIENTS --- */
.clients__logos {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.clients__logo {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 80px;
}
.clients__logo img {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s;
}
.clients__logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.clients__logo--text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.03em;
  line-height: 1.3;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.clients__logo--text:hover { opacity: 1; color: var(--gray-800); }

/* --- TESTIMONIALS --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 60px;
}
.testimonial-card {
  background: var(--navy-light);
  padding: 36px 28px;
  border-left: 4px solid var(--red);
}
.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--red);
  line-height: 0;
  display: block;
  margin-bottom: 16px;
}
.testimonial-card__author {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}
.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}
.testimonial-card__stars {
  color: var(--red);
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 4px;
}

/* --- CTA SECTION --- */
.cta {
  text-align: center;
  padding: 80px 0;
}
.cta h2 { color: var(--white); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 40px; }

/* --- CONTACT --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact__info h3 { margin-bottom: 24px; }
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact__item-icon {
  width: 44px;
  height: 44px;
  background: rgba(227,27,35,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 1.1rem;
}
.contact__item-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact__item-value {
  color: var(--gray-600);
  font-size: 0.95rem;
}
.contact__form {
  background: var(--gray-100);
  padding: 48px;
}
.contact__form h3 { margin-bottom: 8px; }
.contact__form > p { color: var(--gray-600); margin-bottom: 32px; font-size: 0.95rem; }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__grid--simple {
  grid-template-columns: 1fr 1fr;
  justify-content: space-between;
  gap: 120px;
}
.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer__brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 0.85rem;
}
.footer__social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.footer h5 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer__links a {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--red); }
.footer__newsletter-input {
  display: flex;
  margin-top: 16px;
}
.footer__newsletter-input input {
  flex: 1;
  padding: 14px 16px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
}
.footer__newsletter-input input::placeholder { color: var(--gray-400); }
.footer__newsletter-input button {
  padding: 14px 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s;
}
.footer__newsletter-input button:hover { background: var(--red-hover); }
.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer__bottom a { color: var(--red); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__image-badge { bottom: 20px; right: 20px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- GALLERY --- */
.gallery {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 48px;
}
.gallery__item {
  overflow: hidden;
  height: 220px;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- ANIMATIONS --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__menu-btn { display: flex; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }
  .header__nav.open a { font-size: 1.2rem; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero__media { height: 50vh; }
  .hero__right { padding: 40px 24px; }
  .hero__buttons { flex-direction: column; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .about__features { grid-template-columns: 1fr; }
  .clients__logos { gap: 40px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact__form { padding: 32px 24px; }
}
