/*
Theme Name: ISOT Integrated Projects
Theme URI: https://isotprojects.com/
Author: ISOT Integrated Projects
Description: A classic WordPress theme converted from the ISOT Integrated Projects PHP site.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: isot-projects
*/

:root {
  --primary: #ff6b35;
  --primary-dark: #e05a2b;
  --secondary: #ff9e6d;
  --dark: #1a1a1a;
  --light: #f9f9f9;
  --gray: #6c757d;
  --white: #ffffff;
  --success: #00d084;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --border-radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-main: 'Manrope', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}
p { margin: 0 0 1rem; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-center h2, .text-center > p { max-width: 700px; margin-left: auto; margin-right: auto; }
section { padding: var(--spacing-lg) 0; }
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  background: var(--primary);
  color: var(--white);
  border: 0;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255,107,53,.3);
}
.btn:hover, .btn:focus { color: var(--white); background: var(--primary-dark); transform: translateY(-3px); }

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  backdrop-filter: blur(10px);
}
.header-container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.site-branding img { display: block; width: auto; height: 36px; }
.site-title { margin: 0; font-family: var(--font-heading); font-size: 1.35rem; }
.site-title a { color: var(--dark); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--dark); font-size: 1.5rem; cursor: pointer; }
.primary-menu, .primary-menu ul { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--dark); text-decoration: none; font-weight: 600; transition: color .2s; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: var(--primary); }

/* Hero and page sections */
.hero {
  position: relative;
  color: var(--white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 8rem 0;
  text-align: center;
}
.hero h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3.2rem); text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.hero p { max-width: 800px; margin: 0 auto; font-size: 1.15rem; opacity: .95; }
.home-hero { min-height: 76vh; display: flex; align-items: center; justify-content: center; padding: 7rem 0; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transition: opacity 1s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slides::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.44); }
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: 0 1rem; }
.home-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.home-hero p { margin: 0 auto 2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.page-hero { background-image: linear-gradient(rgba(0,0,0,.68), rgba(0,0,0,.68)), var(--hero-image); }

.stats-grid, .services-grid, .testimonials-grid, .values-grid, .expertise-grid, .why-grid, .footer-grid, .blog-grid { display: grid; gap: 2rem; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2rem; }
.stat-item { padding: 1.5rem; background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; }
.stat-item h3 { margin-bottom: .5rem; color: var(--primary); font-size: 2.8rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.service-card { position: relative; height: 380px; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.8rem; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.service-content h3 { margin-bottom: .5rem; font-size: 1.4rem; }
.service-content p { margin-bottom: .8rem; font-size: .95rem; opacity: .92; }
.service-link { color: var(--secondary); font-weight: 600; }
.service-link:hover { color: var(--white); }
.about-section { background: #f0f7ff; }
.quality-section { background: linear-gradient(135deg, #fff8f4 0%, #fff 100%); }
.about-content, .quality-content, .contact-section, .mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-content img, .quality-content img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.timeline { position: relative; max-width: 800px; margin: 3rem auto; }
.timeline::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--primary); }
.timeline-item { position: relative; width: 50%; padding: 10px 40px; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-content, .card, .expertise-card { padding: 1.5rem; background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); }
.testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.testimonial-card { position: relative; padding: 1.8rem; background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); }
.testimonial-card::before { content: '“'; position: absolute; top: 0; left: 1rem; color: var(--secondary); font: 4rem Georgia, serif; opacity: .3; }
.testimonial-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

/* Sliders */
.project-showcase { padding: 5rem 0; }
.project-slider-container { position: relative; max-width: 1000px; height: 560px; margin: 2.5rem auto 0; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.project-slider-track { display: flex; width: 500%; height: 100%; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.project-slide-link { position: relative; display: block; flex: 0 0 20%; color: inherit; text-decoration: none; }
.project-slide, .project-slide img { width: 100%; height: 100%; }
.project-slide img { display: block; object-fit: cover; }
.project-overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 2rem; color: var(--white); background: rgba(0,0,0,.7); }
.project-overlay h3 { margin-bottom: .5rem; font-size: 1.8rem; }
.slider-arrow { position: absolute; top: 50%; z-index: 3; width: 56px; height: 56px; transform: translateY(-50%); border: 0; border-radius: 50%; color: var(--dark); background: rgba(255,255,255,.9); font-size: 1.3rem; cursor: pointer; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.slider-arrow:hover { color: var(--white); background: var(--primary); }
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }
.slider-dots { display: flex; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.dot { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #ccc; cursor: pointer; }
.dot.active, .dot:hover { background: var(--primary); transform: scale(1.2); }

/* Inner page components */
.who-we-are { background: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), var(--hero-image) center/cover no-repeat; }
.mission-vision-grid { align-items: stretch; margin-top: 2rem; }
.card h3, .expertise-card h4 { color: var(--primary); }
.values-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2rem; }
.value-item { padding: 1.5rem; text-align: center; }
.value-item i, .why-item i { margin-bottom: 1rem; color: var(--primary); font-size: 2.5rem; }
.expertise-section { background: var(--white); }
.expertise-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.expertise-card { background: var(--light); transition: var(--transition); }
.expertise-card:hover { transform: translateY(-5px); }
.service-list { display: flex; flex-direction: column; gap: 2rem; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
.service-row:nth-child(even) .service-image-col { order: 2; }
.service-image-col img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2rem; }
.why-item { padding: 1.5rem; text-align: center; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.step { position: relative; padding: 1rem; }
.step-number { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 1rem; border-radius: 50%; color: var(--white); background: var(--primary); font-size: 1.3rem; font-weight: 700; }
.faq-container { max-width: 850px; margin: 2rem auto 0; text-align: left; }
.faq-item { margin-bottom: 1rem; border-radius: var(--border-radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 700; }
.faq-answer { display: none; padding: 0 1.5rem 1.3rem; color: var(--gray); }
.faq-item.open .faq-answer { display: block; }

/* Projects page */
.projects-list { display: grid; gap: 3rem; margin-top: 2.5rem; }
.project-item { overflow: hidden; border-radius: var(--border-radius); background: var(--white); box-shadow: var(--shadow); }
.project-header { padding: 1.6rem; }
.project-title { margin-bottom: .35rem; color: var(--primary); }
.project-subtitle { margin: 0; color: var(--gray); }
.project-slideshow { position: relative; height: 560px; overflow: hidden; }
.slideshow-track { display: flex; height: 100%; transition: transform .7s ease; }
.slideshow-slide { flex: 0 0 100%; height: 100%; }
.slideshow-slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem; pointer-events: none; }
.nav-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--dark); background: rgba(255,255,255,.9); cursor: pointer; pointer-events: auto; }
.nav-btn:hover { color: var(--white); background: var(--primary); }

/* Blog */
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 2.5rem; }
.blog-card { overflow: hidden; border-radius: var(--border-radius); background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-8px); }
.card-image { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.6rem; }
.card-meta { display: flex; gap: 1rem; margin-bottom: .75rem; color: var(--primary); font-size: .9rem; }
.card-title { margin-bottom: .75rem; font-size: 1.45rem; }
.card-excerpt { color: var(--gray); }
.card-author { color: #555; font-size: .95rem; }
.post-container { max-width: 900px; margin: 0 auto; padding: 3rem 0 5rem; }
.post-header { margin-bottom: 2.5rem; text-align: center; }
.post-meta { margin-bottom: .8rem; color: var(--primary); font-size: .95rem; }
.post-title { font-size: clamp(2rem, 5vw, 2.8rem); }
.post-author { color: var(--gray); }
.post-image { width: 100%; max-height: 500px; margin-bottom: 2.5rem; border-radius: var(--border-radius); object-fit: cover; }
.post-content { font-size: 1.05rem; line-height: 1.8; }
.post-content p { margin-bottom: 1.4rem; }

/* Contact and media */
.contact-section { align-items: stretch; margin-top: 2rem; }
.contact-details-card, .map-container { min-height: 420px; padding: 2.2rem; border-radius: var(--border-radius); background: var(--white); box-shadow: var(--shadow); }
.contact-details-card h3 { padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.contact-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--primary); background: #fff8f4; }
.contact-text h4 { margin-bottom: .25rem; font-size: 1.05rem; }
.contact-text p { margin: 0; color: var(--gray); }
.contact-text a { color: var(--gray); text-decoration: none; }
.contact-text a:hover { color: var(--primary); }
.social-icons, .social-links { display: flex; gap: 1rem; }
.social-icons a, .social-links a { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--dark); background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.social-links a { color: var(--white); background: rgba(255,255,255,.1); }
.social-icons a:hover, .social-links a:hover { color: var(--white); background: var(--primary); }
.map-container { padding: 0; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.video-wrapper { max-width: 900px; margin: 2rem auto; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.video-wrapper video { display: block; width: 100%; background: #000; }
.media-placeholder { padding: 4rem 2rem; border-radius: var(--border-radius); background: #fff8f4; text-align: center; }
.media-kit-section { padding: 2.5rem; border-radius: var(--border-radius); background: #fff8f4; text-align: center; }
.press-cta, .cta { position: relative; color: var(--white); background: linear-gradient(135deg, var(--primary), var(--secondary)); text-align: center; }
.cta { padding: 5rem 0; }
.cta h2, .press-cta h2 { color: var(--white); }

/* Footer and utility */
.site-footer { padding: 4rem 0 2rem; color: var(--white); background: var(--dark); }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 2rem; }
.footer-col h4 { margin-bottom: 1rem; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #ccc; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: #bbb; }
.footer-logo { width: auto; height: 40px; margin-bottom: 1rem; }
.copyright { padding-top: 1.5rem; border-top: 1px solid #333; color: #aaa; text-align: center; font-size: .95rem; }
.copyright p { margin-bottom: .4rem; }
.back-to-top { position: fixed; right: 30px; bottom: 30px; z-index: 999; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: var(--white); background: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 0; visibility: hidden; cursor: pointer; transition: var(--transition); }
.back-to-top.show { opacity: 1; visibility: visible; }
.whatsapp-float { position: fixed; right: 22px; bottom: 90px; z-index: 998; }
.whatsapp-float a { display: flex; align-items: center; gap: .55rem; padding: .65rem .9rem; border-radius: 50px; color: var(--white); background: #25d366; text-decoration: none; font-size: .9rem; font-weight: 700; box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.whatsapp-float img { width: 25px; height: 25px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .about-content, .quality-content, .contact-section, .mission-vision-grid, .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-image-col { order: initial; }
  .timeline::after { left: 31px; }
  .timeline-item, .timeline-item:nth-child(even) { left: 0; width: 100%; padding-right: 25px; padding-left: 70px; }
  .project-slider-container, .project-slideshow { height: 460px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .primary-menu { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 0; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  .primary-menu.is-open { display: flex; }
  .primary-menu li a { display: block; padding: .7rem 5%; }
  .container { width: 94%; }
  section { padding: 3.2rem 0; }
  .service-card { height: 320px; }
  .project-slider-container, .project-slideshow { height: 380px; }
  .project-overlay { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-details-card { padding: 1.8rem; }
  .whatsapp-float { right: 12px; bottom: 82px; }
  .whatsapp-float a span { display: none; }
}
@media (max-width: 480px) {
  .home-hero { min-height: 70vh; }
  .home-hero h1 { font-size: 2rem; }
  .process-steps { grid-template-columns: 1fr; }
  .project-slider-container, .project-slideshow { height: 330px; }
  .slider-arrow { width: 46px; height: 46px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
}
.wp-block-post-title { font-family: var(--font-heading); }
.alignwide { max-width: 1200px; margin-right: auto; margin-left: auto; }
.alignfull { width: 100%; }
.entry-content:not(.pagelayer-content) > * { max-width: 900px; margin-right: auto; margin-left: auto; }
.entry-content:not(.pagelayer-content) > .alignwide { max-width: 1200px; }
.entry-content:not(.pagelayer-content) > .alignfull { max-width: none; }
.pagelayer-content { width: 100%; max-width: none; padding: 0; }
.pagelayer-content > * { max-width: none; }
