
/* =========================================================
   FABNEST.SHOP — MAIN STYLESHEET
   File: css/style.css
   ========================================================= */

/* 1. Design tokens */

:root {

/* =====================================================
   FABNEST.SHOP — OFFICIAL BRAND COLORS
   Inspired by the FabNest logo
   ===================================================== */


  /* Brand identity */
  --color-navy: #193A7D;
  --color-blue: #193A7D;
  --color-cyan: #FE5E1D;
  --color-orange: #FE5E1D;
  --color-grey: #59626B;

  /* Backgrounds */
  --color-white: #FFFFFF;
  --color-light: #F4F6F9;
  --color-border: #E1E5EB;

  /* Typography */
  --color-text: #26354A;
  --color-muted: #59626B;

  /* Functional colors */
  --color-success: #168447;

  /* Layout */
  --font-main: Arial, Helvetica, sans-serif;
  --container-width: 1180px;
  --header-height: 82px;

  /* UI styling */
  --radius-small: 4px;
  --radius-medium: 8px;
  --shadow-card: 0 12px 35px rgba(25, 58, 125, 0.10);
  --transition: 0.25s ease;
}


/* 2. Reset and global styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 15px);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body,
input,
select,
textarea,
button {
  font-family: var(--font-main);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 3px;
}

.container {
  width: min(var(--container-width), 92%);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--color-light);
}

/* 3. Shared typography */

.eyebrow {
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-content h2 {
  color: var(--color-navy);
  font-size: clamp(29px, 3.5vw, 43px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-heading > p:last-child {
  color: var(--color-muted);
  font-size: 16px;
}

/* 4. Buttons */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 23px;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius-small);
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.button:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
}

.button-small {
  padding: 10px 16px;
  white-space: nowrap;
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--color-white);
}

.button-outline:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
}

.button-light {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
}

.button-light:hover {
  background: var(--color-light);
  border-color: var(--color-light);
}

/* 5. Utility bar */

.utility-bar {
  padding: 8px 0;
  background: var(--color-navy);
  color: #dce9f5;
  font-size: 12px;
}

.utility-content {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

/* 6. Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 3px 20px rgba(16, 45, 80, 0.07);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1.2;
}

.brand-name {
  color: var(--color-navy);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-accent {
  color: var(--color-cyan);
}

.brand-tagline {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navigation > a:not(.button) {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--transition);
}

.navigation > a:not(.button):hover {
  color: var(--color-blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
}

/* 7. Hero */

.hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    url("https://images.unsplash.com/photo-1631558555839-d7f8b8e3d7b5?auto=format&fit=crop&w=2000&q=85")
    center / cover no-repeat,
    var(--color-navy);
  color: var(--color-white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 27, 49, 0.97) 0%,
    rgba(8, 27, 49, 0.88) 48%,
    rgba(8, 27, 49, 0.28) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 85px;
}

.hero .eyebrow {
  color: var(--color-cyan);
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--color-cyan);
}

.hero-description {
  max-width: 620px;
  color: #dce7f2;
  font-size: 17px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-note {
  margin-top: 32px;
  color: #d5e2ef;
  font-size: 12px;
}

.hero-note span {
  color: var(--color-cyan);
  margin-inline: 7px;
}

/* 8. Capabilities strip */

.capabilities {
  background: var(--color-navy);
  color: var(--color-white);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 25px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.capability:first-child {
  padding-left: 0;
}

.capability:last-child {
  border-right: 0;
}

.capability-number {
  color: var(--color-cyan);
  font-size: 18px;
  font-weight: 800;
}

.capability h3 {
  font-size: 14px;
  margin-bottom: 3px;
}

.capability p {
  color: #c3d5e8;
  font-size: 12px;
}

/* 9. About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.about-image {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-medium);
  overflow: hidden;
  background: #e7edf4;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: rgba(9, 30, 53, 0.91);
  color: var(--color-white);
  border-radius: var(--radius-small);
  font-size: 12px;
}

.caption-mark {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--color-cyan);
  border-radius: 50%;
}

.about-content > p:not(.eyebrow) {
  color: var(--color-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.check-list {
  list-style: none;
  margin: 22px 0 26px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: 800;
}

.text-link {
  color: var(--color-blue);
  font-size: 13px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--color-cyan);
}

/* 10. Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.service-card img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  background: #e7edf4;
}

.service-body {
  padding: 24px;
}

.service-index {
  color: var(--color-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.service-body h3 {
  color: var(--color-navy);
  font-size: 20px;
  line-height: 1.3;
  margin: 12px 0;
}

.service-body p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* 11. Applications */

.application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.application-card {
  padding: 27px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-light);
  transition:
    background var(--transition),
    transform var(--transition);
}

.application-card:hover {
  background: var(--color-white);
  transform: translateY(-4px);
}

.application-symbol {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-blue);
  font-size: 30px;
  font-weight: 700;
}

.application-card h3 {
  color: var(--color-navy);
  font-size: 17px;
  margin-bottom: 8px;
}

.application-card p {
  color: var(--color-muted);
  font-size: 13px;
}

/* 12. Process */

.process-section {
  background: var(--color-navy);
  color: var(--color-white);
}

.process-section .section-heading h2 {
  color: var(--color-white);
}

.process-section .section-heading .eyebrow {
  color: var(--color-cyan);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.process-step {
  padding-top: 22px;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.process-step > span {
  color: var(--color-cyan);
  font-size: 30px;
  font-weight: 800;
}

.process-step h3 {
  font-size: 17px;
  margin: 12px 0 8px;
}

.process-step p {
  color: #c3d5e8;
  font-size: 13px;
}

/* 13. Call to action */

.cta-section {
  padding: 80px 0;
  background:
    linear-gradient(
      100deg,
      rgba(13, 48, 82, 0.97),
      rgba(18, 100, 163, 0.88)
    ),
    url("https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
  color: var(--color-white);
  text-align: center;
}

.cta-content {
  max-width: 780px;
}

.cta-section .eyebrow {
  color: var(--color-cyan);
}

.cta-section h2 {
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.cta-section p:not(.eyebrow) {
  color: #e0edf8;
  margin-bottom: 28px;
}

/* 14. Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 35px;
}

.contact-details,
.contact-form {
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
}

.contact-details h3,
.contact-form h3 {
  color: var(--color-navy);
  font-size: 23px;
  margin-bottom: 14px;
}

.contact-intro {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item > span {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-item > a,
.contact-item > p {
  font-size: 14px;
}

.contact-item > a:hover {
  color: var(--color-blue);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.form-field {
  min-width: 0;
  margin-bottom: 17px;
}

.form-field label {
  display: block;
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #d4deea;
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-blue);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

.form-note {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* 15. Footer */

.site-footer {
  background: #091e35;
  color: #c3d5e8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 45px;
  padding-top: 52px;
  padding-bottom: 40px;
}

.footer-brand .brand-name {
  color: var(--color-white);
}

.footer-brand .brand-tagline {
  color: #c3d5e8;
}

.footer-brand > p {
  max-width: 370px;
  margin-top: 20px;
  font-size: 13px;
}

.footer-main h3 {
  margin-bottom: 15px;
  color: var(--color-white);
  font-size: 15px;
}

.footer-main > div:not(.footer-brand) a {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-main a:hover,
.footer-bottom a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
}

/* 16. Floating WhatsApp button */

.whatsapp-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 30px;
  background: var(--color-success);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.17);
  transition: transform var(--transition);
}

.whatsapp-button:hover {
  transform: translateY(-3px);
}

/* 17. Tablet layout */

@media (max-width: 1000px) {
  :root {
    --header-height: 76px;
  }

  .navbar {
    gap: 15px;
  }

  .navigation {
    gap: 13px;
  }

  .navigation > a:not(.button) {
    font-size: 12px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-tagline {
    font-size: 8px;
  }

  .about-grid {
    gap: 35px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability {
    padding-inline: 10px;
  }
}

/* 18. Mobile navigation and layout */

@media (max-width: 760px) {
  .utility-content {
    justify-content: center;
    text-align: center;
    gap: 3px 15px;
  }

  .navbar {
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: -4.35%;
    right: -4.35%;
    padding: 15px 5%;
    background: var(--color-white);
    box-shadow: 0 12px 20px rgba(16, 45, 80, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation > a:not(.button) {
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
  }

  .navigation .button {
    margin-top: 13px;
  }

  .hero {
    min-height: 530px;
    background-position: 60% center;
  }

  .hero-content {
    padding-block: 65px;
  }

  .hero-description {
    font-size: 15px;
  }

  .section {
    padding: 65px 0;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability,
  .capability:first-child {
    padding: 20px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image,
  .about-image img {
    min-height: 300px;
    height: 300px;
  }

  .application-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* 19. Small mobile screens */

@media (max-width: 480px) {
  .container {
    width: 90%;
  }

  .hero {
    min-height: 510px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-note {
    font-size: 11px;
  }

  .section-heading h2,
  .about-content h2 {
    font-size: 30px;
  }

  .service-grid,
  .application-grid,
  .process-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 205px;
  }

  .contact-details,
  .contact-form {
    padding: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-button {
    right: 12px;
    bottom: 12px;
  }
}

/* 20. Accessibility: reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* FABNEST BRAND OVERRIDES */

/* Brand logo */
.brand-name {
  color: var(--color-navy);
}

.brand-accent,
.hero h1 span,
.eyebrow,
.service-index,
.service-body .text-link,
.text-link {
  color: var(--color-orange);
}

/* Primary buttons */
.button {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
}

.button:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

/* Outline button in the hero */
.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--color-white);
}

.button-outline:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
}

/* Brand accents */
.capability-number,
.process-step > span,
.application-symbol,
.caption-mark {
  color: var(--color-orange);
}

.caption-mark {
  background: var(--color-orange);
}

/* Header and section titles */
.section-heading h2,
.about-content h2,
.service-body h3,
.application-card h3,
.contact-details h3,
.contact-form h3 {
  color: var(--color-navy);
}

/* Industrial section backgrounds */
.capabilities,
.process-section {
  background: var(--color-navy);
}

/* Cards */
.service-card,
.contact-details,
.contact-form {
  border-color: var(--color-border);
}

/* Brand-consistent links */
.navigation > a:not(.button):hover,
.text-link:hover,
.contact-item > a:hover {
  color: var(--color-orange);
}

/* Footer */
.site-footer {
  background: #10264F;
}

.footer-brand .brand-accent {
  color: var(--color-orange);
}

/* Keep the WhatsApp button recognizable */
.whatsapp-button {
  background: var(--color-success);
}

/* INSTAGRAM FEED */

.instagram-section {
  background: var(--color-white);
}

.instagram-heading {
  text-align: center;
  margin-inline: auto;
}

.instagram-widget {
  width: 100%;
  min-height: 280px;
}

.instagram-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 35px 20px;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
}

.instagram-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 40px;
  line-height: 1;
}

.instagram-placeholder h3 {
  color: var(--color-navy);
  font-size: 22px;
}

.instagram-placeholder p {
  max-width: 520px;
  color: var(--color-muted);
  font-size: 14px;
}

.instagram-footer {
  text-align: center;
  margin-top: 24px;
}

/* Widget embeds should fit the page */
.instagram-widget iframe {
  max-width: 100%;
}
