/* ============================================
   Deosite - Deo Renovation Website
   Simple 3 or 4 page layout auto change based on viewscreen size mobile - desktop
   For Viktor by Dan Macgregor
   ============================================ */

/* CSS Custom Properties */
:root {
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
  --font-heading: "Nunito", sans-serif;
  --font-nav: "Poppins", sans-serif;

  --color-bg: #ffffff;
  --color-text: #444444;
  --color-heading: #012970;
  --color-accent: #4154f1;
  --color-surface: #ffffff;
  --color-contrast: #ffffff;

  --color-stat-blue: #4154f1;
  --color-stat-orange: #ee6c20;
  --color-stat-green: #15be56;
  --color-stat-pink: #bb0852;

  --nav-color: #012970;
  --nav-hover: #4154f1;

  --container-max: 1200px;
  --section-padding: clamp(2rem, 5vw, 4rem);
  --header-height: 70px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-top: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s;
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--color-text);
  font-size: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(1, 41, 112, 0.08);
  z-index: 1000;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
}

/* Navigation */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    position: absolute;
    opacity: 0;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-heading);
    margin: 8px 0;
    transition: 0.3s;
  }

  .navmenu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--color-surface);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: right 0.3s;
  }

  .nav-toggle:checked ~ .navmenu {
    right: 0;
  }

  .navmenu ul {
    flex-direction: column;
    gap: 2rem;
  }
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.navmenu a {
  color: var(--nav-color);
  font-family: var(--font-nav);
  font-weight: 500;
}

.navmenu a:hover,
.navmenu a.active,
.navmenu .current-menu-item > a {
  color: var(--nav-hover);
}

/* Mobile nav toggle icon */
.nav-toggle-label {
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-label .hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-label .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  transition: 0.3s;
}

/* CTA Button */
.btn-getstarted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-contrast) !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 12px rgba(65, 84, 241, 0.3);
}

.btn-getstarted:hover {
  background: var(--nav-hover);
  transform: translateY(-1px);
}

.btn-getstarted:focus-visible {
  outline: 2px solid var(--nav-hover);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .header .btn-getstarted {
    display: none;
  }
}

/* Hero */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  gap: 2rem;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-contrast) !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(65, 84, 241, 0.35);
}

.btn-get-started:hover {
  background: var(--nav-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(65, 84, 241, 0.4);
}

.btn-get-started:focus-visible {
  outline: 2px solid var(--nav-hover);
  outline-offset: 3px;
}

.btn-watch-video {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-weight: 500;
}

.hero-img {
  order: -1;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-img {
    order: 0;
  }
}

.hero-img img {
  width: 100%;
  object-fit: contain;
}

/* About */
.about {
  background: #f9f9f9;
}

.about-content h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.about-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1rem;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Values / Cards */
.values-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(1, 41, 112, 0.1);
  border: 1px solid rgba(65, 84, 241, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(65, 84, 241, 0.15);
}

.value-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.value-card h3 {
  font-size: 1rem;
  padding: 1rem;
  margin: 0;
}

/* Stats */
.stats {
  background: var(--color-heading);
  color: var(--color-contrast);
}

.stats h2 {
  color: var(--color-contrast);
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-item i {
  font-size: 2rem;
  flex-shrink: 0;
}

.stats-item span {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stats-item p {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Features */
.features {
  background: #f9f9f9;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-box i {
  color: var(--color-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-box h3 {
  font-size: 1rem;
  margin: 0;
}

.features-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.features-img img {
  width: 100%;
  object-fit: contain;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item a {
  display: block;
}

/* Contact */
.contact-info {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}

.info-item p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-map {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(1, 41, 112, 0.09);
  border: 1px solid rgba(65, 84, 241, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(65, 84, 241, 0.14);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.125rem;
  padding: 1rem;
  margin: 0;
}

.service-card h3 a {
  color: var(--color-heading);
}

.service-card h3 a:hover {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

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

/* Footer */
.footer {
  background: var(--color-heading);
  color: var(--color-contrast);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Main content padding for fixed header */
main {
  padding-top: var(--header-height);
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* WordPress: Elementor builds page sections with its own spacing */
body.deo-elementor-page #primary.site-main {
  padding-top: 0;
}

/* Elementor form + widgets: align with theme (PRO Elements Form widget) */
.elementor-widget-form .elementor-field-group label {
  font-weight: 500;
  color: var(--color-heading);
}

.elementor-widget-form .elementor-button {
  border-radius: 8px;
  font-weight: 600;
}

/* Image gallery & portfolio tiles */
.elementor-widget-image-gallery .gallery-item img {
  border-radius: 8px;
}

.elementor .elementor-element.elementor-widget-image img {
  border-radius: 8px;
}
