/* ============================================
   SAGHIR HOMES — Global Styles
   Luxury Minimal / Black & White
   ============================================ */

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f4f4f2;
  --light-gray: #e8e8e6;
  --mid-gray: #999999;
  --dark-gray: #2a2a2a;
  --accent: #c8a96e;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.35s ease;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   MOBILE OVERLAY NAV
   ============================================ */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-overlay.open {
  display: flex;
}

body.nav-open {
  overflow: hidden;
}

.mobile-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mobile-overlay-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  position: relative;
}

.mobile-overlay-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.mobile-overlay-links a:hover,
.mobile-overlay-links a.active {
  color: var(--white);
}

.mobile-overlay-links a:hover::after,
.mobile-overlay-links a.active::after {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: transparent;
  transition: background var(--transition), padding var(--transition);
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

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

.logo-tall {
  display: none;
}

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

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-phone-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 22px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-phone-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-phone-btn { display: none; }
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

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

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video--mobile {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.1) 40%,
    rgba(10,10,10,0.75) 80%,
    rgba(10,10,10,0.98) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 100px;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.hero-headline em {
  font-style: italic;
  color: var(--off-white);
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 120px 60px;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
}

.section-body {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================
   INTRO SECTION
   ============================================ */

.intro {
  background: var(--black);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}

.intro-image img {
  height: 100%;
  transition: transform 0.8s ease;
}

.intro-image:hover img {
  transform: scale(1.04);
}

.intro-text {
  padding: 20px 0;
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* ============================================
   CRAFT / HELMET SECTION
   ============================================ */

.craft-section {
  padding: 0;
}

.craft-image {
  position: relative;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
}

.craft-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 10s ease;
}

.craft-image:hover img {
  transform: scale(1.03);
}

.craft-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.75) 0%,
    rgba(10,10,10,0.2) 60%,
    rgba(10,10,10,0.0) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 72px 80px;
}

.craft-text .section-label {
  margin-bottom: 16px;
}

.craft-text h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
}

.craft-text h2 em {
  font-style: italic;
  color: var(--off-white);
}

@media (max-width: 768px) {
  .craft-image { height: 60vh; }
  .craft-overlay { padding: 48px 24px; }
}

/* ============================================
   FEATURED PROJECTS
   ============================================ */

.featured-projects {
  background: #8A6F4B;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

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

.project-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.project-card img {
  transition: transform 0.7s ease;
  filter: brightness(0.7);
}

.project-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.5);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
  transition: all var(--transition);
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.4) 100%);
}

.project-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
}

.project-location {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.project-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--accent);
}

.project-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--white);
  color: var(--black);
  text-align: center;
  padding: 140px 60px;
}

.cta-section .section-label {
  color: var(--black);
  opacity: 0.4;
}

.cta-section .section-title {
  color: var(--black);
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-section .btn-primary {
  background: var(--black);
  color: var(--white);
}

.cta-section .btn-primary:hover {
  background: var(--accent);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */

.page-hero {
  padding: 180px 60px 100px;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.page-hero .section-title {
  font-size: clamp(48px, 5vw, 80px);
  font-family: var(--font-display);
}

/* ============================================
   PROJECTS PAGE
   ============================================ */

.projects-page {
  background: var(--black);
}

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-full-card {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.project-full-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-full-card-image img {
  transition: transform 0.7s ease;
}

.project-full-card:hover .project-full-card-image img {
  transform: scale(1.05);
}

.project-full-card-info {
  padding: 32px 36px 36px;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
}

.project-full-card-info .project-type {
  display: block;
  margin-bottom: 12px;
}

.project-full-card-info .project-name {
  font-size: 28px;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-meta {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.meta-value {
  font-size: 13px;
  color: var(--white);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.3;
}

.contact-info p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: 48px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.contact-detail-text strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 6px;
}

.contact-detail-text span {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 16px 20px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

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

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

.form-group select option {
  background: var(--dark-gray);
}

.form-submit {
  margin-top: 8px;
}

.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  letter-spacing: 0.03em;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto 56px;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  opacity: 0.8;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.25);
}

.footer-credit {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

.footer-credit a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: var(--accent);
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 28px 0;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0.5;
}

.scroll-indicator span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,0.6);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  nav, section, .page-hero { padding-left: 40px; padding-right: 40px; }
  footer { padding-left: 40px; padding-right: 40px; }
  .hero-content { padding-left: 40px; padding-right: 40px; }
  .cta-section { padding-left: 40px; padding-right: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .scroll-indicator { right: 40px; }
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-image { aspect-ratio: 16/9; }
  .projects-full-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: none; } /* desktop only — mobile uses .mobile-overlay */
  .nav-links a { font-size: 14px; letter-spacing: 0.2em; }
  .nav-toggle { display: flex; }
  section { padding: 80px 24px; }
  .page-hero { padding: 140px 24px 70px; }
  .hero-content { padding: 0 24px 80px; }
  .cta-section { padding: 100px 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-header { flex-direction: column; gap: 24px; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .scroll-indicator { display: none; }

  .hero-video--desktop { display: none; }
  .hero-video--mobile { display: block; }
  .logo-img.logo-wide { display: block; }
  .logo-img.logo-tall { display: none; }
}
