/* ========================================
   DE'VYORA - GRC Manufacturer Website
   Main Stylesheet - Mobile-First Optimized
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a3c5e;
  --primary-dark: #0f2540;
  --accent: #c8922a;
  --accent-light: #e8b84b;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #f0eeea;
  --mid-gray: #d4cfc8;
  --text-dark: #1c1c1c;
  --text-mid: #444444;
  --text-light: #777777;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--primary-dark);
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ======= HEADER ======= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,146,42,0.2);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-main span {
  color: var(--accent);
}

.logo-sub {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: var(--transition);
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--primary);
  background: rgba(26,60,94,0.06);
}

/* Dropdown */
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-trigger::after {
  content: '▾';
  font-size: 11px;
  transition: var(--transition);
}

.main-nav li:hover .dropdown-trigger::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  pointer-events: none;
}

.main-nav li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: white;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp-header:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.btn-whatsapp-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ======= HERO ======= */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(15,37,64,0.95) 0%, rgba(26,60,94,0.85) 50%, rgba(200,146,42,0.15) 100%);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,146,42,0.2);
  border: 1px solid rgba(200,146,42,0.4);
  color: var(--accent-light);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--accent-light);
  display: block;
}

.hero-powered {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-powered strong {
  color: var(--accent-light);
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.4);
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp-large:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid rgba(255,255,255,0.4);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}

.hero-image-stack {
  position: relative;
  height: 520px;
}

.hero-img-main {
  position: absolute;
  right: 0;
  top: 0;
  width: 88%;
  height: 430px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-img-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

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

/* ======= SECTION STYLES ======= */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 52px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ======= PRODUCT CATEGORIES ======= */
.products-grid-section {
  background: var(--off-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: block;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--light-gray);
}

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

.product-card:hover .product-card-img img {
  transform: scale(1.07);
}

.product-card-body {
  padding: 16px 18px 20px;
}

.product-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.product-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

/* ======= WHY CHOOSE US ======= */
.why-us {
  background: white;
}

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

.why-us-image {
  position: relative;
  height: 520px;
}

.why-us-img-main {
  width: 85%;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-us-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us-img-badge {
  position: absolute;
  bottom: 30px;
  right: 0;
  background: var(--accent);
  color: white;
  padding: 22px 26px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.why-us-img-badge .big-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.why-us-img-badge p {
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.9;
}

.why-us-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.feature-text h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.feature-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ======= PROJECTS GALLERY ======= */
.projects-section {
  background: var(--primary-dark);
  padding: 80px 0;
}

.projects-section .section-title {
  color: white;
}

.projects-section .section-label {
  color: var(--accent-light);
}

.projects-section .section-subtitle {
  color: rgba(255,255,255,0.65);
}

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

.project-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.project-item:first-child {
  grid-row: span 2;
}

.project-item-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: var(--light-gray);
  overflow: hidden;
  position: relative;
}

.project-item:first-child .project-item-img {
  min-height: 540px;
}

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

.project-item:hover .project-item-img img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,37,64,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay-text {
  color: white;
}

.project-overlay-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.project-overlay-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* ======= CONTACT CTA ======= */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(200,146,42,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  color: white;
  max-width: 700px;
  margin: 0 auto 16px;
}

.cta-section .section-subtitle {
  color: rgba(255,255,255,0.72);
  margin: 0 auto 40px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======= FOOTER ======= */
.site-footer {
  background: #0a1a2e;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-main {
  color: white;
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: white;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.contact-item span:first-child {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ======= WHATSAPP FLOAT ======= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: float-bounce 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ======= PRODUCT PAGE HERO ======= */
.page-hero {
  padding: 120px 0 72px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,146,42,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  color: white;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ======= PRODUCT DETAIL LAYOUT ======= */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 80px 0;
}

.product-image-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-image-gallery .main-img {
  grid-column: span 2;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--light-gray);
}

.product-image-gallery .thumb-img {
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-gray);
}

.product-image-gallery .main-img img,
.product-image-gallery .thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder-block {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4dc, #d4cfc8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.img-placeholder-block .icon {
  font-size: 48px;
  opacity: 0.5;
}

.img-placeholder-block p {
  font-size: 13px;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
}

.product-info h2 {
  font-size: 36px;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

.product-info .product-desc {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-mid);
}

.product-features-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ======= ABOUT PAGE ======= */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  position: relative;
  height: 560px;
}

.about-image .main-about-img {
  width: 80%;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image .main-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image .accent-box {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
  color: white;
  padding: 28px;
  border-radius: 16px;
  width: 200px;
}

.about-image .accent-box .big-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.about-image .accent-box p {
  font-size: 15px;
  margin-top: 6px;
  opacity: 0.9;
}

.about-text h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.value-card {
  background: var(--off-white);
  padding: 20px;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
}

.value-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ======= PROJECTS PAGE ======= */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.projects-masonry .proj-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--light-gray);
  cursor: pointer;
}

.projects-masonry .proj-card:nth-child(3n+1) {
  grid-row: span 2;
}

.proj-card-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-gray), var(--mid-gray));
}

.proj-card:nth-child(3n+1) .proj-card-img {
  height: 540px;
}

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

.proj-card:hover .proj-card-img img {
  transform: scale(1.05);
}

.proj-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,37,64,0.9) 0%, transparent 100%);
  color: white;
  padding: 28px 18px 18px;
}

.proj-card-label h4 {
  font-size: 17px;
  color: white;
  font-weight: 600;
}

.proj-card-label p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ======= CONTACT PAGE ======= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  padding: 80px 0;
}

.contact-info-col h2 {
  font-size: 36px;
  margin-bottom: 18px;
}

.contact-info-col p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

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

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--primary-dark);
}

.contact-detail-text p {
  font-size: 15px;
  color: var(--text-mid);
  margin: 0;
}

.contact-form-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.contact-form-card h3 {
  font-size: 26px;
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--off-white);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

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

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

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  -webkit-appearance: none;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ======= MOBILE NAV ======= */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  padding: 80px 20px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-links > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 12px;
  border-bottom: 1px solid var(--light-gray);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links > li > a:hover,
.mobile-nav-links > li > a:active {
  background: var(--off-white);
  color: var(--primary);
}

.mobile-submenu {
  list-style: none;
  padding: 6px 0 6px 16px;
  display: none;
}

.mobile-submenu.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-submenu a {
  display: block;
  padding: 11px 16px;
  font-size: 15px;
  color: var(--text-mid);
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-submenu a:hover,
.mobile-submenu a:active {
  background: var(--off-white);
  color: var(--primary);
}

.mobile-nav-footer {
  margin-top: 28px;
  padding-bottom: 20px;
}

/* ======= UTILITIES ======= */
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ======= RESPONSIVE: TABLET (1024px) ======= */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-content {
    gap: 40px;
  }
  
  .why-us-grid {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .hero-image-stack {
    height: 420px;
  }

  .hero-img-main {
    height: 360px;
  }

  .hero-img-accent {
    height: 200px;
  }
}

/* ======= RESPONSIVE: MOBILE (768px) ======= */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .container { padding: 0 16px; }

  /* Header */
  .main-nav { display: none; }
  .header-cta .btn-whatsapp-header { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .logo-main { font-size: 22px; }

  /* Hero */
  .hero {
    padding-top: 64px;
    min-height: 100svh;
    min-height: 100vh;
    align-items: flex-start;
    padding-bottom: 40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 16px 40px;
  }

  .hero-image-stack { display: none; }

  .hero-title { font-size: clamp(28px, 8vw, 42px); }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-powered { font-size: 14px; }

  .hero-actions {
    gap: 10px;
  }

  .btn-whatsapp-large,
  .btn-outline-white,
  .btn-primary {
    padding: 13px 22px;
    font-size: 15px;
  }

  .hero-stats {
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
  }

  .stat-number { font-size: 28px; }
  .stat-label { font-size: 12px; }

  /* Sections */
  section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: clamp(24px, 6vw, 36px); }
  .section-subtitle { font-size: 15px; }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-img { height: 160px; }
  .product-card-body { padding: 12px 14px 16px; }
  .product-card-body h3 { font-size: 14px; }
  .product-card-body p { display: none; }

  /* Why us */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .why-us-image {
    height: auto;
    min-height: 280px;
  }

  .why-us-img-main {
    width: 100%;
    height: 280px;
    position: relative;
  }

  .why-us-img-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
    display: inline-block;
  }

  .feature-icon { width: 48px; height: 48px; font-size: 20px; }
  .feature-text h3 { font-size: 17px; }
  .feature-text p { font-size: 14px; }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .projects-grid .project-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .project-item-img { min-height: 200px; }
  .project-item:first-child .project-item-img { min-height: 240px; }

  /* CTA */
  .cta-section { padding: 56px 0; }
  .cta-buttons { gap: 10px; }
  .cta-buttons .btn-whatsapp-large,
  .cta-buttons .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  /* About */
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-image { display: none; }
  .about-values { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  /* Product detail */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0;
  }

  /* Projects masonry */
  .projects-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .projects-masonry .proj-card:nth-child(3n+1) {
    grid-row: span 1;
    grid-column: span 2;
  }

  .projects-masonry .proj-card:nth-child(3n+1) .proj-card-img {
    height: 260px;
  }

  /* Page hero */
  .page-hero {
    padding: 100px 0 56px;
  }

  .page-hero h1 { font-size: clamp(28px, 7vw, 42px); }
  .page-hero p { font-size: 15px; }

  /* Whatsapp float */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ======= RESPONSIVE: SMALL MOBILE (480px) ======= */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .hero-title { font-size: clamp(26px, 8vw, 34px); }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-whatsapp-large,
  .hero-actions .btn-outline-white {
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat-number { font-size: 24px; }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-card-img { height: 140px; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid .project-item:first-child {
    grid-column: span 1;
  }

  .contact-form-card { padding: 20px 14px; }

  .product-image-gallery {
    grid-template-columns: 1fr;
  }

  .product-image-gallery .main-img {
    grid-column: span 1;
    height: 240px;
  }

  .product-image-gallery .thumb-img {
    height: 160px;
  }

  .btn-whatsapp-large,
  .btn-primary {
    font-size: 14px;
    padding: 12px 18px;
  }

  .section-label { letter-spacing: 2px; font-size: 11px; }

  .feature-item { gap: 14px; }
  .feature-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
}

/* ======= TOUCH DEVICE OVERRIDES ======= */
@media (hover: none) {
  .product-card:hover { transform: none; }
  .btn-primary:hover,
  .btn-whatsapp-large:hover,
  .btn-outline-white:hover { transform: none; }
  .whatsapp-float:hover { transform: none; }
  .project-overlay { opacity: 1; }
}

/* ======= ADDITIONAL TOUCH & ACCESSIBILITY FIXES ======= */

/* Minimum 44px touch targets for all interactive elements */
a, button {
  min-height: 44px;
  min-width: 44px;
}

.footer-links a,
.dropdown-menu a,
.breadcrumb a {
  min-height: 36px;
  min-width: unset;
}

/* Project overlay always visible on touch devices */
@media (hover: none) and (pointer: coarse) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(15,37,64,0.75) 0%, transparent 50%);
  }
  .product-card:active {
    transform: scale(0.98);
  }
  .btn-primary:active,
  .btn-whatsapp-large:active,
  .btn-outline-white:active {
    opacity: 0.85;
    transform: scale(0.98);
  }
  .hamburger span {
    height: 3px;
  }
}

/* Fix iOS input zoom - font size must be >= 16px */
input, textarea, select {
  font-size: 16px !important;
}

/* Safe area padding for notched phones */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .hero {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
  .mobile-nav {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
  .whatsapp-float {
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
    right: max(16px, env(safe-area-inset-right));
  }
}
