/* ==========================================================================
   SES (Singhi Energy Services) - Standalone CSS
   Recreated accurately from original Carrd specifications
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-bg: #F7F7F7;
  --color-white: #FFFFFF;
  --color-heading: #242424;
  --color-body: rgba(36, 36, 36, 0.588);
  --color-body-dark: rgba(36, 36, 36, 0.75);
  --color-primary: #4F7EF7;
  --color-primary-hover: #546EF7;
  --color-eyebrow: #6493ED;
  --color-purple: #6649E3;
  --color-purple-dark: #412ACB;
  --radius-default: 0.375rem;
  --container-max: 70rem;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-heading);
  line-height: 1.5;
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  position: relative;
}

/* Background Ribbon SVG Pattern */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   2. Layout & Shell
   -------------------------------------------------------------------------- */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s ease;
}

.site-main.active {
  display: flex;
}

.site-main > .inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.container-block {
  width: 100%;
  display: flex;
  justify-content: center;
}

.full-screen {
  width: 100%;
}

.container-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.two-columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}

.two-columns > * {
  flex: 1 1 50%;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   3. Typography & Badges
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: 0.2rem;
  margin-bottom: 0.5rem;
}

.headline-h1 {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.125rem;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
}

.headline-h2 {
  font-size: 2.875rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.1rem;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
}

.body-text {
  color: var(--color-body);
  font-size: 1rem;
  line-height: 1.875;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.body-text a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.body-text a:hover {
  color: #10182F;
}

/* --------------------------------------------------------------------------
   4. Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.375rem;
  line-height: 3.375rem;
  padding: 0 1.6875rem;
  border-radius: var(--radius-default);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 126, 247, 0.3);
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-block {
  background-attachment: fixed;
  background-color: var(--color-white);
  background-image: linear-gradient(to top, rgba(255, 255, 255, 0.329), rgba(255, 255, 255, 0.329)), url('../images/container04.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 1.5rem 0;
}

.hero-block .container-inner {
  padding: 1.5rem 2rem;
}

.hero-content {
  flex: 1 1 50%;
  min-width: 0;
}

.hero-media {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   6. Services & Alternating Showcases
   -------------------------------------------------------------------------- */
.showcase-block {
  margin: 2.5rem 0;
  background-color: transparent;
}

/* Thin horizontal separator between consecutive showcase sections */
.showcase-block + .showcase-block {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 2.5rem;
}

.showcase-media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  aspect-ratio: 4 / 3;
}

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

/* Core Services Section: make image match the services list height on desktop */
#services .two-columns {
  align-items: stretch;
}

#services .showcase-media {
  align-self: stretch;
}

#services .media-frame {
  height: 100%;
  aspect-ratio: auto;
}

#services .media-frame img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Services Bullet List */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  color: var(--color-body-dark);
}

.list-bullet {
  flex: 0 0 14px;
  height: 28px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M12.9,32.4L25.3,20L13,7.6c-0.2-0.2-0.2-0.5,0-0.7l1.6-1.6c0.2-0.2,0.5-0.2,0.7,0L29.8,20L15.1,34.6c-0.2,0.2-0.5,0.2-0.7,0l-1.6-1.6C12.7,32.9,12.7,32.6,12.9,32.4z' fill='%231F1F1F'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 12px 12px;
  margin-right: 0.625rem;
}

.list-text {
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   7. Smooth Slideshows
   -------------------------------------------------------------------------- */
.slideshow-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  grid-template-areas: "stack";
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.slideshow-frame .slide {
  grid-area: stack;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.slideshow-frame .slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   8. Partners Section
   -------------------------------------------------------------------------- */
.partners-block {
  margin: 2.5rem 0;
}

.partners-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 0.75rem;
  aspect-ratio: 3 / 2;
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   9. About Us (Director Profile)
   -------------------------------------------------------------------------- */
.avatar-wrapper {
  display: flex;
  justify-content: center;
}

.director-avatar {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   10. Contact Info & Location Map
   -------------------------------------------------------------------------- */
.map-wrapper iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.address-line {
  margin-bottom: 1rem;
}

.contact-detail {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-heading);
  transition: color 0.25s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: var(--color-primary);
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   11. Contact Inquiry Banner (Purple)
   -------------------------------------------------------------------------- */
.inquiry-banner {
  background-attachment: fixed;
  background-color: var(--color-purple);
  background-image: linear-gradient(to top, rgba(102, 73, 227, 0.902), rgba(102, 73, 227, 0.902)), url('../images/container15.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2.5rem 0;
  margin-top: 2.5rem;
}

.inquiry-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-graphic {
  width: 100%;
  max-width: 13.5rem;
  height: auto;
  display: block;
}

.inquiry-form-wrapper {
  display: flex;
  justify-content: flex-start;
}

.inquiry-form {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
}

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

.form-group:first-child {
  margin-top: 0;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form textarea {
  width: 100%;
  height: 3.375rem;
  padding: 0 1.18125rem;
  border: 0;
  outline: none;
  background-color: rgba(255, 255, 255, 0.071);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 300;
  border-radius: var(--radius-default);
  transition: box-shadow 0.25s ease;
}

.inquiry-form textarea {
  height: 8rem;
  padding: 1.18125rem;
  resize: vertical;
  line-height: 1.5;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: var(--color-white);
  opacity: 0.55;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  box-shadow: 0 0 0 1px var(--color-white), inset 0 0 0 1px var(--color-white);
}

.btn-submit {
  background-color: var(--color-white);
  color: var(--color-purple-dark);
  font-weight: 400;
  padding: 0 1.6875rem;
}

.btn-submit .btn-icon {
  fill: var(--color-purple-dark);
}

.btn-submit:hover {
  background-color: rgba(248, 247, 255, 0.961);
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-default);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 400;
  transition: all 0.3s ease;
}

.form-status.success {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.form-status.notice {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.25);
  color: var(--color-white);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  color: var(--color-body);
  font-size: 0.875rem;
  font-weight: 300;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   13. Dedicated Brochure View (#brochure)
   -------------------------------------------------------------------------- */
.brochure-view {
  width: 100%;
  padding: 3rem 0;
}

.brochure-view > .inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brochure-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.brochure-page {
  width: 100%;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.brochure-divider {
  border: 0;
  height: 1px;
  background-color: rgba(36, 36, 36, 0.1);
  margin: 3rem 0 2rem;
  width: 100%;
}

.brochure-actions {
  display: flex;
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   14. Confirmation Done View (#done)
   -------------------------------------------------------------------------- */
.done-view {
  width: 100%;
  min-height: 80vh;
  justify-content: center;
  align-items: center;
}

.done-view > .inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}

.done-card {
  text-align: left;
  max-width: 40rem;
  padding: 4rem 2rem;
}

.done-actions {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   15. Responsive Adaptations (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .two-columns {
    gap: 3rem;
  }

  .container-inner {
    padding: 1.5rem 1.5rem;
  }

  .showcase-block {
    margin: 2rem 0;
  }
}

@media (max-width: 736px) {
  html {
    font-size: 16px;
  }

  .hero-block,
  .inquiry-banner {
    background-attachment: scroll;
  }

  .container-inner,
  .hero-block .container-inner {
    padding: 1.25rem 1.25rem;
  }

  .two-columns {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
  }

  .two-columns > * {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  /* On mobile, in the hero section, the logo appears FIRST at top */
  .hero-block .two-columns {
    flex-direction: column;
  }

  .hero-media {
    order: -1;
    margin-bottom: 0.75rem;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .hero-logo {
    max-width: 160px;
    margin: 0;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Showcases stack with media first, text below */
  .showcase-block {
    margin: 1.75rem 0;
  }

  .showcase-block .two-columns {
    flex-direction: column;
  }

  .showcase-content {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .showcase-media {
    order: 1;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  /* Core services section: text list first, cooling tower visual below on mobile */
  #services .showcase-content {
    order: 1;
  }

  #services .showcase-media {
    order: 2;
    height: auto;
    align-self: auto;
  }

  #services .media-frame {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* Separator spacing adjustment on mobile */
  .showcase-block + .showcase-block {
    padding-top: 1.75rem;
  }

  .inquiry-banner {
    margin-top: 1.75rem;
    padding: 2rem 0;
  }

  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
  }

  .headline-h1 {
    font-size: clamp(1.85rem, 7vw, 2.25rem);
    letter-spacing: -0.05rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .headline-h2 {
    font-size: clamp(1.65rem, 6vw, 2rem);
    letter-spacing: -0.05rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .inquiry-media {
    margin-bottom: 2rem;
    flex: 1 1 100%;
    width: 100%;
  }

  .inquiry-form-wrapper {
    flex: 1 1 100%;
    width: 100%;
  }

  .envelope-graphic {
    max-width: 10rem;
  }

  .inquiry-form {
    max-width: 100%;
    width: 100%;
  }

  .partners-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .director-avatar {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .container-inner,
  .hero-block .container-inner {
    padding: 1rem 1rem;
  }

  .headline-h1 {
    font-size: 2rem;
  }

  .headline-h2 {
    font-size: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 100%;
  }

  .inquiry-form .btn-submit {
    width: 100%;
    max-width: 100%;
  }

  .partners-gallery {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
  }

  .social-links {
    gap: 1.125rem;
  }
}
